static void update_mtab_entry(int flags)
{
	unsigned long fl;
	struct libmnt_lock *lc;

	if (!mtab_update)
		return;

	fl = mnt_update_get_mflags(mtab_update);

	if ((flags & MS_RDONLY) != (fl & MS_RDONLY))
		mnt_update_force_rdonly(mtab_update, flags & MS_RDONLY);

	if (!nomtab) {
		if (mtab_does_not_exist()) {
			if (verbose > 1)
				printf(_("mount: no %s found - creating it..\n"),
				       _PATH_MOUNTED);
			create_mtab ();
		}

		lc = init_libmount_lock( mnt_update_get_filename(mtab_update) );
		mnt_update_table(mtab_update, lc);
		init_libmount_lock(NULL);
	}

	mnt_free_update(mtab_update);
	mtab_update = NULL;
}
static void update_mtab_entry(int flags)
{
	unsigned long fl;
	struct libmnt_lock *lc;

	if (!mtab_update)
		return;

	fl = mnt_update_get_mflags(mtab_update);

	if ((flags & MS_RDONLY) != (fl & MS_RDONLY))
		mnt_update_force_rdonly(mtab_update, flags & MS_RDONLY);

	if (!nomtab) {
		if (mtab_does_not_exist()) {
			if (verbose > 1)
				printf(_("mount: no %s found - creating it..\n"),
				       _PATH_MOUNTED);
			create_mtab ();
		}

		lc = init_libmount_lock( mnt_update_get_filename(mtab_update) );
		mnt_update_table(mtab_update, lc);
		init_libmount_lock(NULL);
	}

	mnt_free_update(mtab_update);
	mtab_update = NULL;
}