diff options
author | Jindrich Novy <jnovy@redhat.com> | 2008-06-10 14:42:50 +0200 |
---|---|---|
committer | Jindrich Novy <jnovy@redhat.com> | 2008-06-10 14:42:50 +0200 |
commit | ac7f7121eba87fa2717e82d5b27ef335e3486517 (patch) | |
tree | 274a890cb975cad66c43949c40caf4169f67b3b0 /lib | |
parent | 96d9edabb3c97d14438cb7c705caf0b04c72eac7 (diff) | |
download | rpm-ac7f7121eba87fa2717e82d5b27ef335e3486517.tar.gz rpm-ac7f7121eba87fa2717e82d5b27ef335e3486517.tar.bz2 rpm-ac7f7121eba87fa2717e82d5b27ef335e3486517.zip |
rpmtsUpdateDSI now uses rpm_loff_t for fileSize
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rpmts.c | 10 | ||||
-rw-r--r-- | lib/rpmts.h | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/rpmts.c b/lib/rpmts.c index d1dd0b6e1..c38674bdc 100644 --- a/lib/rpmts.c +++ b/lib/rpmts.c @@ -1199,20 +1199,20 @@ int rpmtsInitDSI(const rpmts ts) /* XXX assigning negative value to unsigned type */ dsi->iavail = !(sfb.f_ffree == 0 && sfb.f_files == 0) ? sfb.f_ffree : -1; - rpmlog(RPMLOG_DEBUG, "%5d 0x%08x %8u %12ld %12ld %s\n", - i, (unsigned) dsi->dev, (unsigned) dsi->bsize, - (signed long) dsi->bavail, (signed long) dsi->iavail, + rpmlog(RPMLOG_DEBUG, "%5d 0x%08x %8lld %12lld %12lld %s\n", + i, (unsigned) dsi->dev, dsi->bsize, + dsi->bavail, dsi->iavail, ts->filesystems[i]); } return rc; } void rpmtsUpdateDSI(const rpmts ts, dev_t dev, - rpm_off_t fileSize, rpm_off_t prevSize, rpm_off_t fixupSize, + rpm_loff_t fileSize, rpm_loff_t prevSize, rpm_loff_t fixupSize, rpmFileAction action) { rpmDiskSpaceInfo dsi; - uint32_t bneeded; + int64_t bneeded; dsi = ts->dsi; if (dsi) { diff --git a/lib/rpmts.h b/lib/rpmts.h index e95c96cb9..5a5ed910e 100644 --- a/lib/rpmts.h +++ b/lib/rpmts.h @@ -567,13 +567,13 @@ int rpmtsInitDSI(const rpmts ts); * Update disk space info for a file. * @param ts transaction set * @param dev mount point device - * @param fileSize file size - * @param prevSize previous file size (if upgrading) - * @param fixupSize size difference (if + * @param fileLSize long (64bit) file size + * @param prevSize previous long file size (if upgrading) + * @param fixupSize long size difference * @param action file disposition */ void rpmtsUpdateDSI(const rpmts ts, dev_t dev, - rpm_off_t fileSize, rpm_off_t prevSize, rpm_off_t fixupSize, + rpm_loff_t fileSize, rpm_loff_t prevSize, rpm_loff_t fixupSize, rpmFileAction action); /** \ingroup rpmts |