Bug 428437 - Add GFS2 recognition and reporting to "file" command
Summary: Add GFS2 recognition and reporting to "file" command
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: file
Version: 5.2
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Tomas Smetana
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-01-11 15:23 UTC by Scott Crenshaw
Modified: 2020-04-06 09:56 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-20 22:02:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
example gfs2 filesystem (20.38 KB, application/x-bzip)
2008-08-06 14:49 UTC, Petr Šplíchal
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0208 0 normal SHIPPED_LIVE file bug fix and enhancement update 2009-01-20 16:06:14 UTC

Description Rob Kenna 2008-01-11 15:23:07 UTC
Add equivalent reporting to file command as found with ext and other file
systems.  Like

[root@localhost ~]# file -s /dev/hda1
/dev/hda1: Linux rev 1.0 ext3 filesystem data (needs journal recovery)

Comment 1 Eric Sandeen 2008-01-11 16:17:28 UTC
Here's a start :)

# GFS2
0x10000         belong          0x01161970      GFS2 Filesystem
>0x10024        belong          x               (blocksize %d,
>0x10060        string          >\0             lockproto %s)

[root@bear-05 ~]# file -s -m ./magic /dev/sdb3
/dev/sdb3: GFS2 Filesystem (blocksize 4096, lockproto lock_nolock)


Comment 2 Tomas Smetana 2008-01-14 07:29:36 UTC
OK.  I like bugs like this one. :)

Comment 4 Eric Sandeen 2008-01-14 15:49:27 UTC
FWIW, adding the other text string, locktable, might be good too.  I'm sure the
GFS2 guys can let you know which pieces of information are most useful.

(.... and maybe a good time to add GFS recognition too?  (in addition to GFS2))

Or, ignore the scope creep.  Up to you ;)

Comment 6 Steve Whitehouse 2008-06-02 10:27:53 UTC
Tomas, is there any reason why this cannot be resolved now that 5.3 is open?


Comment 8 Steve Whitehouse 2008-06-02 11:03:02 UTC
Rob, Kevin: please can you set the requested flags on this bug?

Comment 10 Eric Sandeen 2008-06-02 14:47:07 UTC
We're updating file to recognize ext4 as well, so good to batch these up for 5.3.

Has this been fixed for "file" in upstream or fedora yet?  No downstream-only
fixes please... :)  I assume Tomas will send it upstream, I guess.

Comment 13 RHEL Program Management 2008-06-04 22:47:04 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 17 Steve Whitehouse 2008-07-16 14:34:28 UTC
Tomas, what is the current status of this? Can we resolve this one now?


Comment 19 Petr Šplíchal 2008-08-06 14:49:01 UTC
Created attachment 313581 [details]
example gfs2 filesystem

following commands were used to create this small sample:

   dd if=/dev/zero of=gfs2filesystem bs=1024 count=10000
   mkfs.gfs2 -O -J 8 -r 32 -p lock_nolock gfs2filesystem

gfs2-utils package necessary

Comment 22 errata-xmlrpc 2009-01-20 22:02:53 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-2009-0208.html


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