Description of problem: Would like to have garbage collection routine added into RHEL5 e2fsprogs. When running blkid we sometimes see stale mounts within the cache. Of course running blkid -c /dev/null gets around this issue I'm a little worried about runtime when blkid is run against a machine with several hundred disks. Thanks, Adam
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
This is hopefully a fairly easy backport of these two patches: commit 7292355283b90f1da3a86713b9f85074da22bb84 Author: Theodore Ts'o <tytso> Date: Fri May 18 00:02:35 2007 -0400 Add new function blkid_gc_cache() New function which performs a garbage collection pass on the /etc/blkid.tab file. Signed-off-by: "Theodore Ts'o" <tytso> commit 46100e3f6e21a5eb8fbb4d843d4c7fee368b31f5 Author: Theodore Ts'o <tytso> Date: Fri May 18 00:16:02 2007 -0400 Add -g option to the blkid program to garbage collect the blkid.tab file Signed-off-by: "Theodore Ts'o" <tytso>
probably also need: commit 772b89d34212e4b36c2025c80304e166bc25a2f3 Author: Eric Sandeen <sandeen> Date: Fri Jun 20 22:32:49 2008 -0500 blkid: use list_for_each_safe in garbage collection We need to use list_for_each_safe in case a device gets removed from the list during garbage collection. Also make the manpage slightly more informative about what the -g garbage collection option does. Addresses-Debian-Bug: #487758, #487783 Signed-off-by: Eric Sandeen <sandeen> Signed-off-by: Theodore Ts'o <tytso>
Built & tagged in e2fsprogs-1.39-28.el5
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-1080.html