diff options
author | Karel Zak | 2011-03-31 21:26:57 +0200 |
---|---|---|
committer | Karel Zak | 2011-03-31 21:26:57 +0200 |
commit | a362ae601a4f047d56fc8487155733309da5a7ec (patch) | |
tree | 43cb2e779a382f7634d936d61dc1edefc06bdb55 /shlibs/mount/src/tab_update.c | |
parent | tests: add dump from PPC64 to lscpu tests (diff) | |
download | kernel-qcow2-util-linux-a362ae601a4f047d56fc8487155733309da5a7ec.tar.gz kernel-qcow2-util-linux-a362ae601a4f047d56fc8487155733309da5a7ec.tar.xz kernel-qcow2-util-linux-a362ae601a4f047d56fc8487155733309da5a7ec.zip |
libmount: support /run/mount rather than /dev/.mount
The /run directory should be preferred on distributions where this
directory exists.
http://thread.gmane.org/gmane.linux.redhat.fedora.devel/146976
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/tab_update.c')
-rw-r--r-- | shlibs/mount/src/tab_update.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shlibs/mount/src/tab_update.c b/shlibs/mount/src/tab_update.c index 71988f8a8..409568f91 100644 --- a/shlibs/mount/src/tab_update.c +++ b/shlibs/mount/src/tab_update.c @@ -13,7 +13,7 @@ * The struct libmnt_update provides abstraction to manage mount options in userspace independently on * system configuration. This low-level API works on system with and without /etc/mtab. On * systems without the regular /etc/mtab file are userspace mount options (e.g. user=) - * stored to the /dev/.mount/utab file. + * stored to the /run/mount/utab file. * * It's recommended to use high-level struct libmnt_context API. */ @@ -107,7 +107,7 @@ int mnt_update_set_filename(struct libmnt_update *upd, const char *filename, if (upd->filename) return 0; - /* detect tab filename -- /etc/mtab or /dev/.mount/utab + /* detect tab filename -- /etc/mtab or /run/mount/utab */ mnt_has_regular_mtab(&path, &rw); if (!rw) { @@ -784,7 +784,7 @@ static int update_modify_options(struct libmnt_update *upd, struct libmnt_lock * * @upd: update * @lc: lock or NULL * - * High-level API to update /etc/mtab (or private /dev/.mount/utab file). + * High-level API to update /etc/mtab (or private /run/mount/utab file). * * The @lc lock is optional and will be created if necessary. Note that * the automatically created lock blocks all signals. |