|
Packit Service |
a2ae7a |
module Test_automounter =
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
let example = "#
|
|
Packit Service |
a2ae7a |
# This is an automounter map and it has the following format
|
|
Packit Service |
a2ae7a |
# key [ -mount-options-separated-by-comma ] location
|
|
Packit Service |
a2ae7a |
# Details may be found in the autofs(5) manpage
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# indirect map
|
|
Packit Service |
a2ae7a |
cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
|
|
Packit Service |
a2ae7a |
kernel -ro,soft,intr ftp.kernel.org:/pub/linux
|
|
Packit Service |
a2ae7a |
* -fstype=auto,loop,ro :/srv/distros/isos/&.iso
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# direct map
|
|
Packit Service |
a2ae7a |
/nfs/apps/mozilla bogus:/usr/local/moxill
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# replicated server
|
|
Packit Service |
a2ae7a |
path host1,host2,hostn:/path/path
|
|
Packit Service |
a2ae7a |
path host1,host2:/blah host3(1):/some/other/path
|
|
Packit Service |
a2ae7a |
path host1(5),host2(6),host3(1):/path/path
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# multi-mount map
|
|
Packit Service |
a2ae7a |
server -rw,hard,intr / -ro myserver.me.org:/
|
|
Packit Service |
a2ae7a |
server -rw,hard,intr / -ro myserver.me.org:/ /usr myserver.me.org:/usr
|
|
Packit Service |
a2ae7a |
server -rw,hard,intr / -ro myserver.me.org:/ \
|
|
Packit Service |
a2ae7a |
/usr myserver.me.org:/usr \
|
|
Packit Service |
a2ae7a |
/home myserver.me.org:/home
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
server -rw,hard,intr / -ro my-with-dash-server.me.org:/
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# included maps
|
|
Packit Service |
a2ae7a |
+auto_home
|
|
Packit Service |
a2ae7a |
"
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
test Automounter.lns get example =
|
|
Packit Service |
a2ae7a |
{ }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "This is an automounter map and it has the following format" }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "key [ -mount-options-separated-by-comma ] location" }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "Details may be found in the autofs(5) manpage" }
|
|
Packit Service |
a2ae7a |
{ }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "indirect map" }
|
|
Packit Service |
a2ae7a |
{ "1" = "cd"
|
|
Packit Service |
a2ae7a |
{ "opt" = "fstype"
|
|
Packit Service |
a2ae7a |
{ "value" = "iso9660" } }
|
|
Packit Service |
a2ae7a |
{ "opt" = "ro" }
|
|
Packit Service |
a2ae7a |
{ "opt" = "nosuid" }
|
|
Packit Service |
a2ae7a |
{ "opt" = "nodev" }
|
|
Packit Service |
a2ae7a |
{ "location"
|
|
Packit Service |
a2ae7a |
{ "1"
|
|
Packit Service |
a2ae7a |
{ "path" = "/dev/cdrom" } } } }
|
|
Packit Service |
a2ae7a |
{ "2" = "kernel"
|
|
Packit Service |
a2ae7a |
{ "opt" = "ro" }
|
|
Packit Service |
a2ae7a |
{ "opt" = "soft" }
|
|
Packit Service |
a2ae7a |
{ "opt" = "intr" }
|
|
Packit Service |
a2ae7a |
{ "location"
|
|
Packit Service |
a2ae7a |
{ "1"
|
|
Packit Service |
a2ae7a |
{ "host" = "ftp.kernel.org" }
|
|
Packit Service |
a2ae7a |
{ "path" = "/pub/linux" } } } }
|
|
Packit Service |
a2ae7a |
{ "3" = "*"
|
|
Packit Service |
a2ae7a |
{ "opt" = "fstype"
|
|
Packit Service |
a2ae7a |
{ "value" = "auto" } }
|
|
Packit Service |
a2ae7a |
{ "opt" = "loop" }
|
|
Packit Service |
a2ae7a |
{ "opt" = "ro" }
|
|
Packit Service |
a2ae7a |
{ "location"
|
|
Packit Service |
a2ae7a |
{ "1"
|
|
Packit Service |
a2ae7a |
{ "path" = "/srv/distros/isos/&.iso" } } } }
|
|
Packit Service |
a2ae7a |
{ }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "direct map" }
|
|
Packit Service |
a2ae7a |
{ "4" = "/nfs/apps/mozilla"
|
|
Packit Service |
a2ae7a |
{ "location"
|
|
Packit Service |
a2ae7a |
{ "1"
|
|
Packit Service |
a2ae7a |
{ "host" = "bogus" }
|
|
Packit Service |
a2ae7a |
{ "path" = "/usr/local/moxill" } } } }
|
|
Packit Service |
a2ae7a |
{ }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "replicated server" }
|
|
Packit Service |
a2ae7a |
{ "5" = "path"
|
|
Packit Service |
a2ae7a |
{ "location"
|
|
Packit Service |
a2ae7a |
{ "1"
|
|
Packit Service |
a2ae7a |
{ "host" = "host1" }
|
|
Packit Service |
a2ae7a |
{ "host" = "host2" }
|
|
Packit Service |
a2ae7a |
{ "host" = "hostn" }
|
|
Packit Service |
a2ae7a |
{ "path" = "/path/path" } } } }
|
|
Packit Service |
a2ae7a |
{ "6" = "path"
|
|
Packit Service |
a2ae7a |
{ "location"
|
|
Packit Service |
a2ae7a |
{ "1"
|
|
Packit Service |
a2ae7a |
{ "host" = "host1" }
|
|
Packit Service |
a2ae7a |
{ "host" = "host2" }
|
|
Packit Service |
a2ae7a |
{ "path" = "/blah" } }
|
|
Packit Service |
a2ae7a |
{ "2"
|
|
Packit Service |
a2ae7a |
{ "host" = "host3"
|
|
Packit Service |
a2ae7a |
{ "weight" = "1" } }
|
|
Packit Service |
a2ae7a |
{ "path" = "/some/other/path" } } } }
|
|
Packit Service |
a2ae7a |
{ "7" = "path"
|
|
Packit Service |
a2ae7a |
{ "location"
|
|
Packit Service |
a2ae7a |
{ "1"
|
|
Packit Service |
a2ae7a |
{ "host" = "host1"
|
|
Packit Service |
a2ae7a |
{ "weight" = "5" } }
|
|
Packit Service |
a2ae7a |
{ "host" = "host2"
|
|
Packit Service |
a2ae7a |
{ "weight" = "6" } }
|
|
Packit Service |
a2ae7a |
{ "host" = "host3"
|
|
Packit Service |
a2ae7a |
{ "weight" = "1" } }
|
|
Packit Service |
a2ae7a |
{ "path" = "/path/path" } } } }
|
|
Packit Service |
a2ae7a |
{ }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "multi-mount map" }
|
|
Packit Service |
a2ae7a |
{ "8" = "server"
|
|
Packit Service |
a2ae7a |
{ "opt" = "rw" }
|
|
Packit Service |
a2ae7a |
{ "opt" = "hard" }
|
|
Packit Service |
a2ae7a |
{ "opt" = "intr" }
|
|
Packit Service |
a2ae7a |
{ "mount"
|
|
Packit Service |
a2ae7a |
{ "1" = "/"
|
|
Packit Service |
a2ae7a |
{ "opt" = "ro" }
|
|
Packit Service |
a2ae7a |
{ "location"
|
|
Packit Service |
a2ae7a |
{ "1"
|
|
Packit Service |
a2ae7a |
{ "host" = "myserver.me.org" }
|
|
Packit Service |
a2ae7a |
{ "path" = "/" } } } } } }
|
|
Packit Service |
a2ae7a |
{ "9" = "server"
|
|
Packit Service |
a2ae7a |
{ "opt" = "rw" }
|
|
Packit Service |
a2ae7a |
{ "opt" = "hard" }
|
|
Packit Service |
a2ae7a |
{ "opt" = "intr" }
|
|
Packit Service |
a2ae7a |
{ "mount"
|
|
Packit Service |
a2ae7a |
{ "1" = "/"
|
|
Packit Service |
a2ae7a |
{ "opt" = "ro" }
|
|
Packit Service |
a2ae7a |
{ "location"
|
|
Packit Service |
a2ae7a |
{ "1"
|
|
Packit Service |
a2ae7a |
{ "host" = "myserver.me.org" }
|
|
Packit Service |
a2ae7a |
{ "path" = "/" } } } }
|
|
Packit Service |
a2ae7a |
{ "2" = "/usr"
|
|
Packit Service |
a2ae7a |
{ "location"
|
|
Packit Service |
a2ae7a |
{ "1"
|
|
Packit Service |
a2ae7a |
{ "host" = "myserver.me.org" }
|
|
Packit Service |
a2ae7a |
{ "path" = "/usr" } } } } } }
|
|
Packit Service |
a2ae7a |
{ "10" = "server"
|
|
Packit Service |
a2ae7a |
{ "opt" = "rw" }
|
|
Packit Service |
a2ae7a |
{ "opt" = "hard" }
|
|
Packit Service |
a2ae7a |
{ "opt" = "intr" }
|
|
Packit Service |
a2ae7a |
{ "mount"
|
|
Packit Service |
a2ae7a |
{ "1" = "/"
|
|
Packit Service |
a2ae7a |
{ "opt" = "ro" }
|
|
Packit Service |
a2ae7a |
{ "location"
|
|
Packit Service |
a2ae7a |
{ "1"
|
|
Packit Service |
a2ae7a |
{ "host" = "myserver.me.org" }
|
|
Packit Service |
a2ae7a |
{ "path" = "/" } } } }
|
|
Packit Service |
a2ae7a |
{ "2" = "/usr"
|
|
Packit Service |
a2ae7a |
{ "location"
|
|
Packit Service |
a2ae7a |
{ "1"
|
|
Packit Service |
a2ae7a |
{ "host" = "myserver.me.org" }
|
|
Packit Service |
a2ae7a |
{ "path" = "/usr" } } } }
|
|
Packit Service |
a2ae7a |
{ "3" = "/home"
|
|
Packit Service |
a2ae7a |
{ "location"
|
|
Packit Service |
a2ae7a |
{ "1"
|
|
Packit Service |
a2ae7a |
{ "host" = "myserver.me.org" }
|
|
Packit Service |
a2ae7a |
{ "path" = "/home" } } } } } }
|
|
Packit Service |
a2ae7a |
{ }
|
|
Packit Service |
a2ae7a |
{ "11" = "server"
|
|
Packit Service |
a2ae7a |
{ "opt" = "rw" }
|
|
Packit Service |
a2ae7a |
{ "opt" = "hard" }
|
|
Packit Service |
a2ae7a |
{ "opt" = "intr" }
|
|
Packit Service |
a2ae7a |
{ "mount"
|
|
Packit Service |
a2ae7a |
{ "1" = "/"
|
|
Packit Service |
a2ae7a |
{ "opt" = "ro" }
|
|
Packit Service |
a2ae7a |
{ "location"
|
|
Packit Service |
a2ae7a |
{ "1"
|
|
Packit Service |
a2ae7a |
{ "host" = "my-with-dash-server.me.org" }
|
|
Packit Service |
a2ae7a |
{ "path" = "/" } } } } } }
|
|
Packit Service |
a2ae7a |
{ }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "included maps" }
|
|
Packit Service |
a2ae7a |
{ "12" = "+"
|
|
Packit Service |
a2ae7a |
{ "map" = "auto_home" } }
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(* Local Variables: *)
|
|
Packit Service |
a2ae7a |
(* mode: caml *)
|
|
Packit Service |
a2ae7a |
(* End: *)
|