mnt_unref_table(cxt->utab);
free(cxt->helper);
- free(cxt->orig_user);
cxt->fs = NULL;
cxt->mountinfo = NULL;
cxt->utab = NULL;
cxt->helper = NULL;
- cxt->orig_user = NULL;
- cxt->mountflags = 0;
- cxt->user_mountflags = 0;
cxt->mountdata = NULL;
cxt->flags = MNT_FL_DEFAULT;
cxt->noautofs = 1;
goto failed;
if (strdup_between_structs(n, o, helper))
goto failed;
- if (strdup_between_structs(n, o, orig_user))
- goto failed;
-
- n->mountflags = o->mountflags;
- n->mountdata = o->mountdata;
n->map_linux = o->map_linux;
n->map_userspace = o->map_userspace;
int optsmode; /* fstab optstr mode MNT_OPTSMODE_{AUTO,FORCE,IGNORE} */
- unsigned long mountflags; /* final mount(2) flags */
const void *mountdata; /* final mount(2) data, string or binary data */
- unsigned long user_mountflags; /* MNT_MS_* (loop=, user=, ...) */
-
struct libmnt_cache *cache; /* paths cache */
struct libmnt_lock *lock; /* utab lock */
struct libmnt_update *update; /* utab update */
int helper_status; /* helper wait(2) status */
int helper_exec_status; /* 1: not called yet, 0: success, <0: -errno */
- char *orig_user; /* original (non-fixed) user= option */
-
pid_t *children; /* "mount -a --fork" PIDs */
int nchildren; /* number of children */
pid_t pid; /* 0=parent; PID=child */