提交 d388908e 编写于 作者: S Steve French

[CIFS] update DOS attributes in cifsInode if we successfully changed them

Signed-off-by: NJeff Layton <jlayton@redhat.com>
Signed-off-by: NSteve French <sfrench@us.ibm.com>
上级 391e5755
...@@ -752,6 +752,9 @@ cifs_set_file_info(struct inode *inode, struct iattr *attrs, int xid, ...@@ -752,6 +752,9 @@ cifs_set_file_info(struct inode *inode, struct iattr *attrs, int xid,
set_via_filehandle: set_via_filehandle:
rc = CIFSSMBSetFileInfo(xid, pTcon, &info_buf, netfid, netpid); rc = CIFSSMBSetFileInfo(xid, pTcon, &info_buf, netfid, netpid);
if (!rc)
cifsInode->cifsAttrs = dosattr;
if (open_file == NULL) if (open_file == NULL)
CIFSSMBClose(xid, pTcon, netfid); CIFSSMBClose(xid, pTcon, netfid);
else else
...@@ -902,6 +905,7 @@ int cifs_unlink(struct inode *dir, struct dentry *dentry) ...@@ -902,6 +905,7 @@ int cifs_unlink(struct inode *dir, struct dentry *dentry)
if (rc == 0) if (rc == 0)
drop_nlink(inode); drop_nlink(inode);
} }
cifsInode->cifsAttrs = dosattr;
} }
out_reval: out_reval:
if (inode) { if (inode) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部