aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libshare/os/linux/nfs.c
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-02-28 15:46:25 +0100
committerBrian Behlendorf <[email protected]>2022-05-12 09:26:38 -0700
commit471e9a108e51e92ef645223efcde59c8ab1b9db7 (patch)
tree1cb72ef46f10a08fe1eca1451f87031103cf4645 /lib/libshare/os/linux/nfs.c
parent21d976a62119d3442a0b83693b96f74ac6d0ff5b (diff)
Publish libshare protocols, use enum-based API
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #13165
Diffstat (limited to 'lib/libshare/os/linux/nfs.c')
-rw-r--r--lib/libshare/os/linux/nfs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libshare/os/linux/nfs.c b/lib/libshare/os/linux/nfs.c
index f8a34924c..09c7395c6 100644
--- a/lib/libshare/os/linux/nfs.c
+++ b/lib/libshare/os/linux/nfs.c
@@ -481,9 +481,7 @@ nfs_commit_shares(void)
return (libzfs_run_process(argv[0], argv, 0));
}
-sa_fstype_t libshare_nfs_type = {
- .protocol = "nfs",
-
+const sa_fstype_t libshare_nfs_type = {
.enable_share = nfs_enable_share,
.disable_share = nfs_disable_share,
.is_shared = nfs_is_shared,