[PATCH] Assume yes when test device is not partitioned
Ted Ts'o
tytso at mit.edu
Sat Sep 3 12:52:59 CDT 2011
On Sat, Sep 03, 2011 at 02:02:03PM +0530, Prasad Joshi wrote:
> @@ -333,7 +333,7 @@ _scratch_mkfs_sized()
> _scratch_mkfs_xfs -d size=$fssize -b size=$blocksize
> ;;
> ext2|ext3|ext4|ext4dev)
> - /sbin/mkfs.$FSTYP $MKFS_OPTIONS -b $blocksize $SCRATCH_DEV $blocks
> + yes | ${MKFS_PROG}.$FSTYP $MKFS_OPTIONS -b $blocksize $SCRATCH_DEV $blocks
> ;;
> btrfs)
> $MKFS_BTRFS_PROG $MKFS_OPTIONS -b $fssize $SCRATCH_DEV
Why don't you just pass -f to mke2fs.ext[234]?
- Ted
More information about the xfs
mailing list