diff options
author | Brian Behlendorf <[email protected]> | 2017-10-19 10:06:55 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2017-10-19 10:06:55 -0700 |
commit | bbf1ad67cd0d6f3bc1e22a8a0c7448c15409d007 (patch) | |
tree | ef5884b1fc85f6355f0bee4d089321cdcf929e78 /man/man8/zpool.8 | |
parent | 35df0bb5565c81ba52de430108b37eced9de0606 (diff) |
Remove vn_rename and vn_remove dependency
The only place vn_rename and vn_remove are used is when writing
out an updated pool configuration file. By truncating the file
instead of renaming and removing it we can avoid having to implement
these interfaces entirely. Functionally an empty cache file is
treated the same as a missing cache file. This is particularly
advantageous because the Linux kernel has never provided a way
to reliably implement vn_rename and vn_remove.
The cachefile_004_pos.ksh test case was updated to understand
that an empty cache file is the same as a missing one.
The zfs-import-* systemd service files were not updated to use
ConditionFileNotEmpty in place of ConditionPathExists. This
means that after exporting all pools and rebooting new pools
will not the scanned for on the next boot. This small change
should not impact normal usage since pools are not exported
as part of a normal shutdown.
Documentation was updated accordingly.
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Arkadiusz BubaĆa <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes zfsonlinux/spl#648
Closes #6753
Diffstat (limited to 'man/man8/zpool.8')
-rw-r--r-- | man/man8/zpool.8 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man/man8/zpool.8 b/man/man8/zpool.8 index 85a0cc5f0..54ba68698 100644 --- a/man/man8/zpool.8 +++ b/man/man8/zpool.8 @@ -654,7 +654,7 @@ Because the kernel destroys and recreates this file when pools are added and removed, care should be taken when attempting to access this file. When the last pool using a .Sy cachefile -is exported or destroyed, the file is removed. +is exported or destroyed, the file will be empty. .It Sy comment Ns = Ns Ar text A text string consisting of printable ASCII characters that will be stored such that it is available even if the pool becomes faulted. |