ZTS: Refactor is_shared, fix impl on FreeBSD

FreeBSD doesn't have a `share` command.  It does have showmount.

Split the separate platform impls out of is_shared_impl.
Dispatch to the correct platform impl function from is_shared.
Eliminate the use of is_shared_impl from tests.  is_shared works.

Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #10037
This commit is contained in:
Ryan Moeller
2020-02-21 18:59:20 -05:00
committed by GitHub
parent f5f438194d
commit b7dbbf6aa7
3 changed files with 29 additions and 17 deletions
+1
View File
@@ -127,6 +127,7 @@ export SYSTEM_FILES_FREEBSD='chflags
rmextattr
setextattr
sha256
showmount
swapctl
sysctl
uncompress'