From 9f8edf2b2576a235526087f4fbc5769940f019ad Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Wed, 24 Nov 2010 07:15:19 +0000 Subject: iatt: fix bug in ia_makedev the wrong binary operator was resulting in lookup/stat showing wrong major/minor numbers for device files 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 --- libglusterfs/src/iatt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libglusterfs') diff --git a/libglusterfs/src/iatt.h b/libglusterfs/src/iatt.h index a17e0e7a4..ce4cc495d 100644 --- a/libglusterfs/src/iatt.h +++ b/libglusterfs/src/iatt.h @@ -120,7 +120,7 @@ ia_minor (uint64_t ia_dev) static inline uint64_t ia_makedev (uint32_t ia_maj, uint32_t ia_min) { - return ((((uint64_t) ia_maj) << 32) & ia_min); + return ((((uint64_t) ia_maj) << 32) | ia_min); } -- cgit