btrfs requires at least 256M file system size, so check 'fssize' in _scratch_mkfs_sized first and give it a proper value. Otherwise mkfs.btrfs will complain something like "File system size 267386880 bytes is too small, 256M is required at least" This makes 015 077 and 083 run on btrfs. Signed-off-by: Eryu Guan <guaneryu@xxxxxxxxx> --- common.rc | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/common.rc b/common.rc index e948169..ab61786 100644 --- a/common.rc +++ b/common.rc @@ -356,6 +356,11 @@ _scratch_mkfs_sized() /sbin/mkfs.$FSTYP $MKFS_OPTIONS -b $blocksize $SCRATCH_DEV $blocks ;; btrfs) + # btrfs needs at least 256M file system size + if [ $fssize -lt $((256*1024*1024)) ] + then + fssize=$((256*1024*1024)) + fi $MKFS_BTRFS_PROG $MKFS_OPTIONS -b $fssize $SCRATCH_DEV ;; *) -- 1.7.7.1 _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs