Ticket #175 (closed defect: fixed)

Opened 5 years ago

Last modified 3 years ago

Intermediate disk-space need not accounted for (eg on reinstall)


Reported by: pmatilai Assigned to: RpmTickets Priority: minor Milestone: rpm-4.11.0 Component: rpm Version: RPM Development Keywords: Cc:


Description

When calculating disk-space needs for a transaction, rpm currently doesn't take into account the amount of disk it temporarily needs for unpacking the files before moving into place. For example on package reinstall rpm thinks the transaction will succeed as it doesn't need any more space than the currently installed package, but when space is tight it can easily fail, eg:

# rpm -Uvh /home/pmatilai/rpmbuild/RPMS/noarch/dsneedtest-1.0-1.noarch.rpm
Preparing...                ########################################### [100%]
   1:dsneedtest             ########################################### [100%]
# dd if=/dev/zero of=/boot/fillme
# rpm -Uvh --force dsneedtest-1.0-1.noarch.rpm
Preparing...                ########################################### [100%]
   1:dsneedtest             ########################################### [100%]
error: unpacking of archive failed on file /boot/de.txt;4c5ffe6f: cpio: write
error: dsneedtest-1.0-1.noarch: install failed

Change History

11/14/12 08:58:26 changed by pmatilai

  • status changed from new to closed.
  • resolution set to fixed.

Finally fixed in https://rpm.org/gitweb?p=rpm.git;a=commitdiff;h=85df102165fdbe64978f2019d757d400e7448218

01/29/13 09:32:33 changed by pmatilai

  • milestone set to rpm-4.11.0.