From 773c9688bc8d3190eab3797190bd06d7acf275aa Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Mon, 29 Nov 2010 06:24:15 +0000 Subject: fuse-bridge: construct fa->rdev properly Signed-off-by: Anand V. Avati Signed-off-by: Anand V. Avati BUG: 2145 ([3.1.1qa9] mknod does not work properly) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2145 --- xlators/mount/fuse/src/fuse-helpers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/mount/fuse') diff --git a/xlators/mount/fuse/src/fuse-helpers.c b/xlators/mount/fuse/src/fuse-helpers.c index 96fc8a864..7dbf09bf5 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 -- cgit