diff options
author | Karel Zak | 2018-12-10 11:39:08 +0100 |
---|---|---|
committer | Karel Zak | 2018-12-10 11:39:08 +0100 |
commit | 1dae161c839ead8a642b74f432e0f82bb5f5fdd2 (patch) | |
tree | a6fd41e8f992e106cdf94f34c2f4bf0c7905a420 /libmount/src/utils.c | |
parent | lsblk: add --merge (diff) | |
download | kernel-qcow2-util-linux-1dae161c839ead8a642b74f432e0f82bb5f5fdd2.tar.gz kernel-qcow2-util-linux-1dae161c839ead8a642b74f432e0f82bb5f5fdd2.tar.xz kernel-qcow2-util-linux-1dae161c839ead8a642b74f432e0f82bb5f5fdd2.zip |
libmount: export mnt_guess_system_root() by API
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/utils.c')
-rw-r--r-- | libmount/src/utils.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libmount/src/utils.c b/libmount/src/utils.c index 034d3436f..4f4d10bf9 100644 --- a/libmount/src/utils.c +++ b/libmount/src/utils.c @@ -1037,7 +1037,12 @@ char *mnt_get_kernel_cmdline_option(const char *name) return res; } -/* +/** + * mnt_guess_system_root: + * @devno: device number or zero + * @cache: paths cache or NULL + * @path: returns allocated path + * * Converts @devno to the real device name if devno major number is greater * than zero, otherwise use root= kernel cmdline option to get device name. * |