file-restore: use 'norecovery' for xfs filesystem
This allows mounting XFS partitons with 'dirty' states, like from a running VM. Otherwise XFS tries to write recovery information, which fails on a read-only mount. Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com> Tested-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
parent
bc5c1a9aa6
commit
18210d8958
|
@ -25,6 +25,8 @@ lazy_static! {
|
||||||
m.insert("ext3", "noload");
|
m.insert("ext3", "noload");
|
||||||
m.insert("ext4", "noload");
|
m.insert("ext4", "noload");
|
||||||
|
|
||||||
|
m.insert("xfs", "norecovery");
|
||||||
|
|
||||||
// ufs2 is used as default since FreeBSD 5.0 released in 2003, so let's assume that
|
// ufs2 is used as default since FreeBSD 5.0 released in 2003, so let's assume that
|
||||||
// whatever the user is trying to restore is not using anything older...
|
// whatever the user is trying to restore is not using anything older...
|
||||||
m.insert("ufs", "ufstype=ufs2");
|
m.insert("ufs", "ufstype=ufs2");
|
||||||
|
|
Loading…
Reference in New Issue