xfs
[Top] [All Lists]

Re: [PATCH] Assume yes when test device is not partitioned

To: Prasad Joshi <prasadjoshi.linux@xxxxxxxxx>
Subject: Re: [PATCH] Assume yes when test device is not partitioned
From: "Ted Ts'o" <tytso@xxxxxxx>
Date: Sat, 3 Sep 2011 13:52:59 -0400
Cc: Chaitanya Kulkarni <chaitanyakulkarni15@xxxxxxxxx>, xfs@xxxxxxxxxxx, linux-ext4@xxxxxxxxxxxxxxx
In-reply-to: <1315038723-2009-1-git-send-email-prasadjoshi.linux@xxxxxxxxx>
References: <1315038723-2009-1-git-send-email-prasadjoshi.linux@xxxxxxxxx>
User-agent: Mutt/1.5.20 (2009-06-14)
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

<Prev in Thread] Current Thread [Next in Thread>