From f4282bd927e2e0d826d62cf1192102382c5697b2 Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Mon, 14 Dec 2015 17:52:37 +0530 Subject: Upcall/cache-invalidation: Use parent stbuf while updating parent entry For *create* fops (CREATE, MKDIR, MKNOD), we invalidate the parent entry. Hence send parent attributes in the stat field. Also "UP_PARENT_DENTRY_FLAGS" has to be set only for the fops which shall result in two invalidations requests - one for the inode on which fop is being performed and another on parent entry. In case of CREATE/MKDIR/MKNOD fops, there shall be only one invalidation request sent, that too on parent inode. We send invalidation directly on parent inode's gfid. So there is no necessity to set these flags which when set shall endup invalidating the parent's parent entry. Change-Id: I7514ee08382081e3e060818ede497dbca26987dc BUG: 1291259 Signed-off-by: Soumya Koduri Reviewed-on: http://review.gluster.org/12962 CentOS-regression: Gluster Build System NetBSD-regression: NetBSD Build System Smoke: Gluster Build System Reviewed-by: Niels de Vos --- tests/basic/gfapi/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/basic/gfapi/Makefile.am') diff --git a/tests/basic/gfapi/Makefile.am b/tests/basic/gfapi/Makefile.am index b166fcc3fa6..8ca03c72639 100644 --- a/tests/basic/gfapi/Makefile.am +++ b/tests/basic/gfapi/Makefile.am @@ -4,7 +4,8 @@ CFLAGS = -Wall -g $(shell pkg-config --cflags glusterfs-api) LDFLAGS = $(shell pkg-config --libs glusterfs-api) -BINARIES = upcall-cache-invalidate libgfapi-fini-hang anonymous_fd seek +BINARIES = upcall-cache-invalidate libgfapi-fini-hang anonymous_fd seek \ + bug1283983 bug1291259 %: %.c $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -- cgit