Add zfs_open()/zfs_close()
[zfs.git] / cmd / zfs / zfs_main.c
index d27fcbf..f21c36b 100644 (file)
@@ -3875,7 +3875,9 @@ static const option_map_t option_map[] = {
 #endif
        /* Valid options not found in mount(8) */
        { MNTOPT_BIND,          MS_BIND         },
+#ifdef MS_REC
        { MNTOPT_RBIND,         MS_BIND|MS_REC  },
+#endif
        { MNTOPT_COMMENT,       MS_COMMENT      },
        { MNTOPT_BOOTWAIT,      MS_COMMENT      },
        { MNTOPT_NOBOOTWAIT,    MS_COMMENT      },
@@ -3900,7 +3902,7 @@ parse_option(char *mntopt, unsigned long *mntflags, int sloppy)
 {
        const option_map_t *opt;
        char *ptr, *name, *value = NULL;
-       int rc;
+       int rc = 0;
 
        name = strdup(mntopt);
        if (name == NULL)