From: Turbo Fredriksson Date: Mon, 13 Feb 2012 09:27:01 +0000 (+0100) Subject: Add 'fsid' mount option to allowed options. X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=commitdiff_plain;h=d2e032ca9cd62fd0e80cdce30c6d1c40421bf754;p=zfs.git Add 'fsid' mount option to allowed options. Resolves nfs-utils-1.0.x compatibility issue which requires that the fsid be set in the export options. exportfs: Warning: /tank/dir requires fsid= for NFS export Signed-off-by: Brian Behlendorf Closes #570 --- diff --git a/lib/libshare/nfs.c b/lib/libshare/nfs.c index 22e306d..56725d2 100644 --- a/lib/libshare/nfs.c +++ b/lib/libshare/nfs.c @@ -360,7 +360,7 @@ get_linux_shareopts_cb(const char *key, const char *value, void *cookie) strcmp(key, "root_squash") != 0 && strcmp(key, "no_root_squash") != 0 && strcmp(key, "all_squash") != 0 && - strcmp(key, "no_all_squash") != 0 && + strcmp(key, "no_all_squash") != 0 && strcmp(key, "fsid") != 0 && strcmp(key, "anonuid") != 0 && strcmp(key, "anongid") != 0) { return SA_SYNTAX_ERR; }