The Samba-Bugzilla – Attachment 5168 Details for
Bug 3775
cifs: cached file modification time attribute is rounded to seconds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
second version of the previous patch to fix problems due to coarser timestamps granularity
3775.2.patch (text/plain), 638 bytes, created by
shirishpargaonkar@gmail.com
on 2010-01-13 14:35:11 UTC
(
hide
)
Description:
second version of the previous patch to fix problems due to coarser timestamps granularity
Filename:
MIME Type:
Creator:
shirishpargaonkar@gmail.com
Created:
2010-01-13 14:35:11 UTC
Size:
638 bytes
patch
obsolete
>diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c >index cf18ee7..7db26a5 100644 >--- a/fs/cifs/inode.c >+++ b/fs/cifs/inode.c >@@ -1762,8 +1762,18 @@ cifs_setattr_unix(struct dentry *direntry, struct iattr *attrs) > CIFS_MOUNT_MAP_SPECIAL_CHR); > } > >- if (!rc) >- rc = inode_setattr(inode, attrs); >+ if (rc) >+ goto out; >+ >+ rc = inode_setattr(inode, attrs); >+ >+ /* >+ * force revalidate when any of the times are set since some >+ * of the fs types do not have finer granularity timestamps >+ */ >+ if ((!rc) && (attrs->ia_valid & (ATTR_ATIME | ATTR_MTIME | ATTR_CTIME))) >+ cifsInode->time = 0; >+ > out: > kfree(args); > kfree(full_path);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 3775
:
5167
| 5168