Hello, It's seen that btrfs_mknod doesn't save device number in rdev field of inode. you can test the issue by: (1) create a device file with non-zero major and minor device number (2) umount the filesystem (3) mount the filesystem. after do the steps above, you can find both major and minor device number become zero. Best Regards YZ
On Thu, 16 Aug 2007 02:23:09 +0800 "Yan Zheng" <yanzheng@21cn.com> wrote:> Hello, > > It's seen that btrfs_mknod doesn't save device number in rdev field of > inode. you can test the issue by: (1) create a device file with > non-zero major and minor device number (2) umount the filesystem (3) > mount the filesystem. after do the steps above, you can find both > major and minor device number become zero.Hi, this one should have been fixed a while back, which version are you testing? -chris
On Thu, 16 Aug 2007 02:23:09 +0800 "Yan Zheng" <yanzheng@21cn.com> wrote:> Hello, > > It's seen that btrfs_mknod doesn't save device number in rdev field of > inode. you can test the issue by: (1) create a device file with > non-zero major and minor device number (2) umount the filesystem (3) > mount the filesystem. after do the steps above, you can find both > major and minor device number become zero.I'd like to keep it out until we have code that can test it (ie the sysfs work ;) -chris