made every address space for nfs use a different fsid
This commit is contained in:
parent
1695983742
commit
33ea6db98b
|
@ -54,10 +54,16 @@
|
||||||
"${config.host.network_storage.export_directory} 100.64.0.0/10(rw,fsid=0,no_subtree_check)"
|
"${config.host.network_storage.export_directory} 100.64.0.0/10(rw,fsid=0,no_subtree_check)"
|
||||||
]
|
]
|
||||||
++ (
|
++ (
|
||||||
lib.lists.imap1 (
|
lib.lists.imap0 (
|
||||||
i: directory: let
|
i: directory: let
|
||||||
options = "(rw,fsid=${toString i},nohide,insecure,no_subtree_check)";
|
option = fsid: "(rw,fsid=${toString fsid},nohide,insecure,no_subtree_check)";
|
||||||
in "${directory._directory} 100.64.0.0/10${options} 192.168.0.0/24${options} 127.0.0.1${options}"
|
addresses = ["100.64.0.0/10" "192.168.0.0/24" "127.0.0.1"];
|
||||||
|
options = lib.strings.concatStrings (
|
||||||
|
lib.strings.intersperse " " (
|
||||||
|
lib.lists.imap0 (index: address: "${address}${option (1 + (i * (builtins.length addresses)) + index)}") addresses
|
||||||
|
)
|
||||||
|
);
|
||||||
|
in "${directory._directory} ${options}"
|
||||||
)
|
)
|
||||||
(
|
(
|
||||||
builtins.filter (
|
builtins.filter (
|
||||||
|
|
Loading…
Reference in a new issue