Skip to content

Commit

Permalink
nixosTests.nfs4.{simple,kerberos}: use a nonzero fsid
Browse files Browse the repository at this point in the history
  • Loading branch information
nevivurn authored and Mic92 committed Nov 12, 2023
1 parent f74153e commit 968de63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions nixos/tests/nfs/kerberos.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ in

virtualisation.fileSystems =
{ "/data" = {
device = "server.nfs.test:/";
device = "server.nfs.test:/data";
fsType = "nfs";
options = [ "nfsvers=4" "sec=krb5p" "noauto" ];
};
Expand Down Expand Up @@ -71,7 +71,7 @@ in
services.nfs.server.createMountPoints = true;
services.nfs.server.exports =
''
/data *(rw,no_root_squash,fsid=0,sec=krb5p)
/data *(rw,no_root_squash,fsid=1,sec=krb5p)
'';
};
};
Expand Down
6 changes: 3 additions & 3 deletions nixos/tests/nfs/simple.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ let
{ pkgs, ... }:
{ virtualisation.fileSystems =
{ "/data" =
{ # nfs4 exports the export with fsid=0 as a virtual root directory
device = if (version == 4) then "server:/" else "server:/data";
{
device = "server:/data";
fsType = "nfs";
options = [ "vers=${toString version}" ];
};
Expand All @@ -32,7 +32,7 @@ in
{ services.nfs.server.enable = true;
services.nfs.server.exports =
''
/data 192.168.1.0/255.255.255.0(rw,no_root_squash,no_subtree_check,fsid=0)
/data 192.168.1.0/255.255.255.0(rw,no_root_squash,no_subtree_check,fsid=1)
'';
services.nfs.server.createMountPoints = true;
networking.firewall.enable = false; # FIXME: figure out what ports need to be allowed
Expand Down

0 comments on commit 968de63

Please sign in to comment.