diff options
-rw-r--r-- | xlators/mount/fuse/src/fuse-helpers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/mount/fuse/src/fuse-helpers.c b/xlators/mount/fuse/src/fuse-helpers.c index 96fc8a86400..7dbf09bf5c2 100644 --- a/xlators/mount/fuse/src/fuse-helpers.c +++ b/xlators/mount/fuse/src/fuse-helpers.c @@ -289,7 +289,8 @@ gf_fuse_stat2attr (struct iatt *st, struct fuse_attr *fa) fa->nlink = st->ia_nlink; fa->uid = st->ia_uid; fa->gid = st->ia_gid; - fa->rdev = st->ia_rdev; + fa->rdev = makedev (ia_major (st->ia_rdev), + ia_minor (st->ia_rdev)); #if FUSE_KERNEL_MINOR_VERSION >= 9 fa->blksize = st->ia_blksize; #endif |