From 695470765d4d047102fc9d2db7574a6fdb2b3eb3 Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Mon, 18 Jun 2018 13:40:33 -0400 Subject: ctime: Fix self heal of symlink in EC volume Since IEEE Std 1003.1-2001 does not require any association of file times with symbolic links, there is no requirement that file times be updated by readlink() states [1]. stat on symlink file was generating a readlink fop on one of the subvolumes of ec set which in turn updates atime on that subvolume. This causes mdata xattr to be different across ec set and hence self heal fails. So based on [1], atime is no longer updated by readlink fop. [1] http://pubs.opengroup.org/onlinepubs/009695399/functions/readlink.html Backport of: > Patch: https://review.gluster.org/#/c/20311/ > BUG: 1592509 > Change-Id: I08bd3ca3bdb222bd18160b1aa58fc2f7630c8083 > Signed-off-by: Kotresh HR (cherry picked from commit c097a7894d458e33a41f6db6092677108ef30fec) fixes: bz#1593536 Change-Id: I08bd3ca3bdb222bd18160b1aa58fc2f7630c8083 Signed-off-by: Kotresh HR (cherry picked from commit c097a7894d458e33a41f6db6092677108ef30fec) --- xlators/features/utime/src/utime-helpers.c | 1 - 1 file changed, 1 deletion(-) (limited to 'xlators/features/utime/src/utime-helpers.c') diff --git a/xlators/features/utime/src/utime-helpers.c b/xlators/features/utime/src/utime-helpers.c index 8dcd2647a35..6cac9651190 100644 --- a/xlators/features/utime/src/utime-helpers.c +++ b/xlators/features/utime/src/utime-helpers.c @@ -41,7 +41,6 @@ utime_update_attribute_flags(call_frame_t *frame, glusterfs_fop_t fop) break; case GF_FOP_OPENDIR: - case GF_FOP_READLINK: case GF_FOP_OPEN: case GF_FOP_READ: frame->root->flags |= MDATA_ATIME; -- cgit