]> git.proxmox.com Git - proxmox-backup.git/blobdiff - src/tape/drive/mod.rs
use new fsync parameter to replace_file and atomic_open_or_create
[proxmox-backup.git] / src / tape / drive / mod.rs
index 168459739e279da9bab7917bd93b2d11403a7c67..df990ccfbfd1deb50e960d34c90ee4864b436d12 100644 (file)
@@ -555,7 +555,7 @@ pub fn set_tape_device_state(
         .owner(backup_user.uid)
         .group(backup_user.gid);
 
-    replace_file(path, state.as_bytes(), options)
+    replace_file(path, state.as_bytes(), options, false)
 }
 
 /// Get the device state
@@ -618,6 +618,7 @@ fn open_device_lock(device_path: &str) -> Result<std::fs::File, Error> {
         OFlag::O_RDWR | OFlag::O_CLOEXEC | OFlag::O_APPEND,
         &[],
         options,
+        false,
     )
 }