diff options
Diffstat (limited to 'xlators/storage/posix/src/posix.c')
-rw-r--r-- | xlators/storage/posix/src/posix.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 9e9c86349bb..ad71b678369 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -110,7 +110,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) { |