diff options
author | Karel Zak | 2011-01-25 00:26:47 +0100 |
---|---|---|
committer | Karel Zak | 2011-01-25 00:26:47 +0100 |
commit | f501724264bec87ecf717b5ab2e0ccafc50039d3 (patch) | |
tree | 53292335e4ad5cc447624a9e89725ba5d5c91e12 /shlibs/mount/src/context_mount.c | |
parent | include: [tt] enlarge output buffer (diff) | |
download | kernel-qcow2-util-linux-f501724264bec87ecf717b5ab2e0ccafc50039d3.tar.gz kernel-qcow2-util-linux-f501724264bec87ecf717b5ab2e0ccafc50039d3.tar.xz kernel-qcow2-util-linux-f501724264bec87ecf717b5ab2e0ccafc50039d3.zip |
libmount: improve status check, minor cleanups
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/context_mount.c')
-rw-r--r-- | shlibs/mount/src/context_mount.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shlibs/mount/src/context_mount.c b/shlibs/mount/src/context_mount.c index 367d13418..0b6c3d864 100644 --- a/shlibs/mount/src/context_mount.c +++ b/shlibs/mount/src/context_mount.c @@ -515,7 +515,7 @@ int mnt_context_prepare_mount(struct libmnt_context *cxt) if (!rc) rc = mnt_context_prepare_srcpath(cxt); if (!rc) - rc = mnt_context_prepare_target(cxt); + rc = mnt_context_prepare_target(cxt); if (!rc) rc = mnt_context_guess_fstype(cxt); if (!rc) @@ -605,7 +605,8 @@ int mnt_mount_context(struct libmnt_context *cxt) * mnt_context_finalize_mount: * @cxt: context * - * Mtab update, etc. Unnecessary for mnt_context_mount(). + * Mtab update, etc. Unnecessary for mnt_context_mount(), but should be called + * after mnt_context_do_mount(). See also mnt_context_set_syscall_status(). * * Returns: negative number on error, 0 on success. */ |