summaryrefslogtreecommitdiff
path: root/lib/rpmts.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rpmts.c')
-rw-r--r--lib/rpmts.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/rpmts.c b/lib/rpmts.c
index 0ea182914..b39e0e400 100644
--- a/lib/rpmts.c
+++ b/lib/rpmts.c
@@ -920,14 +920,16 @@ int rpmtsInitDSI(const rpmts ts)
if (rpmtsFilterFlags(ts) & RPMPROB_FILTER_DISKSPACE)
return 0;
+ rpmMessage(RPMMESS_DEBUG, _("mounted filesystems:\n"));
+ rpmMessage(RPMMESS_DEBUG,
+ _(" i dev bsize bavail iavail mount point\n"));
+
rc = rpmGetFilesystemList(&ts->filesystems, &ts->filesystemCount);
if (rc || ts->filesystems == NULL || ts->filesystemCount <= 0)
return rc;
/* Get available space on mounted file systems. */
- rpmMessage(RPMMESS_DEBUG, _("getting list of mounted filesystems\n"));
-
ts->dsi = _free(ts->dsi);
ts->dsi = xcalloc((ts->filesystemCount + 1), sizeof(*ts->dsi));
@@ -976,6 +978,10 @@ int rpmtsInitDSI(const rpmts ts)
/* XXX Avoid FAT and other file systems that have not inodes. */
dsi->iavail = !(sfb.f_ffree == 0 && sfb.f_files == 0)
? sfb.f_ffree : -1;
+ rpmMessage(RPMMESS_DEBUG, _("%5d 0x%04x %5u %12ld %12ld %s\n"),
+ i, (unsigned) dsi->dev, (unsigned) dsi->bsize,
+ (signed long) dsi->bavail, (signed long) dsi->iavail,
+ ts->filesystems[i]);
}
return rc;
}