diff options
author | Steve French <sfrench@us.ibm.com> | 2008-09-24 21:22:52 +0200 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2008-09-24 21:22:52 +0200 |
commit | d388908ec40ada0001dfe05134de31d0cc62907c (patch) | |
tree | 4c4d6c8bf2185bfa4677bd64ee463a3d70a851e9 /fs/cifs/inode.c | |
parent | cifs: remove NULL termination from rename target in CIFSSMBRenameOpenFIle (diff) | |
download | linux-d388908ec40ada0001dfe05134de31d0cc62907c.tar.xz linux-d388908ec40ada0001dfe05134de31d0cc62907c.zip |
[CIFS] update DOS attributes in cifsInode if we successfully changed them
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r-- | fs/cifs/inode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 27e97d43c759..db091c516c2a 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c @@ -752,6 +752,9 @@ cifs_set_file_info(struct inode *inode, struct iattr *attrs, int xid, set_via_filehandle: rc = CIFSSMBSetFileInfo(xid, pTcon, &info_buf, netfid, netpid); + if (!rc) + cifsInode->cifsAttrs = dosattr; + if (open_file == NULL) CIFSSMBClose(xid, pTcon, netfid); else @@ -902,6 +905,7 @@ psx_del_no_retry: if (rc == 0) drop_nlink(inode); } + cifsInode->cifsAttrs = dosattr; } out_reval: if (inode) { |