diff options
author | Steve French <stfrench@microsoft.com> | 2020-06-06 01:19:46 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-06-06 19:16:25 +0300 |
commit | 5865985416ebb5a0c198a819a098b5cc300ac8a4 (patch) | |
tree | 915610812c337cc2777052d134950161aadcc6fb /fs/cifs/fscache.h | |
parent | 3803d5e4d3ce2600ffddc16a1999798bc719042d (diff) | |
download | linux-5865985416ebb5a0c198a819a098b5cc300ac8a4.tar.xz |
smb3: extend fscache mount volume coherency check
It is better to check volume id and creation time, not just
the root inode number to verify if the volume has changed
when remounting.
Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/fscache.h')
-rw-r--r-- | fs/cifs/fscache.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/cifs/fscache.h b/fs/cifs/fscache.h index 8c0862e41306..1091633d2adb 100644 --- a/fs/cifs/fscache.h +++ b/fs/cifs/fscache.h @@ -28,6 +28,15 @@ #ifdef CONFIG_CIFS_FSCACHE /* + * Auxiliary data attached to CIFS superblock within the cache + */ +struct cifs_fscache_super_auxdata { + u64 resource_id; /* unique server resource id */ + __le64 vol_create_time; + u32 vol_serial_number; +} __packed; + +/* * Auxiliary data attached to CIFS inode within the cache */ struct cifs_fscache_inode_auxdata { |