summaryrefslogtreecommitdiffstats
path: root/libmount/src/mountP.h
diff options
context:
space:
mode:
authorKarel Zak2013-11-04 12:45:33 +0100
committerKarel Zak2013-11-04 14:24:41 +0100
commit7e0c06194f5e65eb2a9ae38515d78f4ef301c809 (patch)
tree9016b997f030a5f288ed7a5b48b399c5e80624ef /libmount/src/mountP.h
parentlibmount: allow to use -s (sloppy) for all external helpers (diff)
downloadkernel-qcow2-util-linux-7e0c06194f5e65eb2a9ae38515d78f4ef301c809.tar.gz
kernel-qcow2-util-linux-7e0c06194f5e65eb2a9ae38515d78f4ef301c809.tar.xz
kernel-qcow2-util-linux-7e0c06194f5e65eb2a9ae38515d78f4ef301c809.zip
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 <kzak@redhat.com>
Diffstat (limited to 'libmount/src/mountP.h')
-rw-r--r--libmount/src/mountP.h2
1 files changed, 2 insertions, 0 deletions
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 */