summaryrefslogtreecommitdiffstats
path: root/xlators/features/gfid-access/src/gfid-access.h
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/gfid-access/src/gfid-access.h')
-rw-r--r--xlators/features/gfid-access/src/gfid-access.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/xlators/features/gfid-access/src/gfid-access.h b/xlators/features/gfid-access/src/gfid-access.h
index e883eca696c..31c82e07891 100644
--- a/xlators/features/gfid-access/src/gfid-access.h
+++ b/xlators/features/gfid-access/src/gfid-access.h
@@ -69,7 +69,7 @@
((loc->parent && \
__is_root_gfid (loc->parent->gfid)) || \
__is_root_gfid (loc->pargfid))) { \
- err = EEXIST; \
+ err = ENOTSUP; \
goto lbl; \
} \
\
@@ -83,7 +83,13 @@
} \
} while (0)
-
+#define GFID_ACCESS_INODE_OP_CHECK(loc,err,lbl) do { \
+ /*Check if it is on .gfid*/ \
+ if (__is_gfid_access_dir(loc->gfid)) { \
+ err = ENOTSUP; \
+ goto lbl; \
+ } \
+ } while (0)
typedef struct {
unsigned int uid;
unsigned int gid;