Goffredo Baroncelli
2011-Oct-18 16:45 UTC
[PATCH 1/2][BTRFS-PROGS] add the "--force" switch to the mkfs.btrfs command
As requested by Mitch, I resend the patch related to the "--force" option for the mkfs.btrfs command. This patch allow to bypass the check which ensure that you are formatting a not mounted partition/disk. Sometime (eg in a chrooted environment where the /proc filesystem is not mounted ) you don''t have all the information, and the check fails even if the device is not mounted. Passing the --force|-f flag to the mkfs.btrfs command you bypass this check. This patch update the mkfs.c program. On Monday, 17 October, 2011 15:11:15 you wrote:> Goffredo: > > I was wanting to see if your mkfs.btrfs --force patches could get > picked up in the Btrfs-progs testing tree that Hugo Mills is trying to > maintain. > > He was OK with the patches, but was hoping for a ''signed-off-by'' and > more description in the commit comment. > > Could you resend your patches to the list with a ''signed-off-by'' and > some additional description? > > Some suggested text for the comment: > > Certain operating environments (such as a chroot environment) can lead > to mkfs.btrfs failure while checking devices (particularly when all > devices are not fully described in /dev). > > The --force option skips device checking, and forces formating on the > specified target. > > Thanks.-- gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack@inwind.it> Key fingerprint = 4769 7E51 5293 D36C 814E C054 BF04 F161 3DC5 0512
Goffredo Baroncelli
2011-Oct-18 16:56 UTC
Re: [PATCH 1/2][BTRFS-PROGS] add the "--force" switch to the mkfs.btrfs command
I forgot to mention that you can pull these changes from the following repository: http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git branch force-mkfs Of course these patches are re-based on the latest Hugo''s integration (integration-20111012) BR On Tuesday, 18 October, 2011 18:45:13 Goffredo Baroncelli wrote:> As requested by Mitch, I resend the patch related to the "--force" option > for the mkfs.btrfs command. > > This patch allow to bypass the check which ensure that you are formatting a > not mounted partition/disk. > Sometime (eg in a chrooted environment where the /proc filesystem is not > mounted ) you don''t have all the information, and the check fails even if > the device is not mounted. > > Passing the --force|-f flag to the mkfs.btrfs command you bypass this check. > > This patch update the mkfs.c program. > > On Monday, 17 October, 2011 15:11:15 you wrote: > > Goffredo: > > > > I was wanting to see if your mkfs.btrfs --force patches could get > > picked up in the Btrfs-progs testing tree that Hugo Mills is trying to > > maintain. > > > > He was OK with the patches, but was hoping for a ''signed-off-by'' and > > more description in the commit comment. > > > > Could you resend your patches to the list with a ''signed-off-by'' and > > some additional description? > > > > Some suggested text for the comment: > > > > Certain operating environments (such as a chroot environment) can lead > > to mkfs.btrfs failure while checking devices (particularly when all > > devices are not fully described in /dev). > > > > The --force option skips device checking, and forces formating on the > > specified target. > > > > Thanks.-- gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack@inwind.it> Key fingerprint = 4769 7E51 5293 D36C 814E C054 BF04 F161 3DC5 0512 -- 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
Hugo Mills
2011-Oct-31 00:11 UTC
Re: [PATCH 1/2][BTRFS-PROGS] add the "--force" switch to the mkfs.btrfs command
Hi, Goffredo, On Tue, Oct 18, 2011 at 06:45:13PM +0200, Goffredo Baroncelli wrote:> As requested by Mitch, I resend the patch related to the "--force" option for > the mkfs.btrfs command. > > This patch allow to bypass the check which ensure that you are formatting a > not mounted partition/disk. > Sometime (eg in a chrooted environment where the /proc filesystem is not > mounted ) you don''t have all the information, and the check fails even if the > device is not mounted. > > Passing the --force|-f flag to the mkfs.btrfs command you bypass this check. > > This patch update the mkfs.c program.Could I have your signed-off-by for these two patches, please? (This one and the subsequent one that does the man pages). I''m also missing your S-o-B on the man page patch series -- no need to respin the patches, just supply the relevant S-o-B line that I can put in. Thanks, Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk == PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- That''s not rain, that''s a lake with slots in it. ---