[pbs-devel] [PATCH proxmox-backup] proxmox_restore_daemon: mount ntfs with 'utf8' option

Dominik Csapak d.csapak at proxmox.com
Wed May 5 10:46:19 CEST 2021


otherwise, the kernel driver exposes file names as iso 8859-1,
but we want to have them as utf8.

This mapping should always work, since UTF16 can be cleanly converted
to UTF8.

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 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 47c718f8..b58a84ff 100644
--- a/src/bin/proxmox_restore_daemon/disk.rs
+++ b/src/bin/proxmox_restore_daemon/disk.rs
@@ -31,6 +31,8 @@ lazy_static! {
         // whatever the user is trying to restore is not using anything older...
         m.insert("ufs", "ufstype=ufs2");
 
+        m.insert("ntfs", "utf8");
+
         m
     };
 }
-- 
2.20.1






More information about the pbs-devel mailing list