summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/storage/posix/src/posix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index 8839c4975..29a98df38 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -105,7 +105,9 @@ _posix_xattr_get_set (dict_t *xattr_req,
/* should size be put into the data_t ? */
- if (!strcmp (key, "glusterfs.content")) {
+ if (!strcmp (key, "glusterfs.content")
+ && S_ISREG (filler->stbuf->st_mode)) {
+
/* file content request */
req_size = data_to_uint64 (data);
if (req_size >= filler->stbuf->st_size) {