Ryan Wang
2012-Nov-26 01:26 UTC
How to run xfstests against btrfs on multipath disks on SuSE?
Hello, I tried to kick off xfstests against btrfs on multipath device, e.g I set TEST_DEV="/dev/mapper/mpatha", which is a symlink to "/dev/dm-0". I mkfs.btrfs mpatha beforehand. When I run "./check 001", it said: " common.rc: Error: $TEST_DEV (/dev/dm-0) is not a MOUNTED btrfs filesystem " The I checked the script common.rc, and found that it uses df to determine the filesystem type and it uses the realpath "/dev/dm-0" instead of "/dev/mapper/mpatha", while df always shows "devtmpfs" instead of "btrfs" for /dev/dm-0. I run "mount" and found that devtmpfs is mount on /dev/ ***by default*** in SuSE. Even though I run "mount -t btrfs /dev/dm-0 /somedir", df still showed devtmpfs. Any ideas to kick off the xfstests? thanks, -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Dave Chinner
2012-Nov-26 01:39 UTC
Re: How to run xfstests against btrfs on multipath disks on SuSE?
On Mon, Nov 26, 2012 at 09:26:31AM +0800, Ryan Wang wrote:> Hello, > > I tried to kick off xfstests against btrfs on multipath device, > e.g I set TEST_DEV="/dev/mapper/mpatha", which is a > symlink to "/dev/dm-0". I mkfs.btrfs mpatha beforehand. > > When I run "./check 001", it said: > " > common.rc: Error: $TEST_DEV (/dev/dm-0) is not a MOUNTED btrfs filesystem > " > > The I checked the script common.rc, and found that it uses > df to determine the filesystem type and it uses the realpath > "/dev/dm-0" instead of "/dev/mapper/mpatha", while df always > shows "devtmpfs" instead of "btrfs" for /dev/dm-0. > > I run "mount" and found that devtmpfs is mount on /dev/ ***by default*** > in SuSE. > Even though I run "mount -t btrfs /dev/dm-0 /somedir", df still showed > devtmpfs. > > Any ideas to kick off the xfstests?seeing as you''ve now sent this to 3 lists that the xfstests maintainers are likely not to read, I''ve added the proper list to the cc list. i.e. xfs@oss.sgi.com. Cheers, Dave. -- Dave Chinner david@fromorbit.com -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html