summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/upcall-utils.h
diff options
context:
space:
mode:
authorPoornima G <pgurusid@redhat.com>2016-11-08 10:32:29 +0530
committerRaghavendra G <rgowdapp@redhat.com>2017-01-04 22:10:12 -0800
commita4281aaacf82bb4b5522fb5477a8fbcb2a55ab18 (patch)
treedbce4c76f54621ab087582f101fa9fbc1514a21a /libglusterfs/src/upcall-utils.h
parentcc37d3475833efbc75570b91ea8eace073586df3 (diff)
dht/md-cache: Filter invalidate if the file is made a linkto file
Backport of http://review.gluster.org/15789 Upcall as a part of setattr, sends an invalidation and the invalidation carries the resulting stat value. When a file is converted to linkto files, even then an invalidation is set and as a result the mountpoint shows the sticky bit in the stat of the file. eg: ---------T. 945 root root 0 Nov 8 10:14 hardlink.999 Fix: When dht recieves a notification of sticky bit change, it updates the flag, to indicate md-cache to send the subsequent lookup. >Reviewed-on: http://review.gluster.org/15789 >Smoke: Gluster Build System <jenkins@build.gluster.org> >NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> >Reviewed-by: Niels de Vos <ndevos@redhat.com> >CentOS-regression: Gluster Build System <jenkins@build.gluster.org> >Reviewed-by: Susant Palai <spalai@redhat.com> >Reviewed-by: Rajesh Joseph <rjoseph@redhat.com> >(cherry picked from commit 4536f7bdf16f8286d67598eda9a46c029f0c0bf4) Change-Id: Ic2fd7a5b196db0754f9b97072e644e6bf69da606 BUG: 1401376 Signed-off-by: Poornima G <pgurusid@redhat.com> Reviewed-on: http://review.gluster.org/16022 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'libglusterfs/src/upcall-utils.h')
-rw-r--r--libglusterfs/src/upcall-utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/upcall-utils.h b/libglusterfs/src/upcall-utils.h
index 64571c5bdf8..47049fd7014 100644
--- a/libglusterfs/src/upcall-utils.h
+++ b/libglusterfs/src/upcall-utils.h
@@ -33,6 +33,8 @@
#define UP_XATTR 0x00000400 /* update the xattrs and ctime */
#define UP_XATTR_RM 0x00000800 /* Remove the xattrs and update ctime */
+#define UP_EXPLICIT_LOOKUP 0x00001000 /* Request an explicit lookup */
+
/* for fops - open, read, lk, */
#define UP_UPDATE_CLIENT (UP_ATIME)