From 7e0c06194f5e65eb2a9ae38515d78f4ef301c809 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 4 Nov 2013 12:45:33 +0100 Subject: libmount: update utab after successful extern helper mount This patch allows to maintain private utab libmount file also for external mount/umount helpers that are not linked with libmount. The libmount check if utab has been updated after successful extern helper execution (status=0). If not then the file is updated. This patch affects only 'user' fstab mount option. So, for example with suid mount.cifs you can use: //server/foo /mnt cifs username=foo,noauto,user Signed-off-by: Karel Zak --- libmount/src/mountP.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libmount/src/mountP.h') diff --git a/libmount/src/mountP.h b/libmount/src/mountP.h index 9362c0042..adc245af4 100644 --- a/libmount/src/mountP.h +++ b/libmount/src/mountP.h @@ -460,5 +460,7 @@ extern int mnt_context_set_tabfilter(struct libmnt_context *cxt, /* tab_update.c */ extern int mnt_update_set_filename(struct libmnt_update *upd, const char *filename, int userspace_only); +extern int mnt_update_already_done(struct libmnt_update *upd, + struct libmnt_lock *lc); #endif /* _LIBMOUNT_PRIVATE_H */ -- cgit v1.2.3-55-g7522