]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: convert directory parsing to use libxfs structure
authorDave Chinner <dchinner@redhat.com>
Fri, 7 Jun 2013 00:25:55 +0000 (10:25 +1000)
committerBen Myers <bpm@sgi.com>
Tue, 6 Aug 2013 20:36:39 +0000 (15:36 -0500)
commiteb0cb950ebd1859b74a63b04d74e09872559fc2d
treec6db19883edce481e810d87ed41b77eeaa4255ce
parent5eb1ac9088a6e7fca7e10d2d3c0bbabbdc88adc4
xfs_db: convert directory parsing to use libxfs structure

xfs_db rolls it's own "opaque" directory types for the different
block formats. All it cares about is where the headers end and the
data starts, and none of the other details in the structures. Rather
than duplicate this for the dir3 format, we already have perfectly
good headers and abstraction functions for finding this information
in libxfs.  Using these means that the dir2 code used for printing
fields, metadump and check need to be modified to use libxfs
definitions.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
db/check.c
db/dir2.c
db/dir2.h
db/dir2sf.c
db/metadump.c