diff options
author | Steve French <stfrench@microsoft.com> | 2018-03-31 18:13:38 -0500 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2018-04-02 13:11:03 -0500 |
commit | 7ea884c77e5c97f1e0a1a422d961d27f78ca2745 (patch) | |
tree | c4da49e91400d11a8de4b69a50b87ad62ef8e6d4 /fs/cifs/cifsglob.h | |
parent | 6c4ba31133f1af68fd9abe070debeec14e7307d8 (diff) | |
download | linux-7ea884c77e5c97f1e0a1a422d961d27f78ca2745.tar.bz2 |
smb3: Fix root directory when server returns inode number of zero
Some servers return inode number zero for the root directory, which
causes ls to display incorrect data (missing "." and "..").
If the server returns zero for the inode number of the root directory,
fake an inode number for it.
Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 3e3f86841372..2282562e78a1 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -1470,6 +1470,7 @@ struct dfs_info3_param { #define CIFS_FATTR_NEED_REVAL 0x4 #define CIFS_FATTR_INO_COLLISION 0x8 #define CIFS_FATTR_UNKNOWN_NLINK 0x10 +#define CIFS_FATTR_FAKE_ROOT_INO 0x20 struct cifs_fattr { u32 cf_flags; |