summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2010-11-29 06:24:15 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-12-03 02:55:56 -0800
commit773c9688bc8d3190eab3797190bd06d7acf275aa (patch)
tree165e4e4cfa85ae6826db89d07dbdf1eae6aa7b38 /xlators/mount/fuse
parent69a62d2a6d8ad127787aad2215c2130a03f58090 (diff)
fuse-bridge: construct fa->rdev properly
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2145 ([3.1.1qa9] mknod does not work properly) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2145
Diffstat (limited to 'xlators/mount/fuse')
-rw-r--r--xlators/mount/fuse/src/fuse-helpers.c3
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