summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/tab_update.c
diff options
context:
space:
mode:
authorKarel Zak2010-12-15 15:06:42 +0100
committerKarel Zak2011-01-03 12:28:47 +0100
commit87a07a4cc8592a937006c5cdb93739b185bdbd7c (patch)
tree01e8588ef6362005ac8ba8de97c7a8124ec5b766 /shlibs/mount/src/tab_update.c
parentfindmnt: use new libmount functions (diff)
downloadkernel-qcow2-util-linux-87a07a4cc8592a937006c5cdb93739b185bdbd7c.tar.gz
kernel-qcow2-util-linux-87a07a4cc8592a937006c5cdb93739b185bdbd7c.tar.xz
kernel-qcow2-util-linux-87a07a4cc8592a937006c5cdb93739b185bdbd7c.zip
libmount: minor fixes
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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/shlibs/mount/src/tab_update.c b/shlibs/mount/src/tab_update.c
index ad7c19d74..e474e514d 100644
--- a/shlibs/mount/src/tab_update.c
+++ b/shlibs/mount/src/tab_update.c
@@ -151,6 +151,10 @@ int mnt_update_set_fs(mnt_update *upd, int mountflags,
DBG(UPDATE, mnt_debug_h(upd,
"reseting FS [fs=0x%p, target=%s, flags=0x%08x]",
fs, target, mountflags));
+ if (fs) {
+ DBG(UPDATE, mnt_debug_h(upd, "FS template:"));
+ DBG(UPDATE, mnt_fs_print_debug(fs, stderr));
+ }
mnt_free_fs(upd->fs);
free(upd->target);
@@ -683,6 +687,7 @@ int mnt_update_tab(mnt_update *upd, mnt_lock *lc)
return 0;
DBG(UPDATE, mnt_debug_h(upd, "%s: update tab", upd->filename));
+ DBG(UPDATE, mnt_fs_print_debug(upd->fs, stderr));
if (!upd->fs && upd->target)
rc = update_remove_entry(upd, lc); /* umount */