From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ted Ts'o Subject: Re: [PATCH] Assume yes when test device is not partitioned Date: Sat, 3 Sep 2011 13:52:59 -0400 Message-ID: <20110903175259.GA3461@thunk.org> References: <1315038723-2009-1-git-send-email-prasadjoshi.linux@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Chaitanya Kulkarni , xfs@oss.sgi.com, linux-ext4@vger.kernel.org To: Prasad Joshi Return-path: Received: from li9-11.members.linode.com ([67.18.176.11]:40146 "EHLO test.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753184Ab1ICRxD (ORCPT ); Sat, 3 Sep 2011 13:53:03 -0400 Content-Disposition: inline In-Reply-To: <1315038723-2009-1-git-send-email-prasadjoshi.linux@gmail.com> Sender: linux-ext4-owner@vger.kernel.org List-ID: 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id p83Hr4kr138785 for ; Sat, 3 Sep 2011 12:53:05 -0500 Received: from test.thunk.org (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 0D0EA1977FDA for ; Sat, 3 Sep 2011 10:53:02 -0700 (PDT) Received: from test.thunk.org (li9-11.members.linode.com [67.18.176.11]) by cuda.sgi.com with ESMTP id 0GPyM3tVBftWOLIK for ; Sat, 03 Sep 2011 10:53:02 -0700 (PDT) Date: Sat, 3 Sep 2011 13:52:59 -0400 From: "Ted Ts'o" Subject: Re: [PATCH] Assume yes when test device is not partitioned Message-ID: <20110903175259.GA3461@thunk.org> References: <1315038723-2009-1-git-send-email-prasadjoshi.linux@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1315038723-2009-1-git-send-email-prasadjoshi.linux@gmail.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Prasad Joshi Cc: linux-ext4@vger.kernel.org, Chaitanya Kulkarni , xfs@oss.sgi.com 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 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs