Skip to content

Commit 790434f

Browse files
committed
smb311: Add support for lookup with posix extensions query info
Improve support for lookup when using SMB3.1.1 posix mounts. Use new info level 100 (posix query info) Signed-off-by: Steve French <[email protected]> Reviewed-by: Aurelien Aptel <[email protected]>
1 parent b1bc187 commit 790434f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fs/cifs/dir.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,9 @@ cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry,
700700
cifs_dbg(FYI, "Full path: %s inode = 0x%p\n",
701701
full_path, d_inode(direntry));
702702

703-
if (pTcon->unix_ext) {
703+
if (pTcon->posix_extensions)
704+
rc = smb311_posix_get_inode_info(&newInode, full_path, parent_dir_inode->i_sb, xid);
705+
else if (pTcon->unix_ext) {
704706
rc = cifs_get_inode_info_unix(&newInode, full_path,
705707
parent_dir_inode->i_sb, xid);
706708
} else {

0 commit comments

Comments
 (0)