Add 'fsid' mount option to allowed options.
authorTurbo Fredriksson <turbo@bayour.com>
Mon, 13 Feb 2012 09:27:01 +0000 (10:27 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 13 Feb 2012 17:43:57 +0000 (09:43 -0800)
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 <behlendorf1@llnl.gov>
Closes #570

lib/libshare/nfs.c

index 22e306d..56725d2 100644 (file)
@@ -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;
        }