]> git.ipfire.org Git - thirdparty/libvirt.git/commit
fs: Add proper switch to create filesystem with overwrite
authorJohn Ferlan <jferlan@redhat.com>
Tue, 15 Nov 2016 20:29:47 +0000 (15:29 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 16 Nov 2016 11:52:35 +0000 (06:52 -0500)
commit135e77d32fe9e7299f5c82757563e5a6d28e2f3c
tree45ce527af2d6203e921b81c2bfb256329fe7e3b2
parent29e17f65a8ad1c80b093be6e3ef9f79b557893bc
fs: Add proper switch to create filesystem with overwrite

https://bugzilla.redhat.com/show_bug.cgi?id=1366460

When using the --overwrite switch on a pool-build or pool-create, the
The mkfs.ext{2|3|4} commands use mke2fs which requires using the '-F' switch
in order to force overwriting the current filesystem on the whole disk.

Likewise, the mkfs.vfat command uses mkfs.fat which requires using the '-I'
switch in order to force overwriting the current filesystem on the whole disk.
src/storage/storage_backend_fs.c