diff options
author | Karel Zak | 2019-01-16 15:00:07 +0100 |
---|---|---|
committer | Karel Zak | 2019-01-16 15:00:07 +0100 |
commit | 189a1bf3b314a8fc48c29ea1e0287d5cc71021a0 (patch) | |
tree | 684d7415e61e2769f2053cc35801f0c8256d8396 /libmount/src/libmount.h.in | |
parent | fsck.cramfs: fix utimes() usage (diff) | |
download | kernel-qcow2-util-linux-189a1bf3b314a8fc48c29ea1e0287d5cc71021a0.tar.gz kernel-qcow2-util-linux-189a1bf3b314a8fc48c29ea1e0287d5cc71021a0.tar.xz kernel-qcow2-util-linux-189a1bf3b314a8fc48c29ea1e0287d5cc71021a0.zip |
libmount: add support for MS_REMOUNT on --all
This patch add to support for remount-all operation to
libmount and mount(8).
For example:
mount --all -o remount,ro -t vfat
to remount read-only all VFAT filesystems.
Addresses: https://github.com/karelzak/util-linux/issues/589
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/libmount.h.in')
-rw-r--r-- | libmount/src/libmount.h.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libmount/src/libmount.h.in b/libmount/src/libmount.h.in index 1ce9995ec..a14bb6f3d 100644 --- a/libmount/src/libmount.h.in +++ b/libmount/src/libmount.h.in @@ -849,6 +849,12 @@ extern int mnt_context_next_mount(struct libmnt_context *cxt, struct libmnt_fs **fs, int *mntrc, int *ignored); +extern int mnt_context_next_remount(struct libmnt_context *cxt, + struct libmnt_iter *itr, + struct libmnt_fs **fs, + int *mntrc, + int *ignored); + extern int mnt_context_prepare_mount(struct libmnt_context *cxt) __ul_attribute__((warn_unused_result)); extern int mnt_context_do_mount(struct libmnt_context *cxt); |