diff options
author | Karel Zak | 2014-06-17 15:38:14 +0200 |
---|---|---|
committer | Karel Zak | 2014-06-17 15:38:14 +0200 |
commit | 150e696dacafb2a2583e9c5dae736480b84d6673 (patch) | |
tree | 8890391f877566548b9648ca71cd8e2b4058da42 /libmount/src/mountP.h | |
parent | tests: remove test_wholedisk (diff) | |
download | kernel-qcow2-util-linux-150e696dacafb2a2583e9c5dae736480b84d6673.tar.gz kernel-qcow2-util-linux-150e696dacafb2a2583e9c5dae736480b84d6673.tar.xz kernel-qcow2-util-linux-150e696dacafb2a2583e9c5dae736480b84d6673.zip |
libmount: don't touch mtab when mount -n specified
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1109367
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/mountP.h')
-rw-r--r-- | libmount/src/mountP.h | 5 |
1 files changed, 5 insertions, 0 deletions
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.<type> */ #define MNT_FL_LOOPDEV_READY (1 << 26) /* /dev/loop<N> 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); |