From 18210d8958a9b0e20cdddbc7cd921379330b5d2c Mon Sep 17 00:00:00 2001 From: Stefan Reiter Date: Thu, 29 Apr 2021 10:22:53 +0200 Subject: [PATCH] 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 Tested-by: Dominik Csapak Signed-off-by: Stefan Reiter --- src/bin/proxmox_restore_daemon/disk.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/proxmox_restore_daemon/disk.rs b/src/bin/proxmox_restore_daemon/disk.rs index 0b564e42..b0d5f72d 100644 --- a/src/bin/proxmox_restore_daemon/disk.rs +++ b/src/bin/proxmox_restore_daemon/disk.rs @@ -25,6 +25,8 @@ lazy_static! { m.insert("ext3", "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 // whatever the user is trying to restore is not using anything older... m.insert("ufs", "ufstype=ufs2");