]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cfuse: encode/decode dev_t properly
authorSage Weil <sage@newdream.net>
Tue, 3 May 2011 01:19:32 +0000 (18:19 -0700)
committerSage Weil <sage@newdream.net>
Tue, 3 May 2011 01:23:13 +0000 (18:23 -0700)
commit5ac87ffd36c7a3561266d198726eefc9f6a11036
tree35da815832dd5367e1472ddd49582ab07ead12e8
parentfc36eb6b99b3174c4ef302f4a32f757121b2bdfd
cfuse: encode/decode dev_t properly

The fuse layer passes through "encoded" dev_t values (probably for
compatibility reasons or something).  I copied the encode/decode methods
from the kernel and encode/decode the st_rdev values where appropriate
(where struct stat is exposed directory or via the fuse_entry_param
struct).

Fixes: #1031
Signed-off-by: Sage Weil <sage@newdream.net>
src/client/fuse_ll.cc