Re: [PATCH, RFC] btrfs-progs: require mkfs -f force option to
overwrite filesystem or partition table
[Posted February 20, 2013 by corbet]
From: |
| Chris Mason <chris.mason-AT-fusionio.com> |
To: |
| Eric Sandeen <sandeen-AT-redhat.com> |
Subject: |
| Re: [PATCH, RFC] btrfs-progs: require mkfs -f force option to
overwrite filesystem or partition table |
Date: |
| Thu, 14 Feb 2013 15:23:24 -0500 |
Message-ID: |
| <20130214202324.GD3919@shiny.masoncoding.com> |
Cc: |
| linux-btrfs <linux-btrfs-AT-vger.kernel.org> |
Archive‑link: | |
Article |
On Thu, Feb 14, 2013 at 11:30:03AM -0700, Eric Sandeen wrote:
> The core of this is shamelessly stolen from xfsprogs.
>
> Use blkid to detect an existing filesystem or partition
> table on any of the target devices. If something is found,
> require the '-f' option to overwrite it, hopefully avoiding
> disaster due to mistyped devicenames, etc.
So, this has always been the one thing I didn't want to steal from XFS.
I don't have a good reason though, and it seems like it is time to bring
this in.
Just to get back at you though, I'll turn on an incandescent light bulb
every time I have to use -f.
-chris
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html