From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from userp1040.oracle.com ([156.151.31.81]:46331 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751745AbaL2Jzl (ORCPT ); Mon, 29 Dec 2014 04:55:41 -0500 Message-ID: <54A12515.6000509@oracle.com> Date: Mon, 29 Dec 2014 17:55:33 +0800 From: Anand Jain MIME-Version: 1.0 To: Ankur Tank CC: "linux-btrfs@vger.kernel.org" Subject: Re: btrfs doesn't format eMMC if previous filesystem is ext4 References: <54A0C17C.7010009@oracle.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Sender: linux-btrfs-owner@vger.kernel.org List-ID: That's by design. More over this is nothing specific to eMMC. Thanks. On 29/12/2014 15:15, Ankur Tank wrote: > Hi Anand, > > Precondition : Previous filesystem on eMMC was --- ext4---- > Use case : Now format eMMC to btrfs format, using ---mkfs.btrfs--- > mkfs.btrfs denies formatting eMMC telling that eMMC contain an existing filesystem(ext4). > > In my opinion mkfs.btrfs must allow to format eMMC with btrfs even if there is other filesystem on it. > > mkfs.ext4 and mkfs.f2fs does allow formatting even if eMMC contains some other file system on it. > > Note: If I add "-f" option mkfs.btrf does allow formatting eMMC to btrfs filesytem. > > Regards, > Ankur > -----Original Message----- > From: Anand Jain [mailto:Anand.Jain@oracle.com] > Sent: Monday, December 29, 2014 8:21 AM > To: Ankur Tank; linux-btrfs@vger.kernel.org > Subject: Re: btrfs doesn't format eMMC if previous filesystem is ext4 > > > > On 12/26/2014 11:24 PM, Ankur Tank wrote: >> Hi, >> >> I wanted to test btrfs on the eMMC of beaglebone black based custom board. >> Precondition: eMMC is formatted with ext4 filesystem Use case: >> Format eMMC with mkfs.btrfs -L