diff options
author | Karel Zak | 2012-03-02 11:23:34 +0100 |
---|---|---|
committer | Karel Zak | 2012-03-02 11:23:34 +0100 |
commit | 41d6af28c3475987a085dc085c2348e22dc7fbdd (patch) | |
tree | 77991757372ca31fc3a63eacc3d70ab87a174475 /libmount/src/context_mount.c | |
parent | tests: update libmount tests (diff) | |
download | kernel-qcow2-util-linux-41d6af28c3475987a085dc085c2348e22dc7fbdd.tar.gz kernel-qcow2-util-linux-41d6af28c3475987a085dc085c2348e22dc7fbdd.tar.xz kernel-qcow2-util-linux-41d6af28c3475987a085dc085c2348e22dc7fbdd.zip |
libmount: cosmetic changes around "none"
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context_mount.c')
-rw-r--r-- | libmount/src/context_mount.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c index 098243b72..c56ffd4c1 100644 --- a/libmount/src/context_mount.c +++ b/libmount/src/context_mount.c @@ -453,9 +453,12 @@ static int do_mount(struct libmnt_context *cxt, const char *try_type) if (!target) return -EINVAL; - if (!src) + if (!src) { + /* unnecessary, should be already resolved in + * mnt_context_prepare_srcpath(), but for sure... */ + DBG(CXT, mnt_debug_h(cxt, "WARNING: source is NULL -- using \"none\"!")); src = "none"; - + } type = try_type ? : mnt_fs_get_fstype(cxt->fs); if (!(flags & MS_MGC_MSK)) |