Bug 60309
Summary: | rpm -V doesn't check number of hard links | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Han Holl <han.holl> | ||||
Component: | rpm | Assignee: | Jeff Johnson <jbj> | ||||
Status: | CLOSED DEFERRED | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 7.2 | Keywords: | FutureFeature | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Enhancement | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2002-03-11 10:14:02 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Han Holl
2002-02-25 11:40:10 UTC
An rpm header does not carry the number of hard links as an explicit tag value. That means nlinks has to be computed. Since both the build side and the install side of rpm permit "partial hard link sets" (i.e. only some of the hard links are actually installed), this becomes a large and intensive calculation. Not worth the effort at the moment. Created attachment 48093 [details]
Script to locate broken hardlinks
Sounds reasonable. But how about a script like the one I've attached that will locate files that _ought_ to be hardlinks according to the RPM database ? Maybe sich a script could be linked to with something like rpm --check-hardlinks ? I still feel that broken hardlinks can cost you a lot of diskspace, and the may potentially mess up upgrades. Cheers, Han Holl The script looks OK, but has little to do with rpm package management IMHO. You can add to the rpm command line if you wish, see /usr/lib/rpm/rpmpopt-X.Y.Z for numerous examples. Basically you need to put your script in /usr/lib/rpm/check-hardlinks and add to /etc/popt a line like rpm exec --check-hardlinks check-hardlinks to be invoked as rpm --check-hardlinks FWIW, packages managed by rpm do not have broken hard links. Also, since there are numerous issues with "partial hard link" sets and the management thereof, so I'd rather not add the script to rpm's default configuration at this time. |