extern int mnt_optlist_is_bind(struct libmnt_optlist *ls);
extern int mnt_optlist_is_move(struct libmnt_optlist *ls);
extern int mnt_optlist_is_rdonly(struct libmnt_optlist *ls);
+extern int mnt_optlist_is_silent(struct libmnt_optlist *ls);
extern int mnt_optlist_merge_opts(struct libmnt_optlist *ls);
is_remount : 1,
is_bind : 1,
is_rdonly : 1,
- is_move : 1;
+ is_move : 1,
+ is_silent : 1;
};
struct libmnt_optlist *mnt_new_optlist(void)
ls->is_rdonly = 0;
else if (opt->ent->id == MS_MOVE)
ls->is_move = 0;
+ else if (opt->ent->id == MS_SILENT)
+ ls->is_silent = 0;
}
optlist_cleanup_cache(ls, opt->map);
else
list_add_tail(&opt->opts, &ls->opts);
+ /* shortcuts */
if (map && ent && map == ls->linux_map) {
if (ent->id & MS_PROPAGATION)
ls->propagation |= ent->id;
ls->is_rdonly = 1;
else if (opt->ent->id == MS_MOVE)
ls->is_move = 1;
+ else if (opt->ent->id == MS_SILENT)
+ ls->is_silent = 1;
}
if (ent && map) {
return ls && ls->is_rdonly;
}
+int mnt_optlist_is_silent(struct libmnt_optlist *ls)
+{
+ return ls && ls->is_silent;
+}
+
int mnt_opt_has_value(struct libmnt_opt *opt)
{