diff options
author | vmallika <vmallika@redhat.com> | 2016-02-02 14:34:19 +0530 |
---|---|---|
committer | Rajesh Joseph <rjoseph@redhat.com> | 2016-03-10 02:44:27 -0800 |
commit | ed98d128a9413f7b8af328ca27bf4b27514d61e9 (patch) | |
tree | a1626f7315cf730570e9dd78856d1852714ad5ca /tests/bugs | |
parent | e0f71288d95469d7ae82473ef273c6ba43250a36 (diff) |
gluster/uss: change ctime attr of a dir when USS enabled
Consider a testcase:
mount -t nfs host1:/vol1 /mnt
ls /mnt
ls /mnt/.snaps (As expected this fails)
gluster volume set vol1 features.uss enable
Now `ls /mnt/.snaps` should work, but fails with No such file or
directory.
This is because NFS client and Kernel VFS caches the list of files in a
directory.
This cache is updated if there are any changes in the directory attributes.
This patch solves the problem by changing ctime attribute when USS is
enabled
Change-Id: I48b284100d0589f1c0285782a1302080c15d4e1f
BUG: 1163416
Signed-off-by: vmallika <vmallika@redhat.com>
Reviewed-on: http://review.gluster.org/9106
Smoke: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'tests/bugs')
0 files changed, 0 insertions, 0 deletions