diff options
author | Soumya Koduri <skoduri@redhat.com> | 2015-12-14 17:52:37 +0530 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2016-02-16 00:51:54 -0800 |
commit | f4282bd927e2e0d826d62cf1192102382c5697b2 (patch) | |
tree | f48f23fe9a91870e12bd13a7e4425fd581e215fd /tests/basic/gfapi/Makefile.am | |
parent | 888efdf5e0ab7d22c3fc227dc0dbfaec91b1d5d9 (diff) |
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 <skoduri@redhat.com>
Reviewed-on: http://review.gluster.org/12962
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'tests/basic/gfapi/Makefile.am')
-rw-r--r-- | tests/basic/gfapi/Makefile.am | 3 |
1 files changed, 2 insertions, 1 deletions
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 $@ $^ |