Skip to contentSkip to conversation

reiser4: getattr / 64 bit kdev_t

DISCUSSION Christophe Saout 1 participant 1 message Aug 26, 2003

lore
Share & tools
lore
#0 lore raw

Hi!

I'm just hunting down a bug where reiser4 swallows the major number of block/char special files when using the 64 bit kdev_t patch in Andrew's -mm tree (which is going to be included into the mainstream kernel soon). Apart from that reiser4 is apparently assigning device numbers to an int somewhere (?) this should not happen because the dev_t is (while 64 bit now) designed to be backward compatible (see at the modified linux/kdev_t.h).

Apart from that I stumbled over the following line in fs/reiser4/plugin/object.c:

stat->blocks = (inode_get_bytes(obj) + VFS_BLKSIZE) >> VFS_BLKSIZE_BITS;

Isn't this supposed to be

stat->blocks = (inode_get_bytes(obj) + VFS_BLKSIZE - 1)

               >> VFS_BLKSIZE_BITS;

? (at least the generic implementation suggests this)

--
Christophe Saout <[email protected]>
Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html