Blame gfs2/man/gfs2_edit.8

Packit 6ef888
.TH gfs2_edit 8
Packit 6ef888
Packit 6ef888
.SH NAME
Packit 6ef888
gfs2_edit - Display, print or edit GFS2 or GFS internal structures.
Packit 6ef888
Packit 6ef888
.SH SYNOPSIS
Packit 6ef888
.B gfs2_edit
Packit 6ef888
[\fIOPTION\fR]... [\fIDEVICE\fR]
Packit 6ef888
Packit 6ef888
.SH DESCRIPTION
Packit 6ef888
The gfs2_edit command is a tool used to examine, edit or
Packit 6ef888
display internal data structures of a GFS2 or GFS file system.
Packit 6ef888
The gfs2_edit command can be run interactively, as described
Packit 6ef888
below in INTERACTIVE MODE.
Packit 6ef888
Packit 6ef888
Caution: Several options of the gfs2_edit command alter the
Packit 6ef888
file system metadata and can cause file system corruption.
Packit 6ef888
These options should be used with great care.
Packit 6ef888
Packit 6ef888
.SH OPTIONS
Packit 6ef888
.TP
Packit 6ef888
\fB-p\fP [\fIstruct\fR | \fIblock\fR] [\fIblocktype\fR] [\fIblockalloc [val]\fR] [\fIblockbits\fR] [\fIblockrg\fR] [\fIfind sb|rg|rb|di|in|lf|jd|lh|ld|ea|ed|lb|13|qc\fR] [\fIfield <field> [val]\fR]
Packit 6ef888
Print a gfs2 data structure in human-readable format to stdout.
Packit 6ef888
You can enter either a block number or a data structure name.  Block numbers
Packit 6ef888
may be specified in hex (e.g., 0x10) or decimal (e.g., 16).
Packit 6ef888
Packit 6ef888
You can specify the following well-known locations with the -p option.
Packit 6ef888
Packit 6ef888
\fIsb\fR, \fIsuperblock\fR - Print the superblock.
Packit 6ef888
Packit 6ef888
\fIroot\fR - Print the root directory.
Packit 6ef888
Packit 6ef888
\fImaster\fR - Print the master system directory.
Packit 6ef888
Packit 6ef888
\fIjindex\fR - Print the journal index system directory.
Packit 6ef888
Packit 6ef888
\fIper_node\fR - Print the per_node system directory.
Packit 6ef888
Packit 6ef888
\fIinum\fR - Print the system inum file.
Packit 6ef888
Packit 6ef888
\fIstatfs\fR - Print the system statfs file.
Packit 6ef888
Packit 6ef888
\fIrindex\fR, \fIrgindex\fR - Print the resource group index system file.
Packit 6ef888
Packit 6ef888
\fIrg X\fR - Print the resource group information for RG X (zero-based).
Packit 6ef888
Packit 6ef888
\fIrgs\fR - Print the resource group information.
Packit 6ef888
Packit 6ef888
\fIquota\fR - Print the contents of the system quota file.
Packit 6ef888
Packit 6ef888
\fIidentify\fR - Identify a data block rather than print the block's contents.
Packit 6ef888
Packit 6ef888
\fIsize\fR - Print the device size information.
Packit 6ef888
Packit 6ef888
\fIjournalX\fR - Print the contents of journal X, where X is a journal
Packit 6ef888
number from 0 to <the number of journals in your file system - 1>.
Packit 6ef888
Only the journal headers and journal descriptors are dumped.  For journal
Packit 6ef888
descriptors, this option prints out every file system block number logged
Packit 6ef888
in that section of the journal.  The actual journaled blocks are not printed.
Packit 6ef888
Packit 6ef888
If you specify a block number rather than a structure name, gfs2_edit will
Packit 6ef888
print out a breakdown of the structure for that block.
Packit 6ef888
For example: \fBgfs2_edit -p sb\fP will print the superblock, but so does
Packit 6ef888
\fBgfs2_edit -p 0x10\fP and \fBgfs2_edit -p 16\fP.
Packit 6ef888
Packit 6ef888
If you specify -p without a block or structure name, gfs2_edit prints the
Packit 6ef888
superblock.
Packit 6ef888
Packit 6ef888
You can specify more than one data structure with a single -p option.
Packit 6ef888
For example, \fBgfs2_edit -p inum statfs /dev/sda1\fP prints the system inum
Packit 6ef888
file and the system statfs file on /dev/sda1.
Packit 6ef888
Packit 6ef888
Optionally, you may specify the keyword \fIblocktype\fR to print out the
Packit 6ef888
gfs2 block type for the specified block.  Valid gfs2 block types are:
Packit 6ef888
0 (Clump), 1 (Superblock), 2 (Resource Group Header), 3 (Resource Group
Packit 6ef888
Bitmap), 4 (Dinode), 5 (Indirect Block), 6 (Leaf), 7 (Journaled data),
Packit 6ef888
8 (Log Header), 9 (Log descriptor), 10 (Extended attribute),
Packit 6ef888
11 (Eattr Data), 12 (Log Buffer), 13 (Invalid), and 14 (Quota Change).
Packit 6ef888
Packit 6ef888
Optionally, you may specify the keyword \fIblockalloc\fR with an
Packit 6ef888
optional value to assign.  If no value is specified, the blockalloc
Packit 6ef888
keyword will print the block allocation type for the specified block.
Packit 6ef888
Valid block allocation types are: 0 (Free block), 1 (Data block),
Packit 6ef888
2 (Unlinked block), and 3 (Metadata block).  If a value from 0 to 3 is
Packit 6ef888
specified, the resource group bitmap will be changed to the new value.
Packit 6ef888
This may be used, for example, to artificially free or allocate a block
Packit 6ef888
in order to test fsck.gfs2's ability to detect and fix the problem.
Packit 6ef888
Packit 6ef888
Optionally, you may specify the keyword \fIblockbits\fR.  This option
Packit 6ef888
will locate and print the block containing the bitmap corresponding to
Packit 6ef888
the specified block.
Packit 6ef888
Packit 6ef888
Optionally, you may specify the keyword \fIblockrg\fR.  This option
Packit 6ef888
will locate and print the block number of the resource group that holds
Packit 6ef888
information about the specified block.
Packit 6ef888
Packit 6ef888
You may also use gfs2_edit to find the next occurrence of a metadata
Packit 6ef888
block of a certain type.  Valid metadata types are: \fInone\fR (unused
Packit 6ef888
metadata clump block), \fIsb\fR (superblock), \fIrg\fR (resource group),
Packit 6ef888
\fIrb\fR (rg bitmap), \fIdi\fR (disk inode aka dinode), \fIin\fR (indirect
Packit 6ef888
block list), \fIlf\fR (directory leaf), \fIjd\fR (journaled data),
Packit 6ef888
\fIlh\fR (journal log header), \fIld\fR (journal log descriptor),
Packit 6ef888
\fIea\fR (extended attribute), \fIed\fR (ea data block), \fIlb\fR (log buffer),
Packit 6ef888
\fI13\fR (unused block type 13), \fIqc\fR (quota change).
Packit 6ef888
The block AFTER the one specified with -p is the starting point for
Packit 6ef888
the search.  For example, if you specify \fBgfs2_edit -p rg 12 find rg
Packit 6ef888
/dev/your/device\fP, it will find the rg that follows rg 12 (normally,
Packit 6ef888
this would be rg 13).  Note, however, that since metadata often appears
Packit 6ef888
in the journals, it could be a copy of a different RG, inside a journal.
Packit 6ef888
Also note that gfs2_edit will only find \fBallocated\fR metadata blocks
Packit 6ef888
unless the type specified is none, sb, rg or rb.  In other words, if you
Packit 6ef888
try to find a disk inode, it will only find an allocated dinode, not a
Packit 6ef888
deallocated one.
Packit 6ef888
Packit 6ef888
Optionally, you may specify the keyword \fIfield\fR followed by a
Packit 6ef888
valid metadata field name.  Right now, only the fields in disk inodes
Packit 6ef888
and resource groups are allowed.  If no value is specified after the
Packit 6ef888
field, the value of the field will be printed to stdout.  If a value
Packit 6ef888
is specified, the field's value will be changed.  This may be used,
Packit 6ef888
for example, to artificially change the di_size field for an inode
Packit 6ef888
in order to test fsck.gfs2's ability to detect and fix the problem.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
\fB-s\fs [\fIstructure\fR | \fIblock\fR]
Packit 6ef888
Specify a starting block for interactive mode.  Any of the well-known
Packit 6ef888
locations found in the -p option may be specified.  If you want to start
Packit 6ef888
on a particular resource group, specify it in quotes, e.g. -s "rg 3"
Packit 6ef888
.TP
Packit 6ef888
\fB-h, -help, -usage\fP
Packit 6ef888
Print help information.
Packit 6ef888
.TP
Packit 6ef888
\fB-c\fP [\fI0\fR | \fI1\fR]
Packit 6ef888
Use alternate color scheme for interactive mode: 0=normal (dark colors on
Packit 6ef888
white background), or 1 (light colors on black background).
Packit 6ef888
.TP
Packit 6ef888
\fB-V\fP
Packit 6ef888
Print program version information only.
Packit 6ef888
.TP
Packit 6ef888
\fB-x\fP
Packit 6ef888
Print in hex mode.
Packit 6ef888
.TP
Packit 6ef888
\fB-z <0-9>\fP
Packit 6ef888
Compress metadata with gzip compression level 1 to 9 (default 9). 0 means no compression at all.
Packit 6ef888
.TP
Packit 6ef888
\fBrg\fP \fI<rg>\fR \fI<device>\fR
Packit 6ef888
Print the contents of Resource Group \fI<rg>\fR on \fI<device>\fR.
Packit 6ef888
Packit 6ef888
\fI<rg>\fR is a number from 0 to X - 1, where X is the number of RGs.
Packit 6ef888
.TP
Packit 6ef888
\fBrgcount\fP \fI<device>\fR
Packit 6ef888
Print the number of Resource Groups in the file system on \fI<device>\fR.
Packit 6ef888
.TP
Packit 6ef888
\fBrgflags\fP \fI<rg>\fR [\fInew_value\fR] \fI<device>\fR
Packit 6ef888
Print and/or modify the rg_flags value of Resource Group \fI<rg>\fR on
Packit 6ef888
\fI<device>\fR.
Packit 6ef888
Packit 6ef888
\fI<rg>\fR is a number from 0 to X - 1, where X is the number of RGs.
Packit 6ef888
If \fInew_value\fR is not specified, the current rg_flags value will be
Packit 6ef888
printed but not modified.  If \fInew_value\fR is specified, the rg_flags
Packit 6ef888
field will be overwritten with the new value.
Packit 6ef888
.TP
Packit 6ef888
\fBprintsavedmeta\fP \fI<filename.gz>\fR
Packit 6ef888
Print off a list of blocks from <filename.gz> that were saved with the savemeta
Packit 6ef888
option.
Packit 6ef888
.TP
Packit 6ef888
\fBsavemeta\fP \fI<device>\fR \fI<filename.gz>\fR
Packit 6ef888
Save off the GFS2 metadata (not user data) for the file system on the
Packit 6ef888
specified device to a file given by <filename>.  You can use this option
Packit 6ef888
to analyze file system problems without revealing sensitive information
Packit 6ef888
that may be contained in the files.  This option works quickly by
Packit 6ef888
using the system bitmap blocks in the resource groups to determine the
Packit 6ef888
location of all the metadata.  If there is corruption
Packit 6ef888
in the bitmaps, resource groups or rindex file, this method may fail and
Packit 6ef888
you may need to use the savemetaslow option.  The destination file is
Packit 6ef888
compressed using gzip unless -z 0 is specified.
Packit 6ef888
.TP
Packit 6ef888
\fBsavemetaslow\fP \fI<device>\fR \fI<filename.gz>\fR
Packit 6ef888
Save off GFS2 metadata, as with the savemeta option, examining every
Packit 6ef888
block in the file system for metadata.  This option is less prone to failure
Packit 6ef888
due to file system corruption than the savemeta option, but it is 
Packit 6ef888
extremely slow.  The destination file is compressed using gzip unless
Packit 6ef888
-z 0 is specified.
Packit 6ef888
.TP
Packit 6ef888
\fBsavergs\fP \fI<device>\fR \fI<filename.gz>\fR
Packit 6ef888
Save off only the GFS2 resource group metadata for the file system on the
Packit 6ef888
specified device to a file given by <filename>.  The destination file is
Packit 6ef888
compressed using gzip unless -z 0 is specified.
Packit 6ef888
.TP
Packit 6ef888
\fBrestoremeta\fP \fI<filename>\fR \fI<dest device>\fR
Packit 6ef888
Take a compressed or uncompressed file created with the savemeta option and
Packit 6ef888
restores its contents on top of the specified destination device.
Packit 6ef888
\fBWARNING\fP: When you use this option, the file system and all data on the
Packit 6ef888
destination device is destroyed.  Since only metadata (but no data) is
Packit 6ef888
restored, every file in the resulting file system is likely to be corrupt.  The
Packit 6ef888
ONLY purpose of this option is to examine and debug file system problems by
Packit 6ef888
restoring and examining the state of the saved metadata.  If the destination
Packit 6ef888
file system is the same size or larger than the source file system where the
Packit 6ef888
metadata was saved, the resulting file system will be the same size as the
Packit 6ef888
source.  If the destination device is smaller than the source file system,
Packit 6ef888
gfs2_edit will restore as much as it can, then quit, leaving you with a file
Packit 6ef888
system that probably will not mount, but from which you might still be able to
Packit 6ef888
figure out what is wrong with the source file system.
Packit 6ef888
Packit 6ef888
.SH INTERACTIVE MODE
Packit 6ef888
If you specify a device on the gfs2_edit command line and you specify
Packit 6ef888
no options other than -c, gfs2_edit will act as an interactive GFS2
Packit 6ef888
file system editor for the file system you specify.  There
Packit 6ef888
are three display modes: hex mode, structure mode and pointers mode.
Packit 6ef888
You use the m key to switch between the modes, as described below.
Packit 6ef888
The modes are as follows:
Packit 6ef888
.TP
Packit 6ef888
Hex mode (default)
Packit 6ef888
Display or edit blocks of the file system in hexadecimal and ascii.
Packit 6ef888
Packit 6ef888
Lines at the top indicate the currently displayed block in both hex and
Packit 6ef888
decimal.  If the block contains a GFS2 data structure, the name of that
Packit 6ef888
structure will appear in the upper right corner of the display.
Packit 6ef888
If the block is a well-known block, such as the superblock or rindex,
Packit 6ef888
there will be a line to indicate what it is.
Packit 6ef888
Packit 6ef888
In hex mode, you can edit blocks by pressing \fB<enter>\fP and entering
Packit 6ef888
hexadecimal digits to replace the highlighted hex digits.  Do NOT precede
Packit 6ef888
the numbers with "0x".  For example, if you want to change the value at
Packit 6ef888
offset 0x60 from a 0x12 to 0xef, position your cursor to offset 0x60,
Packit 6ef888
so that the 12 is highlighted, then press \fB<enter>\fP and type in "ef".
Packit 6ef888
Press \fB<escape>\fP or \fB<enter>\fP to exit edit mode.
Packit 6ef888
Packit 6ef888
In hex mode, different colors indicate different things.
Packit 6ef888
For example, in the default color scheme, the GFS2 data structure will
Packit 6ef888
be black, data offsets will be light blue, and actual data (anything after
Packit 6ef888
the gfs2 data structure) will be red.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
Structure mode
Packit 6ef888
Decode the file system block into its GFS2 structure and
Packit 6ef888
display the values of that structure.  This mode is most useful for
Packit 6ef888
jumping around the file system.  For example, you can use the arrow 
Packit 6ef888
keys to position down to a pointer and press \fBJ\fP to jump to that block.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
Pointers mode
Packit 6ef888
Display any additional information appearing on the block.
Packit 6ef888
For example, if an inode has block pointers, this will display them and
Packit 6ef888
allow you to scroll through them.  You can also position to one of them
Packit 6ef888
and press \fBJ\fP to jump to that block.
Packit 6ef888
Packit 6ef888
.SH Interactive mode command keys:
Packit 6ef888
.TP
Packit 6ef888
\fBq\fP or \fB<esc>\fP
Packit 6ef888
The \fBq\fP or \fB<escape>\fP keys are used to exit gfs2_edit.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
\fB<arrow/movement keys>\fP up, down, right, left, pg-up, pg-down, home, end
Packit 6ef888
The arrow keys are used to highlight an area of the display.  The \fBJ\fP
Packit 6ef888
key may be used to jump to the block that is highlighted.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
\fBm\fP - Mode switch
Packit 6ef888
The \fBm\fP key is used to switch between the three display modes.
Packit 6ef888
The initial mode is hex mode.  Pressing the \fBm\fP key once switches to
Packit 6ef888
structure mode.  Pressing it a second time switches from structure mode
Packit 6ef888
to pointers mode.  Pressing it a third time takes you back to hex mode again.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
\fBj\fP - Jump to block
Packit 6ef888
The \fBj\fP key jumps to the block number that is currently highlighted.
Packit 6ef888
In hex mode, hitting J will work when any byte of the pointer is highlighted.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
\fBg\fP - Goto block
Packit 6ef888
The \fBg\fP key asks for a block number, then jumps there.  Note that
Packit 6ef888
in many cases, you can also arrow up so that the current block number
Packit 6ef888
is highlighted, then press \fB<enter>\fP to enter a block number to jump to.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
\fBh\fP - Help display
Packit 6ef888
The \fBh\fP key causes the interactive help display to be shown.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
\fBe\fP - Extended mode
Packit 6ef888
The \fBe\fP key causes gfs2_edit to switch to extended ("pointers") mode.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
\fBc\fP - Color scheme
Packit 6ef888
The \fBc\fP key causes gfs2_edit to switch to its alternate color scheme.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
\fBf\fP - Forward block
Packit 6ef888
The \fBf\fP key causes you to scroll forward one block.  This does
Packit 6ef888
not affect the "jump" status.  In other words, if you use the \fBf\fP
Packit 6ef888
key to move forward several blocks, pressing \fB<backspace>\fP will
Packit 6ef888
not roll you back up.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
\fB<enter>\fP - Edit value
Packit 6ef888
The \fB<enter>\fP key causes you to go from display mode to edit mode.
Packit 6ef888
If you are in hex mode and you hit enter, you can type new hex values
Packit 6ef888
at the cursor's current location.  Note: pressing \fB<enter>\fP
Packit 6ef888
in structure mode allows you to enter a new value, with the following
Packit 6ef888
restrictions:  For gfs2 disk inodes and resource groups, it will
Packit 6ef888
actually change the value on disk. However, inode numbers may not be
Packit 6ef888
changed.  For all other structures, the values entered are ignored.
Packit 6ef888
Packit 6ef888
If you use the up arrow key to highlight the block number, then press
Packit 6ef888
\fB<enter>\fP, you may then enter a new block number, or any of the
Packit 6ef888
well-known block locations listed above (e.g. sb, rindex, inum, rg 17,
Packit 6ef888
etc.) and gfs2_edit will jump to the block specified.  If you specify
Packit 6ef888
a slash character followed by a metadata type, gfs2_edit will search for
Packit 6ef888
the next occurrence of that metadata block type, and jump there.  It
Packit 6ef888
will take you to block 0 if it does not find any more blocks of the
Packit 6ef888
specified metadata type.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
\fB<home>\fP
Packit 6ef888
If you are in pointers mode, this takes you back to the starts of the
Packit 6ef888
pointers you are viewing.  Otherwise it takes you back to the superblock.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
\fB<backspace>\fP
Packit 6ef888
This takes you back to the block you were displaying before a jump.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
\fB<space>\fP
Packit 6ef888
This takes you forward to the block you were displaying when you hit
Packit 6ef888
\fB<backspace>\fP.
Packit 6ef888
Packit 6ef888
.SH EXAMPLES
Packit 6ef888
.TP
Packit 6ef888
gfs2_edit /dev/roth_vg/roth_lv
Packit 6ef888
Display and optionally edit the file system on /dev/roth_vg/roth_lv
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
gfs2_edit -p sb /dev/vg0/lvol0
Packit 6ef888
Print the superblock of the gfs2 file system located on
Packit 6ef888
/dev/vg0/lvol0.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
gfs2_edit -p identify 2746 2748 /dev/sda2
Packit 6ef888
Print out what kind of blocks are at block numbers 2746 and 2748 on
Packit 6ef888
device /dev/sda2.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
gfs2_edit -p rindex /dev/sda1
Packit 6ef888
Print the resource group index system file located on device
Packit 6ef888
/dev/sda1.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
gfs2_edit savemeta /dev/sda1 /tmp/our_fs.gz
Packit 6ef888
Save off all metadata (but no user data) to file /tmp/our_fs.gz
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
gfs2_edit -p root /dev/my_vg/my_lv
Packit 6ef888
Print the contents of the root directory in /dev/my_vg/my_lv.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
gfs2-edit -x -p 0x3f7a /dev/sda1
Packit 6ef888
Print the contents of block 16250 of /dev/sda1 in hex.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
gfs2_edit -p 12345 /dev/sdc2
Packit 6ef888
Print the gfs2 data structure at block 12345.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
gfs2_edit rgcount /dev/sdb1
Packit 6ef888
Print how many Resource Groups exist for /dev/sdb1.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
gfs2_edit -p rg 17 /dev/sdb1
Packit 6ef888
Print the contents of the eighteenth Resource Group on /dev/sdb1.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
gfs2_edit rgflags 3 /dev/sdb1
Packit 6ef888
Print the rg_flags value for the fourth Resource Group on /dev/sdb1.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
gfs2_edit rgflags 3 8 /dev/sdb1
Packit 6ef888
Set the GFS2_RGF_NOALLOC flag on for the fourth Resource Group on /dev/sdb1.
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
gfs2_edit -p 25 blockalloc /dev/roth_vg/roth_lv
Packit 6ef888
Print the block allocation type of block 25.
Packit 6ef888
May produce this output:
Packit 6ef888
3 (Metadata)
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
gfs2_edit -p 25 blockalloc 1 /dev/roth_vg/roth_lv
Packit 6ef888
Change the block allocation type of block 25 to data.
Packit 6ef888
May produce this output:
Packit 6ef888
1
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
gfs2_edit -p 25 blocktype /dev/roth_vg/roth_lv
Packit 6ef888
Print the metadata block type of block 25.
Packit 6ef888
May produce this output:
Packit 6ef888
4 (Block 25 is type 4: Dinode)
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
gfs2_edit -p 25 field di_size /dev/roth_vg/roth_lv
Packit 6ef888
Print the di_size field of block 25.
Packit 6ef888
May produce this output:
Packit 6ef888
134217728
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
gfs2_edit -x -p 25 field di_size /dev/roth_vg/roth_lv
Packit 6ef888
Print the di_size field of block 25, in hexadecimal.
Packit 6ef888
May produce this output:
Packit 6ef888
0x8000000
Packit 6ef888
Packit 6ef888
.TP
Packit 6ef888
gfs2_edit -p 25 field di_size 0x4000 /dev/roth_vg/roth_lv
Packit 6ef888
Change the di_size field of block 25 to the hexadecimal value 0x4000.
Packit 6ef888
May produce this output:
Packit 6ef888
16384
Packit 6ef888
.SH KNOWN BUGS
Packit 6ef888
.TP
Packit 6ef888
The directory code does not work well.  It might be confused
Packit 6ef888
by directory "sentinel" entries.