xfs/078: instead file image by mkfs on loopback device
authorZorro Lang <zlang@redhat.com>
Thu, 9 Mar 2017 16:40:19 +0000 (00:40 +0800)
committerEryu Guan <eguan@redhat.com>
Fri, 10 Mar 2017 06:30:50 +0000 (14:30 +0800)
commitf947088198740826affb7250e0dbf26bed30cfd8
tree1faf2d5a57b246e26bf9170f988c03cc46a4b96b
parent265c1037eeaf2fa9e4c0cede132c22b3cadf9fb8
xfs/078: instead file image by mkfs on loopback device

If test on 4k sector size device, xfs/078 will fail when it try to
make a filesystem image with block size less than 4096. But if we
attach the file image to a loop device, it can accept 512 block
size. So this patch attach a loop device before do mkfs.xfs.

[eguan: replace bare mount/umount with [U]MOUNT_PROG]

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/xfs/078
tests/xfs/078.out