blob: b4886850cbcad3f18bd19975e729d99668a170f0 [file] [log] [blame]
Theodore Ts'o3839e651997-04-26 13:21:57 +00001.\" -*- nroff -*-
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002.\" Copyright 1993, 1994, 1995 by Theodore Ts'o. All Rights Reserved.
3.\" This file may be copied under the terms of the GNU Public License.
4.\"
Theodore Ts'o74becf31997-04-26 14:37:06 +00005.TH DEBUGFS 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
Theodore Ts'o3839e651997-04-26 13:21:57 +00006.SH NAME
Theodore Ts'o4f858542009-05-30 12:34:28 -04007debugfs \- ext2/ext3/ext4 file system debugger
Theodore Ts'o3839e651997-04-26 13:21:57 +00008.SH SYNOPSIS
9.B debugfs
10[
Theodore Ts'o0fd68e02010-09-24 10:12:54 -040011.B \-DVwci
Theodore Ts'o1ad54a92004-07-28 21:11:48 -040012]
13[
Theodore Ts'o2e8d40d2000-05-27 15:15:40 +000014.B \-b
15blocksize
16]
17[
18.B \-s
19superblock
20]
21[
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000022.B \-f
23cmd_file
24]
25[
26.B \-R
27request
28]
29[
Theodore Ts'o1ad54a92004-07-28 21:11:48 -040030.B \-d
31data_source_device
Theodore Ts'o59cf7e02001-05-03 15:05:55 +000032]
33[
Theodore Ts'o3839e651997-04-26 13:21:57 +000034device
35]
36.SH DESCRIPTION
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000037The
38.B debugfs
Theodore Ts'o6e96adc2001-11-24 16:10:52 -050039program is an interactive file system debugger. It can be used to
Theodore Ts'o4f858542009-05-30 12:34:28 -040040examine and change the state of an ext2, ext3, or ext4 file system.
Theodore Ts'o3839e651997-04-26 13:21:57 +000041.br
42.I device
Theodore Ts'o4f858542009-05-30 12:34:28 -040043is the special file corresponding to the device containing the
Theodore Ts'o3839e651997-04-26 13:21:57 +000044file system (e.g /dev/hdXX).
45.SH OPTIONS
46.TP
Theodore Ts'o59cf7e02001-05-03 15:05:55 +000047.I \-w
Theodore Ts'o583ccdc1997-05-09 03:06:31 +000048Specifies that the file system should be opened in read-write mode.
49Without this option, the file system is opened in read-only mode.
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000050.TP
Theodore Ts'o59cf7e02001-05-03 15:05:55 +000051.I \-c
Theodore Ts'o2e8d40d2000-05-27 15:15:40 +000052Specifies that the file system should be opened in catastrophic mode, in
53which the inode and group bitmaps are not read initially. This can be
54useful for filesystems with significant corruption, but because of this,
55catastrophic mode forces the filesystem to be opened read-only.
56.TP
Theodore Ts'o59cf7e02001-05-03 15:05:55 +000057.I \-i
58Specifies that
59.I device
60represents an ext2 image file created by the
61.B e2image
62program. Since the ext2 image file only contains the superblock, block
63group descriptor, block and inode allocation bitmaps, and
64the inode table, many
65.B debugfs
66commands will not function properly.
67.B Warning:
68no safety checks are in place, and
69.B debugfs
70may fail in interesting ways if commands such as
71.IR ls ", " dump ", "
Theodore Ts'o1ad54a92004-07-28 21:11:48 -040072etc. are tried without specifying the
73.I data_source_device
74using the
75.I \-d
76option.
Theodore Ts'o59cf7e02001-05-03 15:05:55 +000077.B debugfs
78is a debugging tool. It has rough edges!
79.TP
Theodore Ts'o1ad54a92004-07-28 21:11:48 -040080.I -d data_source_device
81Used with the
82.I \-i
83option, specifies that
84.I data_source_device
85should be used when reading blocks not found in the ext2 image file.
86This includes data, directory, and indirect blocks.
87.TP
Theodore Ts'o2e8d40d2000-05-27 15:15:40 +000088.I -b blocksize
89Forces the use of the given block size for the file system, rather than
90detecting the correct block size as normal.
91.TP
92.I -s superblock
Theodore Ts'o054cd1f2008-06-17 21:55:38 -040093Causes the file system superblock to be read from the given block
94number, instead of using the primary superblock (located at an offset of
951024 bytes from the beginning of the filesystem). If you specify the
Theodore Ts'o2e8d40d2000-05-27 15:15:40 +000096.I -s
Theodore Ts'o054cd1f2008-06-17 21:55:38 -040097option, you must also provide the blocksize of the filesystem via the
Theodore Ts'o2e8d40d2000-05-27 15:15:40 +000098.I -b
99option.
100.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000101.I -f cmd_file
102Causes
103.B debugfs
104to read in commands from
105.IR cmd_file ,
106and execute them. When
107.B debugfs
Theodore Ts'o583ccdc1997-05-09 03:06:31 +0000108is finished executing those commands, it will exit.
Theodore Ts'o0fd68e02010-09-24 10:12:54 -0400109.TP
110.I -D
111Causes
112.B debugfs
113to open the device using Direct I/O, bypassing the buffer cache. Note
114that some Linux devices, notably device mapper as of this writing, do
115not support Direct I/O.
116.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000117.I -R request
118Causes
119.B debugfs
120to execute the single command
121.IR request ,
122and then exit.
Theodore Ts'o818180c1998-06-27 05:11:14 +0000123.TP
124.I -V
125print the version number of
126.B debugfs
127and exit.
Theodore Ts'o6e96adc2001-11-24 16:10:52 -0500128.SH SPECIFYING FILES
129Many
Theodore Ts'o3839e651997-04-26 13:21:57 +0000130.B debugfs
Theodore Ts'o6e96adc2001-11-24 16:10:52 -0500131commands take a
132.I filespec
133as an argument to specify an inode (as opposed to a pathname)
134in the filesystem which is currently opened by
135.BR debugfs .
136The
137.I filespec
138argument may be specified in two forms. The first form is an inode
139number surrounded by angle brackets, e.g.,
140.IR <2> .
141The second form is a pathname; if the pathname is prefixed by a forward slash
142('/'), then it is interpreted relative to the root of the filesystem
143which is currently opened by
144.BR debugfs .
145If not, the pathname is
146interpreted relative to the current working directory as maintained by
147.BR debugfs .
148This may be modified by using the
149.B debugfs
150command
151.IR cd .
152.\"
153.\"
154.\"
155.SH COMMANDS
156This is a list of the commands which
157.B debugfs
158supports.
Theodore Ts'o3839e651997-04-26 13:21:57 +0000159.TP
Theodore Ts'obecf36f2003-05-05 11:35:04 -0400160.I bmap filespec logical_block
161Print the physical block number corresponding to the logical block number
162.I logical_block
163in the inode
164.IR filespec .
165.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000166.I cat filespec
167Dump the contents of the inode
168.I filespec
169to stdout.
Theodore Ts'o3839e651997-04-26 13:21:57 +0000170.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000171.I cd filespec
172Change the current working directory to
173.IR filespec .
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000174.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000175.I chroot filespec
176Change the root directory to be the directory
177.IR filespec .
Theodore Ts'o3839e651997-04-26 13:21:57 +0000178.TP
Theodore Ts'o6dce5322009-05-28 22:03:33 -0400179.I close [-a]
180Close the currently open file system. If the
181.I -a
182option is specified, write out any changes to the superblock and block
183group descriptors to all of the backup superblocks, not just to the
184master superblock.
Theodore Ts'o3839e651997-04-26 13:21:57 +0000185.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000186.I clri file
187Clear the contents of the inode
188.IR file .
Theodore Ts'o3839e651997-04-26 13:21:57 +0000189.TP
Theodore Ts'o711d3842008-09-07 14:08:40 -0400190.I dump [-p] filespec out_file
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000191Dump the contents of the inode
192.I filespec
193to the output file
194.IR out_file .
195If the
196.I -p
197option is given set the owner, group and permissions information on
198.I out_file
199to match
200.IR filespec .
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000201.TP
Theodore Ts'o187cb622009-07-26 22:29:47 -0400202.I dump_extents [-n] [-l] filespec
203Dump the the extent tree of the inode
204.IR filespec .
205The
206.I -n
207flag will cause
208.I dump_extents
209to only display the interior nodes in the extent tree. The
210.I -l
211flag cause
212.I dump_extents
213to only display the leaf nodes in the extent tree.
214.IP
215(Please note that the length and range of blocks for the last extent in
216an interior node is an estimate by the extents library functions, and is
217not stored in file esystem data structures. Hence, the values displayed
218may not necessarily by accurate and does not indicate a problem or
219corruption in the file system.)
220.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000221.I expand_dir filespec
222Expand the directory
223.IR filespec .
Theodore Ts'o3839e651997-04-26 13:21:57 +0000224.TP
Theodore Ts'od3aea7d1999-09-14 20:55:37 +0000225.I feature [fs_feature] [-fs_feature] ...
226Set or clear various filesystem features in the superblock. After setting
227or clearing any filesystem features that were requested, print the current
228state of the filesystem feature set.
229.TP
Theodore Ts'oe1018ee2002-01-03 04:55:25 -0500230.I find_free_block [count [goal]]
231Find the first
232.I count
233free blocks, starting from
Theodore Ts'o3839e651997-04-26 13:21:57 +0000234.I goal
Theodore Ts'o583ccdc1997-05-09 03:06:31 +0000235and allocate it.
Theodore Ts'o3839e651997-04-26 13:21:57 +0000236.TP
237.I find_free_inode [dir [mode]]
Theodore Ts'o583ccdc1997-05-09 03:06:31 +0000238Find a free inode and allocate it. If present,
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000239.I dir
240specifies the inode number of the directory
241which the inode is to be located. The second
242optional argument
243.I mode
244specifies the permissions of the new inode. (If the directory bit is set
245on the mode, the allocation routine will function differently.)
Theodore Ts'o3839e651997-04-26 13:21:57 +0000246.TP
Theodore Ts'oe1018ee2002-01-03 04:55:25 -0500247.I freeb block [count]
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000248Mark the block number
249.I block
250as not allocated.
Theodore Ts'oe1018ee2002-01-03 04:55:25 -0500251If the optional argument
252.I count
253is present, then
254.I count
255blocks starting at block number
256.I block
257will be marked as not allocated.
Theodore Ts'o3839e651997-04-26 13:21:57 +0000258.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000259.I freei filespec
260Free the inode specified by
Theodore Ts'o583ccdc1997-05-09 03:06:31 +0000261.IR filespec .
Theodore Ts'o3839e651997-04-26 13:21:57 +0000262.TP
263.I help
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000264Print a list of commands understood by
Theodore Ts'o0fd68e02010-09-24 10:12:54 -0400265.BR debugfs .
Theodore Ts'o3839e651997-04-26 13:21:57 +0000266.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000267.I icheck block ...
Theodore Ts'o583ccdc1997-05-09 03:06:31 +0000268Print a listing of the inodes which use the one or more blocks specified
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000269on the command line.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000270.TP
Theodore Ts'obecf36f2003-05-05 11:35:04 -0400271.I imap filespec
272Print the location of the inode data structure (in the inode table)
273of the inode
274.IR filespec .
275.TP
Theodore Ts'o90252ca2004-02-21 22:20:01 -0500276.I init_filesys device blocksize
Theodore Ts'o3839e651997-04-26 13:21:57 +0000277Create an ext2 file system on
278.I device
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000279with device size
280.IR blocksize .
281Note that this does not fully initialize all of the data structures;
282to do this, use the
283.BR mke2fs (8)
284program. This is just a call to the low-level library, which sets up
285the superblock and block descriptors.
Theodore Ts'o3839e651997-04-26 13:21:57 +0000286.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000287.I kill_file filespec
Theodore Ts'o583ccdc1997-05-09 03:06:31 +0000288Deallocate the inode
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000289.I filespec
290and its blocks. Note that this does not remove any directory
291entries (if any) to this inode. See the
Theodore Ts'o583ccdc1997-05-09 03:06:31 +0000292.BR rm (1)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000293command if you wish to unlink a file.
Theodore Ts'o3839e651997-04-26 13:21:57 +0000294.TP
Theodore Ts'o6e96adc2001-11-24 16:10:52 -0500295.I lcd directory
296Change the current working directory of the
297.B debugfs
298process to
299.I directory
300on the native filesystem.
301.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000302.I ln filespec dest_file
303Create a link named
304.I dest_file
305which is a link to
306.IR filespec .
307Note this does not adjust the inode reference counts.
Theodore Ts'o3839e651997-04-26 13:21:57 +0000308.TP
Theodore Ts'oa435ec32003-08-21 00:40:26 -0400309.I logdump [-acs] [-b<block>] [-i<filespec>] [-f<journal_file>] [output_file]
310Dump the contents of the ext3 journal. By default, the journal inode as
311specified in the superblock. However, this can be overridden with the
312.I \-i
313option, which uses an inode specifier to specify the journal to be
314used. A file containing journal data can be specified using the
315.I \-f
316option. Finally, the
317.I \-s
318option utilizes the backup information in the superblock to locate the
319journal.
320.IP
321The
322.I \-a
323option causes the
324.I logdump
325program to print the contents of all of the descriptor blocks.
326The
327.I \-b
328option causes
329.I logdump
330to print all journal records that are refer to the specified block.
331The
332.I \-c
333option will print out the contents of all of the data blocks selected by
334the
335.I \-a
336and
337.I \-b
338options.
Theodore Ts'o6e96adc2001-11-24 16:10:52 -0500339.TP
Theodore Ts'od056b992008-01-04 15:28:51 -0500340.I ls [-l] [-d] [-p] filespec
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000341Print a listing of the files in the directory
342.IR filespec .
Theodore Ts'oe1018ee2002-01-03 04:55:25 -0500343The
344.I \-l
345flag will list files using a more verbose format.
346The
347.I \-d
348flag will list deleted entries in the directory.
Theodore Ts'od056b992008-01-04 15:28:51 -0500349The
350.I \-p
351flag will list the files in a format which is more easily parsable by
352scripts, as well as making it more clear when there are spaces or other
Theodore Ts'o711d3842008-09-07 14:08:40 -0400353non-printing characters at the end of filenames.
Theodore Ts'o3839e651997-04-26 13:21:57 +0000354.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000355.I modify_inode filespec
356Modify the contents of the inode structure in the inode
357.IR filespec .
Theodore Ts'o3839e651997-04-26 13:21:57 +0000358.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000359.I mkdir filespec
Theodore Ts'o3839e651997-04-26 13:21:57 +0000360Make a directory.
361.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000362.I mknod filespec [p|[[c|b] major minor]]
363Create a special device file (a named pipe, character or block device).
364If a character or block device is to be made, the
365.I major
366and
367.I minor
368device numbers must be specified.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000369.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000370.I ncheck inode_num ...
Theodore Ts'o583ccdc1997-05-09 03:06:31 +0000371Take the requested list of inode numbers, and print a listing of pathnames
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000372to those inodes.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000373.TP
Theodore Ts'o0fd68e02010-09-24 10:12:54 -0400374.I open [-w] [-e] [-f] [-i] [-c] [-D] [-b blocksize] [-s superblock] device
Theodore Ts'od3aea7d1999-09-14 20:55:37 +0000375Open a filesystem for editing. The
Theodore Ts'od3aea7d1999-09-14 20:55:37 +0000376.I -f
377flag forces the filesystem to be opened even if there are some unknown
378or incompatible filesystem features which would normally
Theodore Ts'o2e8d40d2000-05-27 15:15:40 +0000379prevent the filesystem from being opened. The
Theodore Ts'o98eb44b2006-03-18 19:58:13 -0500380.I -e
381flag causes the filesystem to be opened in exclusive mode. The
Theodore Ts'o0fd68e02010-09-24 10:12:54 -0400382.IR -b ", " -c ", " -i ", " -s ", " -w ", and " -D
Theodore Ts'o98eb44b2006-03-18 19:58:13 -0500383options behave the same as the command-line options to
384.BR debugfs .
Theodore Ts'o3839e651997-04-26 13:21:57 +0000385.TP
386.I pwd
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000387Print the current working directory.
Theodore Ts'o3839e651997-04-26 13:21:57 +0000388.TP
389.I quit
390Quit
391.B debugfs
392.TP
Theodore Ts'o6e96adc2001-11-24 16:10:52 -0500393.I rdump directory destination
394Recursively dump
395.I directory
396and all its contents (including regular files, symbolic links, and other
397directories) into the named
398.I destination
399which should be an existing directory on the native filesystem.
400.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000401.I rm pathname
402Unlink
403.IR pathname .
Theodore Ts'o583ccdc1997-05-09 03:06:31 +0000404If this causes the inode pointed to by
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000405.I pathname
406to have no other references, deallocate the file. This command functions
407as the unlink() system call.
408.I
Theodore Ts'o3839e651997-04-26 13:21:57 +0000409.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000410.I rmdir filespec
411Remove the directory
412.IR filespec .
Theodore Ts'o3839e651997-04-26 13:21:57 +0000413.TP
Theodore Ts'oe1018ee2002-01-03 04:55:25 -0500414.I setb block [count]
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000415Mark the block number
416.I block
417as allocated.
Theodore Ts'oe1018ee2002-01-03 04:55:25 -0500418If the optional argument
419.I count
420is present, then
421.I count
422blocks starting at block number
423.I block
424will be marked as allocated.
Theodore Ts'o3839e651997-04-26 13:21:57 +0000425.TP
Theodore Ts'oc7c12092007-04-13 15:56:00 -0400426.I set_block_group bgnum field value
427Modify the block group descriptor specified by
428.I bgnum
429so that the block group descriptor field
430.I field
431has value
432.I value.
433.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000434.I seti filespec
435Mark inode
436.I filespec
437as in use in the inode bitmap.
Theodore Ts'o3839e651997-04-26 13:21:57 +0000438.TP
Theodore Ts'o1d3a9512005-01-07 21:14:12 -0500439.I set_inode_field filespec field value
Theodore Ts'o7dec0502004-12-21 20:37:36 -0500440Modify the inode specified by
441.I filespec
442so that the inode field
443.I field
444has value
445.I value.
446The list of valid inode fields which can be set via this command
447can be displayed by using the command:
Theodore Ts'o1d3a9512005-01-07 21:14:12 -0500448.B set_inode_field -l
Theodore Ts'o7dec0502004-12-21 20:37:36 -0500449.TP
Theodore Ts'o6e96adc2001-11-24 16:10:52 -0500450.I set_super_value field value
451Set the superblock field
452.I field
453to
454.I value.
455The list of valid superblock fields which can be set via this command
456can be displayed by using the command:
457.B set_super_value -l
458.TP
Theodore Ts'od3aea7d1999-09-14 20:55:37 +0000459.I show_super_stats [-h]
460List the contents of the super block and the block group descriptors. If the
461.I -h
462flag is given, only print out the superblock contents.
Theodore Ts'o3839e651997-04-26 13:21:57 +0000463.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000464.I stat filespec
465Display the contents of the inode structure of the inode
466.IR filespec .
Theodore Ts'o3839e651997-04-26 13:21:57 +0000467.TP
Theodore Ts'oe1018ee2002-01-03 04:55:25 -0500468.I testb block [count]
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000469Test if the block number
470.I block
471is marked as allocated in the block bitmap.
Theodore Ts'oe1018ee2002-01-03 04:55:25 -0500472If the optional argument
473.I count
474is present, then
475.I count
476blocks starting at block number
477.I block
478will be tested.
Theodore Ts'o3839e651997-04-26 13:21:57 +0000479.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000480.I testi filespec
481Test if the inode
482.I filespec
483is marked as allocated in the inode bitmap.
Theodore Ts'o3839e651997-04-26 13:21:57 +0000484.TP
Theodore Ts'ob026d532008-01-01 11:37:20 -0500485.I undel <inode num> [pathname]
486Undelete the specified inode number (which must be surrounded by angle
487brackets) so that it and its blocks are marked in use, and optionally
488link the recovered inode to the specified pathname. The
489.B e2fsck
490command should always be run after using the
491.B undel
492command to recover deleted files.
493.IP
494Note that if you are recovering a large number of deleted files, linking
495the inode to a directory may require the directory to be expanded, which
496could allocate a block that had been used by one of the
497yet-to-be-undeleted files. So it is safer to undelete all of the
498inodes without specifying a destination pathname, and then in a separate
499pass, use the debugfs
500.B link
501command to link the inode to the destination pathname, or use
502.B e2fsck
503to check the filesystem and link all of the recovered inodes to the
Theodore Ts'o711d3842008-09-07 14:08:40 -0400504lost+found directory.
Theodore Ts'ob026d532008-01-01 11:37:20 -0500505.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000506.I unlink pathname
507Remove the link specified by
508.I pathname
509to an inode. Note this does not adjust the inode reference counts.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000510.TP
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000511.I write source_file out_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000512Create a file in the filesystem named
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000513.IR out_file ,
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000514and copy the contents of
515.I source_file
516into the destination file.
Theodore Ts'o2b5ddd72004-01-24 18:54:41 -0500517.SH ENVIRONMENT VARIABLES
518.TP
519.B DEBUGFS_PAGER, PAGER
520The
Theodore Ts'o0fd68e02010-09-24 10:12:54 -0400521.B debugfs
Theodore Ts'o2b5ddd72004-01-24 18:54:41 -0500522program always pipes the output of the some commands through a
523pager program. These commands include:
524.IR show_super_stats ,
525.IR list_directory ,
526.IR show_inode_info ,
527.IR list_deleted_inodes ,
528and
529.IR htree_dump .
530The specific pager can explicitly specified by the
531.B DEBUGFS_PAGER
532environment variable, and if it is not set, by the
533.B PAGER
534environment variable.
535.IP
536Note that since a pager is always used, the
537.BR less (1)
538pager is not particularly appropriate, since it clears the screen before
539displaying the output of the command and clears the output the screen
540when the pager is exited. Many users prefer to use the
541.BR less (1)
542pager for most purposes, which is why the
543.B DEBUGFS_PAGER
544environment variable is available to override the more general
545.B PAGER
546environment variable.
Theodore Ts'o3839e651997-04-26 13:21:57 +0000547.SH AUTHOR
548.B debugfs
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000549was written by Theodore Ts'o <tytso@mit.edu>.
Theodore Ts'o3839e651997-04-26 13:21:57 +0000550.SH SEE ALSO
551.BR dumpe2fs (8),
Andreas Mohr0fd2f902008-02-28 20:50:05 -0500552.BR tune2fs (8),
Theodore Ts'o3839e651997-04-26 13:21:57 +0000553.BR e2fsck (8),
554.BR mke2fs (8)