From 150e696dacafb2a2583e9c5dae736480b84d6673 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 17 Jun 2014 15:38:14 +0200 Subject: libmount: don't touch mtab when mount -n specified Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1109367 Signed-off-by: Karel Zak --- libmount/src/mountP.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libmount/src/mountP.h') diff --git a/libmount/src/mountP.h b/libmount/src/mountP.h index d85a078de..f2660e057 100644 --- a/libmount/src/mountP.h +++ b/libmount/src/mountP.h @@ -340,6 +340,7 @@ struct libmnt_context #define MNT_FL_HELPER (1 << 25) /* [u]mount. */ #define MNT_FL_LOOPDEV_READY (1 << 26) /* /dev/loop initialized by the library */ #define MNT_FL_MOUNTOPTS_FIXED (1 << 27) +#define MNT_FL_TABPATHS_CHECKED (1 << 28) /* default flags */ #define MNT_FL_DEFAULT 0 @@ -371,6 +372,10 @@ extern int __mnt_fs_set_fstype_ptr(struct libmnt_fs *fs, char *fstype) __attribute__((nonnull(1))); /* context.c */ +extern int mnt_context_mtab_writable(struct libmnt_context *cxt); +extern int mnt_context_utab_writable(struct libmnt_context *cxt); +extern const char *mnt_context_get_writable_tabpath(struct libmnt_context *cxt); + extern int mnt_context_prepare_srcpath(struct libmnt_context *cxt); extern int mnt_context_prepare_target(struct libmnt_context *cxt); extern int mnt_context_guess_fstype(struct libmnt_context *cxt); -- cgit v1.2.3-55-g7522