]> granicus.if.org Git - zfs/commit
Add canonical mount options zfs-mount-generator
authorAntonio Russo <antonio.e.russo@gmail.com>
Fri, 11 May 2018 19:44:14 +0000 (15:44 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 11 May 2018 19:44:14 +0000 (12:44 -0700)
commit68fded814692c6a7fa7ca1f584a34a92aaa279af
treef0201a8caaf0050745b92761f0b65eaa699296c3
parent29badadd4e3af86975bcaa23acca0e939f954af2
Add canonical mount options zfs-mount-generator

lib/libzfs/libzfs_mount.c:zfs_add_options provides the canonical
mount options used by a `zfs mount` command. Because we cannot call
`zfs mount` directly from a systemd.mount unit, we mirror that logic
in zfs-mount-generator.

The zed script is updated to cache these properties as well.

Include a mini-tutorial in the manual page, properly substitute
configuration paths in zfs-mount-generator.8.in, and standardize the
Makefile.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Richard Laager <rlaager@wiktel.com>
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes #7453
cmd/zed/zed.d/history_event-zfs-list-cacher.sh.in
etc/systemd/system-generators/zfs-mount-generator.in
man/man8/Makefile.am
man/man8/zfs-mount-generator.8.in [moved from man/man8/zfs-mount-generator.8 with 61% similarity]