]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: save current FS setting as template
authorKarel Zak <kzak@redhat.com>
Thu, 31 Oct 2019 09:31:53 +0000 (10:31 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 31 Oct 2019 11:25:08 +0000 (12:25 +0100)
commite83c09d49e52eadf1715e682c547b0ff9744983e
treed632dce7f99b4b9d25b5f8c0871f7942d7f67c4d
parent7cbde881854367173d8c493b1a4ac9c2d5cdb632
libmount: save current FS setting as template

This commit adds new functions to save and reuse the current FS
setting (mount options from command line, etc) after context reset.
It's usable for example in "mount --all" when we use the same context
for more times for more mount operations.

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context.c
libmount/src/mountP.h