Bug 1679 - rpm looks at mounted FSs.
Summary: rpm looks at mounted FSs.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: rpm
Version: 1.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-03-22 21:44 UTC by sds
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 1999-05-04 16:00:43 UTC
Embargoed:


Attachments (Terms of Use)

Description sds 1999-03-22 21:44:59 UTC
$ rpm -U package-1.0-1.i386.rpm
failed to stat /mnt/h: Input/output error
Segmentation fault
$

Yes, /mnt/h is mentioned in /etc/mtab and it is supposed
to carry smb mount FS.  Unfortunately, something is wrong
there and the mounting breaks every now and then - so I have
to remount.  What I don't understand is why this should
matter to RPM.

Comment 1 Bill Nottingham 1999-03-22 22:03:59 UTC
what version of rpm?

I believe it's looking at mounted filesystems to attempt to
determine if there's enough space for the package to fit.

Comment 2 sds 1999-03-22 22:08:59 UTC
$ rpm -q rpm
rpm-2.92-13

if all the files in the package are destined to /etc and /usr, rpm has
no business looking at /mnt

Comment 3 Jeff Johnson 1999-03-22 22:53:59 UTC
Not true. There is no way for rpm to know whether symlinks point
to other mounted file systems even though all paths in the package
start with /etc or /usr. For efficiency, all mounted file systems
are processed at the same time to ascertain available disk space.

Comment 4 Jay Freeman 1999-04-24 16:23:59 UTC
I hardly would think that the efficiency gained during an
installation (a reletively one time process) is worth making rpm
unusable if a mount point goes bad (maybe remote server goes down,
etc.), especially since checking this with a slow remote server could
in fact slow down the rpm process much longer than would be had with
a better check.  Efficiency here should be "least checks to remote
locations" instead of "least number of seconds under ideal
conditions".  Might be there is something I am missing though (like
the symlink check would take a LONG period of time to complete, long
enough to make it frustrating to perform).

Comment 5 Jeff Johnson 1999-05-01 17:26:59 UTC
The available disk space of all mounted files systems is acquired
before looping over all files to be installed/uninstalled and
calculating the disk space needed/released by each package. The
efficiency comes from the implementation in rpm (which is used
every time that a package is installed or removed), not from
the install process. In fact, rpm queries the mounted file systems
only once (this was the original problem). Attempting to deal with
every possible cicumstance (e.g. mount point going bas during an
install) is not worth the rpm coding effort required.


Note You need to log in before you can comment on or make changes to this bug.