{ NULL, 0, 0, 0 }
};
-static int opt_nofail = 0;
-
+static int opt_nofail;
static int invuser_flags;
static const char *opt_loopdev, *opt_vfstype, *opt_offset, *opt_sizelimit,
*(m->valptr) = NULL;
}
+static void
+clear_flags_opts(void) {
+ invuser_flags = 0;
+ opt_nofail = 0;
+}
+
static int
parse_string_opt(char *s) {
struct string_opt_map *m;
*extra_opts = append_opt(*extra_opts, opt, NULL);
}
+
/* Take -o options list and compute 4th and 5th args to mount(2). flags
gets the standard options (indicated by bits) and extra_opts all the rest */
static void
*extra_opts = NULL;
clear_string_opts();
+ clear_flags_opts();
if (options != NULL) {
char *opts = xstrdup(options);