From 0a0748b9201bf7f5979ce0f004aad3130f737392 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Tue, 2 Dec 2025 20:38:48 +0000 Subject: [PATCH] Disable byte range locking for smbfs. --- common/cifs-client.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/cifs-client.nix b/common/cifs-client.nix index 5cc0d92..56a5ec2 100644 --- a/common/cifs-client.nix +++ b/common/cifs-client.nix @@ -1,7 +1,7 @@ { pkgs, ... }: let # this line prevents hanging on network split - automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.mount-timeout=5s"; + automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.mount-timeout=5s,nobrl"; in { environment.systemPackages = [ pkgs.cifs-utils ]; @@ -17,7 +17,7 @@ in fileSystems."/data/media" = { device = "//fractal/media"; fsType = "cifs"; - options = [ "uid=1000,${automount_opts},credentials=/etc/nixos/smb-secrets" ]; + options = [ "uid=1000,${automount_opts},credentials=/etc/nixos/smb-secrets", ]; }; fileSystems."/data/shared" = {