Bug 563909 - [feature] add garbage collection routine to blkid
Summary: [feature] add garbage collection routine to blkid
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: e2fsprogs
Version: 5.6
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Eric Sandeen
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-11 15:11 UTC by Adam Stokes
Modified: 2012-06-14 12:51 UTC (History)
3 users (show)

Fixed In Version: e2fsprogs-1.39-28.el5
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-21 09:07:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1080 0 normal SHIPPED_LIVE e2fsprogs bug fix and enhancement update 2011-07-21 09:04:54 UTC

Description Adam Stokes 2010-02-11 15:11:04 UTC
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

Comment 2 RHEL Program Management 2010-08-09 19:16:08 UTC
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.

Comment 3 Dave Wysochanski 2011-01-27 22:13:16 UTC
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>

Comment 4 Eric Sandeen 2011-02-01 20:50:42 UTC
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>

Comment 5 Eric Sandeen 2011-02-01 22:10:41 UTC
Built & tagged in e2fsprogs-1.39-28.el5

Comment 8 errata-xmlrpc 2011-07-21 09:07:40 UTC
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

Comment 9 errata-xmlrpc 2011-07-21 12:38:23 UTC
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


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