OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / e2fsprogs / draft / man8 / debugfs.8
1 .\" -*- nroff -*-
2 .\" 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 .\" 
5 .\" Japanese Version Copyright 1998 by MATSUMOTO Shoji. All Rights Reserved.
6 .\" Translated Fri Mar 13 03:10:18 JST 1998 by MATSUMOTO Shoji.
7 .\" Updated Sat 23 Oct 1999 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
8 .\" Updated Tue 16 Nov 1999 by NAKANO Takeo
9 .\" Updated & Modified Thu Aug 16 00:10:30 JST 2001
10 .\"         by Yuichi SATO <ysato@h4.dion.ne.jp>
11 .\" Updated Thu 3 Oct 2002 by NAKANO Takeo
12 .\" Updated & Modified Sat Apr 17 13:18:42 JST 2004
13 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
14 .\" Updated & Modified Tue May  3 03:13:30 JST 2005 by Yuichi SATO
15 .\" Updated & Modified Sat Oct 28 04:28:52 JST 2006 by Yuichi SATO
16 .\" 
17 .\"WORD:        allocate        ¥¢¥í¥±¡¼¥È (¤¹¤ë)
18 .\"WORD:        interactive     ÂÐÏÃŪ
19 .\"WORD:        stdout          É¸½à½ÐÎÏ
20 .\"WORD:        dump            ¥À¥ó¥×¤¹¤ë
21 .\"WORD:        current working directory       ¥«¥ì¥ó¥È¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê
22 .\"WORD:        open            ¥ª¡¼¥×¥ó¤¹¤ë
23 .\"WORD:        close           ¥¯¥í¡¼¥º¤¹¤ë
24 .\"WORD:        owner           ½êÍ­¼Ô(owner)
25 .\"WORD:        group           ½êÍ­¥°¥ë¡¼¥×(group)
26 .\"WORD:        permission      ¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó(permission)
27 .\"WORD:        free block      ¶õ¤­¥Ö¥í¥Ã¥¯(free block)
28 .\"WORD:        directory entry ¥Ç¥£¥ì¥¯¥È¥ê¥¨¥ó¥È¥ê
29 .\"WORD:        link            ¥ê¥ó¥¯
30 .\"WORD:        reference counts        »²¾È¿ô(reference counts)
31 .\"WORD:        structure       ¹½Â¤ÂÎ
32 .\"WORD:        pathname        ¥Ñ¥¹Ì¾
33 .\"WORD:        SPECIFING FILES ¥Õ¥¡¥¤¥ë»ØÄê
34 .\"
35 .TH DEBUGFS 8 "May 2006" "E2fsprogs version 1.39"
36 .\"O .SH NAME
37 .SH Ì¾Á°
38 .\"O debugfs \- ext2/ext3 file system debugger
39 debugfs \- ext2/ext3 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥Ç¥Ð¥Ã¥¬
40 .\"O .SH SYNOPSIS
41 .SH ½ñ¼°
42 .B debugfs
43 [
44 .B \-Vwci
45 ]
46 [
47 .B \-b
48 blocksize
49 ]
50 [
51 .B \-s
52 superblock
53 ]
54 [
55 .B \-f 
56 cmd_file
57 ]
58 [
59 .B \-R
60 request
61 ]
62 [
63 .B \-d
64 data_source_device
65 ]
66 [
67 device
68 ]
69 .\"O .SH DESCRIPTION
70 .SH ÀâÌÀ
71 .\"O The 
72 .\"O .B debugfs 
73 .\"O program is an interactive file system debugger. It can be used to
74 .\"O examine and change the state of an ext2 file system.
75 .B debugfs
76 ¤ÏÂÐÏÃŪ¤Ê¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥Ç¥Ð¥Ã¥¬¤Ç¤¢¤ë¡£
77 ext2 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¾õÂÖ¤ÎÄ´ºº¡¦Êѹ¹¤ËÍøÍѤǤ­¤ë¡£
78 .\"O .br
79 .\"O .I device
80 .\"O is the special file corresponding to the device containing the ext2
81 .\"O file system (e.g /dev/hdXX).
82 .I device
83 ¤Ï¡¢ext2 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò´Þ¤à¥Ç¥Ð¥¤¥¹¤ËÂбþ¤¹¤ë
84 ¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë¡£(Îã: /dev/hdXX)
85 .\"O .SH OPTIONS
86 .SH ¥ª¥×¥·¥ç¥ó
87 .TP
88 .I \-w
89 .\"O Specifies that the file system should be opened in read-write mode.
90 .\"O Without this option, the file system is opened in read-only mode.
91 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò read/write ¥â¡¼¥É¤Ç¥ª¡¼¥×¥ó¤¹¤ë¡£
92 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤Ê¤¤¾ì¹ç¤Ï¡¢
93 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ï read-only ¥â¡¼¥É¤Ç¥ª¡¼¥×¥ó¤µ¤ì¤ë¡£
94 .TP
95 .I \-c
96 .\"O Specifies that the file system should be opened in catastrophic mode, in
97 .\"O which the inode and group bitmaps are not read initially.  This can be
98 .\"O useful for filesystems with significant corruption, but because of this,
99 .\"O catastrophic mode forces the filesystem to be opened read-only.
100 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò catastrophic
101 (¿ÓÂç¤ÊÇË»¤¬µ¯¤³¤Ã¤¿¾ì¹ç¤Î) ¥â¡¼¥É¤Ç¥ª¡¼¥×¥ó¤¹¤ë¡£
102 ¤³¤Î¥â¡¼¥É¤Ç¤Ï inode ¤È¥°¥ë¡¼¥×¥Ó¥Ã¥È¤òºÇ½é¤ËÆɤ߹þ¤Þ¤Ê¤¤¡£
103 ¤³¤ì¤Ï½ÅÅÙ¤ËÇË»¤·¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ËÂФ·¤Æ¤ÏÍ­¸ú¤Ê¤³¤È¤¬¤¢¤ë¤¬¡¢
104 °ìÊý¤³¤Î¤¿¤á catastrophic ¥â¡¼¥É¤Ç¤Ï¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò
105 read-only ¤Ç¤·¤«¥ª¡¼¥×¥ó¤Ç¤­¤Ê¤¤¡£
106 .TP
107 .I \-i
108 .\"O Specifies that 
109 .\"O .I device
110 .\"O represents an ext2 image file created by the
111 .\"O .B e2image
112 .\"O program.  Since the ext2 image file only contains the superblock, block
113 .\"O group descriptor, block and inode allocation bitmaps, and 
114 .\"O the inode table, many
115 .\"O .B debugfs
116 .\"O commands will not function properly.  
117 .I device
118 ¤¬
119 .B e2image
120 ¥×¥í¥°¥é¥à¤Ë¤è¤Ã¤ÆºîÀ®¤µ¤ì¤¿ ext2 ¥¤¥á¡¼¥¸¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë¤³¤È¤ò»ØÄꤹ¤ë¡£
121 ext2 ¥¤¥á¡¼¥¸¥Õ¥¡¥¤¥ë¤Ï¡¢¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¡¦
122 ¥Ö¥í¥Ã¥¯¥°¥ë¡¼¥×¥Ç¥£¥¹¥¯¥ê¥×¥¿¡¦¥Ö¥í¥Ã¥¯¥¢¥í¥±¡¼¥·¥ç¥ó¥Ó¥Ã¥È¥Þ¥Ã¥×¡¦
123 inode ¥¢¥í¡¼¥±¥·¥ç¥ó¥Ó¥Ã¥È¥Þ¥Ã¥×¡¦inode ¥Æ¡¼¥Ö¥ë¤·¤«»ý¤¿¤Ê¤¤¤Î¤Ç¡¢
124 .B debugfs
125 ¤Î¿¤¯¤Î¥³¥Þ¥ó¥É¤¬Àµ¤·¤¯µ¡Ç½¤·¤Ê¤¤¡£
126 .\"O .B Warning:
127 .\"O no safety checks are in place, and 
128 .\"O .B debugfs 
129 .\"O may fail in interesting ways if commands such as
130 .\"O .IR ls ", " dump ", " 
131 .\"O etc. are tried without specifying the 
132 .\"O .I data_source_device
133 .\"O using the 
134 .\"O .I \-d
135 .\"O option.
136 .\"O .B debugfs 
137 .\"O is a debugging tool.  It has rough edges!
138 .B ·Ù¹ð:
139 °ÂÁ´À­¤Î¥Á¥§¥Ã¥¯¤Ï¹Ô¤ï¤Ê¤¤¡£
140 ¤Þ¤¿¡¢
141 .I \-d
142 ¥ª¥×¥·¥ç¥ó¤Ë¤è¤Ã¤Æ
143 .I data_source_device
144 ¤ò»ØÄꤻ¤º¤Ë¡¢
145 .IR ls ", " dump
146 ¤Ê¤É¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤¿¾ì¹ç¤Ë¤Ï
147 .B debugfs 
148 ¤ÏÊѤÊÉ÷¤Ë¼ºÇÔ¤¹¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
149 .B debugfs 
150 ¤Ï¥Ç¥Ð¥Ã¥°ÍѤΥġ¼¥ë¤Ê¤Î¤Ç¡¢ÀöÎý¤µ¤ì¤¿Éôʬ¤Î¤ß¤Ç¤¢¤ë¤È¤Ï¸Â¤é¤Ê¤¤!
151 .TP
152 .I -d data_source_device
153 .\"O Used with the 
154 .\"O .I \-i
155 .\"O option, specifies that
156 .\"O .I data_source_device
157 .\"O should be used when reading blocks not found in the ext2 image file.
158 .I \-i
159 ¥ª¥×¥·¥ç¥ó¤È¶¦¤Ë»ÈÍѤµ¤ì¡¢
160 Æɤ߹þ¤ß¥Ö¥í¥Ã¥¯¤¬ ext2 ¥¤¥á¡¼¥¸¥Õ¥¡¥¤¥ë¤Ë¸«¤Ä¤«¤é¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢
161 »ØÄꤵ¤ì¤¿
162 .I data_source_device
163 ¤¬»ÈÍѤµ¤ì¤ë¡£
164 .\"O This includes data, directory, and indirect blocks.
165 ¤³¤Î¥Ç¥Ð¥¤¥¹¤Ë¤Ï¥Ç¡¼¥¿¡¦¥Ç¥£¥ì¥¯¥È¥ê¡¦´ÖÀÜ (indirect) ¥Ö¥í¥Ã¥¯¤¬´Þ¤Þ¤ì¤ë¡£
166 .TP
167 .I -b blocksize
168 .\"O Forces the use of the given block size for the file system, rather than
169 .\"O detecting the correct block size as normal.
170 Ä̾ï¤Î¤è¤¦¤ËÀµ¤·¤¤¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ò¸¡½Ð¤¹¤ëÆ°ºî¤ò¹Ô¤ï¤º¡¢
171 »ØÄꤷ¤¿¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ò¤½¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ËÍѤ¤¤ë¡£
172 .TP
173 .I -s superblock
174 .\"O Causes the file system superblock to be read from the given block number,
175 .\"O rather than the default (1).  If you give a
176 .\"O .I -s
177 .\"O option, you must also give a
178 .\"O .I -b
179 .\"O option.
180 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¤ò¡¢¥Ç¥Õ¥©¥ë¥È¤Î 1 ¤Ç¤Ï¤Ê¤¯¡¢
181 »ØÄꤷ¤¿¥Ö¥í¥Ã¥¯Èֹ椫¤éÆɤޤ»¤ë¡£
182 .I -s
183 ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤¿¾ì¹ç¡¢
184 .I -b
185 ¥ª¥×¥·¥ç¥ó¤â»ØÄꤷ¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
186 .TP
187 .I -f cmd_file
188 .\"O Causes 
189 .\"O .B debugfs
190 .\"O to read in commands from 
191 .\"O .IR cmd_file , 
192 .\"O and execute them.  When 
193 .\"O .B debugfs
194 .\"O is finished executing those commands, it will exit.
195 .B debugfs
196 ¤Ë¡¢
197 .I cmd_file
198 ¤«¤é¥³¥Þ¥ó¥É¤òÆɤ߹þ¤Þ¤»¡¢¼Â¹Ô¤µ¤»¤ë¡£
199 ¥³¥Þ¥ó¥É¤Î¼Â¹Ô¤ò½ªÎ»¤¹¤ë¤È¡¢
200 .B debugfs
201 ¤Ï½ªÎ»¤¹¤ë¡£
202 .TP 
203 .I -R request
204 .\"O Causes 
205 .\"O .B debugfs
206 .\"O to execute the single command 
207 .\"O .IR request ,
208 .\"O and then exit.
209 .I request
210 ¤È¤¤¤¦¤Ò¤È¤Ä¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¡¢½ªÎ»¤¹¤ë¡£
211 .TP
212 .I -V
213 .\"O print the version number of 
214 .\"O .B debugfs
215 .\"O and exit.
216 .B debugfs
217 ¤Î¥Ð¡¼¥¸¥ç¥ó¤òɽ¼¨¤·¤Æ½ªÎ»¤¹¤ë¡£
218 .\"O .SH SPECIFYING FILES
219 .SH ¥Õ¥¡¥¤¥ë»ØÄê
220 .\"O Many
221 .\"O .B debugfs
222 .\"O commands take a
223 .\"O .I filespec
224 .\"O as an argument to specify an inode (as opposed to a pathname) 
225 .\"O in the filesystem which is currently opened by 
226 .\"O .BR debugfs . 
227 .\"O The
228 .\"O .I filespec
229 .\"O argument may be specified in two forms.  The first form is an inode 
230 .\"O number surrounded by angle brackets, e.g., 
231 .\"O .IR <2> .
232 .\"O The second form is a pathname; if the pathname is prefixed by a forward slash
233 .\"O ('/'), then it is interpreted relative to the root of the filesystem 
234 .\"O which is currently opened by 
235 .\"O .BR debugfs .
236 .\"O If not, the pathname is 
237 .\"O interpreted relative to the current working directory as maintained by 
238 .\"O .BR debugfs .  
239 .\"O This may be modified by using the 
240 .\"O .B debugfs
241 .\"O command
242 .\"O .IR cd .
243 .B debugfs
244 ¤Î¥³¥Þ¥ó¥É¤Î¿¤¯¤Ï¡¢
245 debugfs ¤¬¸½ºß¥ª¡¼¥×¥ó¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤ª¤±¤ë 
246 inode (¥Ñ¥¹Ì¾¤Ç¤Ï¤Ê¤¤) ¤ò¼¨¤¹
247 .I filespec
248 ¤È¤¤¤¦°ú¿ô¤ò¼è¤ë¡£
249 .I filespec
250 ¤Ë¤Ï 2 ¼ïÎà¤Îɽµ­Ë¡¤¬¤¢¤ë¡£¤Ò¤È¤Ä¤Ï¡¢inode ÈÖ¹æ¤ò <> ¤Ç°Ï¤àÊýË¡¤Ç¤¢¤ë
251 (Îã:
252 .IR <2> )¡£
253 ¤â¤¦¤Ò¤È¤Ä¤Ï¥Ñ¥¹Ì¾¤Ç»ØÄꤹ¤ëÊýË¡¤Ç¤¢¤ë¡£
254 ¥Ñ¥¹Ì¾¤¬¡Ö/ (¥¹¥é¥Ã¥·¥å)¡×¤Ç¤Ï¤¸¤Þ¤ë¾ì¹ç¡¢
255 .B debugfs
256 ¤¬¸½ºß¥ª¡¼¥×¥ó¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥ë¡¼¥È¤«¤é¤ÎÁêÂХѥ¹¤òɽ¤¹¡£
257 ¡Ö/¡×¤Ç»Ï¤Þ¤é¤Ê¤¤¾ì¹ç¡¢¥«¥ì¥ó¥È¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤ÎÁêÂХѥ¹¤òɽ¤¹¡£
258 ¥«¥ì¥ó¥È¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤Ï
259 .B debugfs
260 ¤Î
261 .I cd
262 ¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤ÆÊѹ¹¤Ç¤­¤ë¡£
263 .\" 
264 .\"
265 .\"
266 .\"O .SH COMMANDS
267 .SH ¥³¥Þ¥ó¥É
268 .\"O This is a list of the commands which 
269 .\"O .B debugfs
270 .\"O supports.
271 .B debugfs
272 ¤¬¥µ¥Ý¡¼¥È¤¹¤ë¥³¥Þ¥ó¥É¤Î°ìÍ÷¤ò°Ê²¼¤Ë¼¨¤¹¡£
273 .TP
274 .I bmap filespec logical_block
275 .\"O Print the physical block number corresponding to the logical block number
276 .\"O .I logical_block
277 .\"O in the inode
278 .\"O .IR filespec .
279 .I filespec
280 ¤Ç»ØÄꤷ¤¿ inode ¤Ë¤ª¤±¤ëÏÀÍý¥Ö¥í¥Ã¥¯ÈÖ¹æ
281 .I logical_block
282 ¤ËÂбþ¤¹¤ëʪÍý¥Ö¥í¥Ã¥¯ÈÖ¹æ¤òɽ¼¨¤¹¤ë¡£
283 .TP
284 .I cat filespec
285 .\"O Dump the contents of the inode 
286 .\"O .I filespec
287 .\"O to stdout.
288 .I filespec
289 ¤Ç»ØÄꤷ¤¿ inode ¤ÎÆâÍƤòɸ½à½ÐÎϤإÀ¥ó¥×¤¹¤ë¡£
290 .TP
291 .I cd filespec
292 .\"O Change the current working directory to 
293 .\"O .IR filespec .
294 ¥«¥ì¥ó¥È¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤ò
295 .I filespec
296 ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê¤ËÊѹ¹¤¹¤ë¡£
297 .TP
298 .I chroot filespec
299 .\"O Change the root directory to be the directory 
300 .\"O .IR filespec .
301 ¥ë¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê¤ò
302 .I filespec
303 ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê¤ËÊѹ¹¤¹¤ë¡£
304 .TP
305 .I close
306 .\"O Close the currently open file system.
307 ¸½ºß¥ª¡¼¥×¥ó¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥¯¥í¡¼¥º¤¹¤ë¡£
308 .TP
309 .I clri file
310 .\"O Clear the contents of the inode 
311 .\"O .IR file .
312 .I file
313 ¤Ç»ØÄꤷ¤¿ inode ¤ÎÆâÍƤò¥¯¥ê¥¢¤¹¤ë¡£
314 .TP
315 .I dump [-p] filspec out_file
316 .\"O Dump the contents of the inode 
317 .\"O .I filespec
318 .\"O to the output file 
319 .\"O .IR out_file .  
320 .I filespec
321 ¤Ç»ØÄꤷ¤¿ inode ¤ÎÆâÍƤò
322 .I out_file
323 ¤Ç»ØÄꤷ¤¿¥Õ¥¡¥¤¥ë¤Ë¥À¥ó¥×¤¹¤ë¡£
324 .\"O If the 
325 .\"O .I -p 
326 .\"O option is given set the owner, group and permissions information on 
327 .\"O .I out_file 
328 .\"O to match 
329 .\"O .IR filespec .
330 .I -p
331 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë¤È¡¢
332 .I out_file
333 ¤Î½êÍ­¼Ô (owner)¡¢½êÍ­¥°¥ë¡¼¥× (group)¡¢¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó (permission) ¤ò
334 .I filespec
335 ¤ÈƱ¤¸¤Ë¤¹¤ë¡£
336 .TP
337 .I expand_dir filespec
338 .\"O Expand the directory
339 .\"O .IR filespec .
340 .I filespec
341 ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê¤òŸ³«¤¹¤ë¡£
342 .TP
343 .I feature [fs_feature] [-fs_feature] ...
344 .\"O Set or clear various filesystem features in the superblock.  After setting
345 .\"O or clearing any filesystem features that were requested, print the current
346 .\"O state of the filesystem feature set.
347 ¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¤ÎÍÍ¡¹¤Ê¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à°À­¤ò¥»¥Ã¥È/¥¯¥ê¥¢¤¹¤ë¡£
348 Í×µá¤Î¤¢¤Ã¤¿Â°À­¤ò¥»¥Ã¥È/¥¯¥ê¥¢¤·¤¿¸å¤Ï¡¢
349 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à°À­¤Î¸½ºß¾õÂ֤ΰìÍ÷¤òɽ¼¨¤¹¤ë¡£
350 .TP
351 .I find_free_block [count [goal]]
352 .\"O Find the first 
353 .\"O .I count
354 .\"O free blocks, starting from
355 .\"O .I goal
356 .\"O and allocate it.
357 .I goal
358 ¤«¤é»Ï¤Þ¤ëºÇ½é¤Î
359 .I count
360 ʬ¤Î¶õ¤­¥Ö¥í¥Ã¥¯¤òõ¤·¡¢¤½¤Î¶õ¤­¥Ö¥í¥Ã¥¯¤ò¥¢¥í¥±¡¼¥È (allocate) ¤¹¤ë¡£
361 .TP
362 .I find_free_inode [dir [mode]]
363 .\"O Find a free inode and allocate it.  If present, 
364 .\"O .I dir
365 .\"O specifies the inode number of the directory 
366 .\"O which the inode is to be located.  The second 
367 .\"O optional argument
368 .\"O .I mode
369 .\"O specifies the permissions of the new inode.  (If the directory bit is set
370 .\"O on the mode, the allocation routine will function differently.)
371 ¶õ¤­ inode ¤òõ¤·¡¢¤½¤Î inode ¤ò¥¢¥í¥±¡¼¥È¤¹¤ë¡£
372 .I dir
373 ¤ò»ØÄꤹ¤ë¤È¡¢
374 ¤³¤ì¤Ï¤½¤Î inode ¤òÃÖ¤¯¤Ù¤­¥Ç¥£¥ì¥¯¥È¥ê¤Î inode ¤È²ò¼á¤µ¤ì¤ë¡£
375 ¤µ¤é¤Ë
376 .I mode
377 ¤ò»ØÄꤹ¤ë¤È¡¢
378 ¤³¤ì¤Ï¿·¤·¤¤ inode ¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤È²ò¼á¤µ¤ì¤ë¡£
379 .RI ( mode
380 ¤Ë¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤¢¤ë¤³¤È¤ò»ØÄꤹ¤ë¥Ó¥Ã¥È¤¬Î©¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢
381 ¥¢¥í¥±¡¼¥È¥ë¡¼¥Á¥ó¤ÎµóÆ°¤Ï°Û¤Ê¤ë¤â¤Î¤Ë¤Ê¤ë¡£)
382 .TP
383 .I freeb block [count]
384 .\"O Mark the block number
385 .\"O .I block
386 .\"O as not allocated.
387 .\"O If the optional argument 
388 .\"O .I count 
389 .\"O is present, then 
390 .\"O .I count
391 .\"O blocks starting at block number
392 .\"O .I block
393 .\"O will be marked as not allocated.
394 ¥Ö¥í¥Ã¥¯ÈÖ¹æ
395 .I block
396 ¤ò¥¢¥í¥±¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¤â¤Î¤È¤·¤Æ¥Þ¡¼¥¯¤¹¤ë¡£
397 ¾Êά²Äǽ¤Ê°ú¿ô
398 .I count
399 ¤ò»ØÄꤹ¤ë¤È¡¢¥Ö¥í¥Ã¥¯ÈÖ¹æ
400 .I block
401 ¤«¤é»Ï¤Þ¤ë
402 .I count
403 ʬ¤Î¥Ö¥í¥Ã¥¯¤ò¥¢¥í¥±¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¤â¤Î¤È¤·¤Æ¥Þ¡¼¥¯¤¹¤ë¡£
404 .TP
405 .I freei filespec
406 .\"O Free the inode specified by 
407 .\"O .IR filespec .
408 .I filespec
409 ¤Ç»ØÄꤷ¤¿ inode ¤ò²òÊü¤¹¤ë¡£
410 .TP
411 .I help
412 .\"O Print a list of commands understood by 
413 .\"O .BR debugfs (8).
414 .BR debugfs (8)
415 ¤ÇÍøÍѤǤ­¤ë¥³¥Þ¥ó¥É¤Î¥ê¥¹¥È¤òɽ¼¨¤¹¤ë¡£
416 .TP
417 .I icheck block ...
418 .\"O Print a listing of the inodes which use the one or more blocks specified
419 .\"O on the command line.
420 ¥³¥Þ¥ó¥É¥é¥¤¥ó¤ËÍ¿¤¨¤¿¥Ö¥í¥Ã¥¯ (Ê£¿ô»ØÄê²Ä) 
421 ¤òÍøÍѤ·¤Æ¤¤¤ë inode ¤Î¥ê¥¹¥È¤òɽ¼¨¤¹¤ë¡£
422 .TP
423 .I imap filespec
424 .\"O Print the location of the inode data structure (in the inode table) 
425 .\"O of the inode
426 .\"O .IR filespec .
427 .I filespec
428 ¤Ç»ØÄꤵ¤ì¤¿ inode ¤Î (inode ¥Æ¡¼¥Ö¥ë¤Ë¤ª¤±¤ë)
429 inode ¥Ç¡¼¥¿¹½Â¤¤Î¾ì½ê¤òɽ¼¨¤¹¤ë¡£
430 .TP
431 .I init_filesys device blocksize
432 .\"O Create an ext2 file system on
433 .\"O .I device
434 .\"O with device size
435 .\"O .IR blocksize .
436 .\"O Note that this does not fully initialize all of the data structures; 
437 .\"O to do this, use the 
438 .\"O .BR mke2fs (8)
439 .\"O program.  This is just a call to the low-level library, which sets up
440 .\"O the superblock and block descriptors.
441 .I device 
442 ¾å¤Ë¡¢¥Ç¥Ð¥¤¥¹¥µ¥¤¥º
443 .I blocksize 
444 ¤Î ext2 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òºîÀ®¤¹¤ë¡£
445 ¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢¤¹¤Ù¤Æ¤Î¥Ç¡¼¥¿¹½Â¤¤ò´°Á´¤Ë½é´ü²½¤¹¤ë¤ï¤±¤Ç¤Ï¤Ê¤¤¡£
446 ¤³¤ì¤ò¤·¤¿¤¤¾ì¹ç¤Ï
447 .BR mke2fs (8)
448 ¥×¥í¥°¥é¥à¤òÍѤ¤¤ë¤³¤È¡£
449 ¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢Ã±¤Ë¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¤È¥Ö¥í¥Ã¥¯¥Ç¥£¥¹¥¯¥ê¥×¥¿¤òÀßÄꤹ¤ë
450 Äã¥ì¥Ù¥ë¥é¥¤¥Ö¥é¥ê¤ò¸Æ¤Ó½Ð¤¹¤À¤±¤Ç¤¢¤ë¡£
451 .TP
452 .I kill_file filespec
453 .\"O Deallocate the inode 
454 .\"O .I filespec
455 .\"O and its blocks.  Note that this does not remove any directory
456 .\"O entries (if any) to this inode.  See the 
457 .\"O .BR rm (1)
458 .\"O command if you wish to unlink a file.
459 .\"O nakano rm ¤Ï debugfs ¤ÎÆâÉô¥³¥Þ¥ó¥É¤Î¤³¤È¤À¤È»×¤¦¤Î¤Ç (1) ¤ÏÈ´¤¤¤¿¡£
460 .I filespec
461 ¤Ç»ØÄꤷ¤¿ inode ¤È¡¢
462 ¤½¤Î inode ¤¬»ÈÍѤ·¤Æ¤¤¤ë¥Ö¥í¥Ã¥¯¤ò¥¢¥í¥±¡¼¥È¤«¤é³°¤¹ (deallocate)¡£
463 ¤Ê¤ª¡¢¤½¤Î inode ¤ËÂбþ¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê¥¨¥ó¥È¥ê¤Ïºï½ü¤·¤Ê¤¤¤³¤È¤ËÃí°Õ¡£
464 ¥Õ¥¡¥¤¥ë¤ò unlink ¤·¤¿¤¤¾ì¹ç¤Ï
465 .I rm
466 ¥³¥Þ¥ó¥É¤ò»²¾È¤Î¤³¤È¡£
467 .TP
468 .I lcd directory
469 .\"O Change the current working directory of the
470 .\"O .B debugfs
471 .\"O process to
472 .\"O .I directory
473 .\"O on the native filesystem.
474 .B debugfs
475 ¥×¥í¥»¥¹¤Î¥«¥ì¥ó¥È¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤ò
476 ¥Í¥¤¥Æ¥£¥Ö¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à (ÌõÃð: ºî¶ÈÂоݤΤâ¤Î¤Ç¤Ï¤Ê¤¯¡¢
477 debugfs ¤¬¸Æ¤Ó½Ð¤µ¤ì¡¢²ÔƯ¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à) ¾å¤Î
478 .I directory
479 ¤ËÊѹ¹¤¹¤ë¡£
480 .TP
481 .I ln filespec dest_file
482 .\"O Create a link named 
483 .\"O .I dest_file
484 .\"O which is a link to 
485 .\"O .IR filespec .
486 .\"O Note this does not adjust the inode reference counts.
487 .I filespec
488 ¤ò»Ø¤¹¥ê¥ó¥¯
489 .I dest_file
490 ¤òºîÀ®¤¹¤ë¡£
491 ¤³¤ÎºÝ inode ¤Î»²¾È¿ô (reference counts) ¤ÏÊѹ¹¤·¤Ê¤¤¤³¤È¤ËÃí°Õ¡£
492 .TP
493 .I logdump [-acs] [-b<block>] [-i<filespec>] [-f<journal_file>] [output_file]
494 .\"O Dump the contents of the ext3 journal.  By default, the journal inode as
495 .\"O specified in the superblock.  However, this can be overridden with the 
496 .\"O .I \-i
497 .\"O option, which uses an inode specifier to specify the journal to be
498 .\"O used.  A file containing journal data can be specified using the
499 .\"O .I \-f
500 .\"O option.   Finally, the 
501 .\"O .I \-s
502 .\"O option utilizes the backup information in the superblock to locate the
503 .\"O journal.
504 ext3 ¥¸¥ã¡¼¥Ê¥ë¤ÎÆâÍƤò¥À¥ó¥×¤¹¤ë¡£
505 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥¸¥ã¡¼¥Ê¥ë inode ¤Ï¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¤Ç»ØÄꤵ¤ì¤ë¡£
506 ¤·¤«¤·
507 .I \-i
508 ¥ª¥×¥·¥ç¥ó¤Ç¾å½ñ¤­¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¢¤ë¡£
509 .I \-i
510 ¥ª¥×¥·¥ç¥ó¤Ï»ÈÍѤµ¤ì¤ë¥¸¥ã¡¼¥Ê¥ë¤ò»ØÄꤹ¤ë inode »ØÄê»Ò¤ò»È¤¦¡£
511 ¥¸¥ã¡¼¥Ê¥ë¥Ç¡¼¥¿¤¬½ñ¤«¤ì¤¿¥Õ¥¡¥¤¥ë¤Ï¡¢
512 .I \-f
513 ¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤Æ»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
514 ¤½¤·¤Æ
515 .I \-s
516 ¥ª¥×¥·¥ç¥ó¤Ï¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¤Ë¤¢¤ë¥Ð¥Ã¥¯¥¢¥Ã¥×¾ðÊó¤ò»È¤Ã¤Æ¡¢
517 ¥¸¥ã¡¼¥Ê¥ë¤ò¥¢¥í¥±¡¼¥È¤¹¤ë¡£
518 .IP
519 .\"O The 
520 .\"O .I \-a
521 .\"O option causes the 
522 .\"O .I logdump
523 .\"O program to print the contents of all of the descriptor blocks.
524 .I \-a
525 ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤È¡¢
526 .I logdump
527 ¥×¥í¥°¥é¥à¤ÏÁ´¤Æ¤Î¥Ç¥£¥¹¥¯¥ê¥×¥¿¥Ö¥í¥Ã¥¯¤ÎÆâÍƤòɽ¼¨¤¹¤ë¡£
528 .\"O The 
529 .\"O .I \-b
530 .\"O option causes 
531 .\"O .I logdump
532 .\"O to print all journal records that are refer to the specified block. 
533 .I \-b
534 ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤È¡¢
535 .I logdump
536 ¥×¥í¥°¥é¥à¤Ï»ØÄꤵ¤ì¤¿¥Ö¥í¥Ã¥¯¤ò»²¾È¤¹¤ëÁ´¤Æ¤Î¥¸¥ã¡¼¥Ê¥ë¥ì¥³¡¼¥É¤òɽ¼¨¤¹¤ë¡£
537 .\"O The 
538 .\"O .I \-c
539 .\"O option will print out the contents of all of the data blocks selected by
540 .\"O the 
541 .\"O .I \-a
542 .\"O and 
543 .\"O .I \-b
544 .\"O options.
545 .I \-c
546 ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤È¡¢
547 .I \-a
548 ¤È
549 .I \-b
550 ¥ª¥×¥·¥ç¥ó¤ÇÁªÂò¤µ¤ì¤¿Á´¤Æ¤Î¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤ÎÆâÍƤòɽ¼¨¤¹¤ë¡£
551 .TP
552 .I ls [-l] [-d] filespec
553 .\"O Print a listing of the files in the directory
554 .\"O .IR filespec .
555 .\"O The 
556 .\"O .I \-l
557 .\"O flag will list files using a more verbose format.
558 .\"O The
559 .\"O .I \-d
560 .\"O flag will list deleted entries in the directory.
561 .I filespec
562 ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥êÆâ¤Ë¤¢¤ë¥Õ¥¡¥¤¥ë¤ò¥ê¥¹¥Èɽ¼¨¤¹¤ë¡£
563 .I \-l
564 ¥Õ¥é¥°¤ò»ØÄꤹ¤ë¤È¡¢¤è¤ê¾ÜºÙ¤Ê½ñ¼°¤Ç¥Õ¥¡¥¤¥ë¤ò¥ê¥¹¥Èɽ¼¨¤¹¤ë¡£
565 .I \-d
566 ¥Õ¥é¥°¤ò»ØÄꤹ¤ë¤È¡¢
567 ¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ëºï½ü¥¨¥ó¥È¥ê (deleted entry)
568 ¤ò¥ê¥¹¥Èɽ¼¨¤¹¤ë¡£
569 .TP
570 .I modify_inode filespec
571 .\"O Modify the contents of the inode structure in the inode
572 .\"O .IR filespec .
573 .I filespec
574 ¤Ç»ØÄꤷ¤¿ inode ¤Ë¤¢¤ë inode ¹½Â¤ÂΤÎÆâÍƤòÊѹ¹¤¹¤ë¡£
575 .TP
576 .I mkdir filespec
577 .\"O Make a directory.
578 ¥Ç¥£¥ì¥¯¥È¥ê¤òºîÀ®¤¹¤ë¡£
579 .TP
580 .I mknod filespec [p|[[c|b] major minor]]
581 .\"O Create a special device file (a named pipe, character or block device).
582 .\"O If a character or block device is to be made, the 
583 .\"O .I major
584 .\"O and
585 .\"O .I minor
586 .\"O device numbers must be specified.
587 ¥¹¥Ú¥·¥ã¥ë¥Ç¥Ð¥¤¥¹¥Õ¥¡¥¤¥ë
588 (̾Á°ÉÕ¤­¥Ñ¥¤¥×¡¢¥­¥ã¥é¥¯¥¿¥Ç¥Ð¥¤¥¹¡¢¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹)
589 ¤òºîÀ®¤¹¤ë¡£
590 ¥­¥ã¥é¥¯¥¿¥Ç¥Ð¥¤¥¹¤ª¤è¤Ó¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹¤òºîÀ®¤¹¤ë¾ì¹ç¤Ï¡¢
591 ¥Ç¥Ð¥¤¥¹ÈÖ¹æ¤È¤·¤Æ
592 .I major
593 ¤ª¤è¤Ó
594 .I minor
595 ¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
596 .TP
597 .I ncheck inode_num ...
598 .\"O Take the requested list of inode numbers, and print a listing of pathnames
599 .\"O to those inodes.
600 »ØÄꤷ¤¿ inode Èֹ椽¤ì¤¾¤ì¤ËÂбþ¤¹¤ë¥Ñ¥¹Ì¾¤Î¥ê¥¹¥È¤òɽ¼¨¤¹¤ë¡£
601 .TP
602 .I open [-w] [-e] [-f] [-i] [-c] [-b blocksize] [-s superblock] device
603 .\"O Open a filesystem for editing.  The
604 .\"O .I -f
605 .\"O flag forces the filesystem to be opened even if there are some unknown
606 .\"O or incompatible filesystem features which would normally
607 .\"O prevent the filesystem from being opened.
608 ÊÔ½¸¤ÎÂоݤȤ¹¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥ª¡¼¥×¥ó¤¹¤ë¡£
609 .I \-f
610 ¥Õ¥é¥°¤ò¤Ä¤±¤ë¤È¡¢Ä̾ï¤Ç¤Ï¥ª¡¼¥×¥ó¤Ç¤­¤Ê¤¤¤è¤¦¤Ê¡¢
611 ÉÔÌÀ¤Ê¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤äÈó¸ß´¹¤Ê¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ç¤â
612 ¶¯À©Åª¤Ë¥ª¡¼¥×¥ó¤¹¤ë¡£
613 .\"O The
614 .\"O .I -e
615 .\"O flag causes the filesystem to be opened in exclusive mode.  The
616 .\"O .IR -b ", " -c ", " -i ", " -s ", and " -w
617 .\"O options behave the same as the command-line options to 
618 .\"O .BR debugfs .
619 .I \-e
620 ¥Õ¥é¥°¤ò¤Ä¤±¤ë¤È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òÇÓ¾¥â¡¼¥É¤Ç¥ª¡¼¥×¥ó¤¹¤ë¡£
621 .IR -b ", " -c ", " -i ", " -s ", " -w
622 ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤¿¾ì¹ç¤ÎÆ°ºî¤Ï¡¢
623 .B debugfs
624 ¤Ë¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤¿¾ì¹ç¤ÈƱ¤¸¤Ç¤¢¤ë¡£
625 .TP
626 .I pwd
627 .\"O Print the current working directory.
628 ¥«¥ì¥ó¥È¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤òɽ¼¨¤¹¤ë¡£
629 .TP
630 .I quit
631 .\"O Quit
632 .\"O .B debugfs
633 .B debugfs
634 ¤ò½ªÎ»¤¹¤ë¡£
635 .TP
636 .I rdump directory destination
637 .\"O Recursively dump
638 .\"O .I directory
639 .\"O and all its contents (including regular files, symbolic links, and other
640 .\"O directories) into the named
641 .\"O .I destination
642 .\"O which should be an existing directory on the native filesystem.
643 .I directory
644 ¤È (Ä̾ï¤Î¥Õ¥¡¥¤¥ë¡¦¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¡¦
645 ¤½¤Î¾¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò´Þ¤à) ¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ÎÁ´¤Æ¤ÎÆâÍƤò¡¢
646 .I destination
647 ¤È¤¤¤¦Ì¾Á°¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ËºÆµ¢Åª¤Ë¥À¥ó¥×¤¹¤ë¡£
648 .I destination
649 ¤Ï¥Í¥¤¥Æ¥£¥Ö¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Ë¸ºß¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
650 .TP
651 .I rm pathname
652 .\"O Unlink 
653 .\"O .IR pathname .
654 .\"O If this causes the inode pointed to by 
655 .\"O .I pathname
656 .\"O to have no other references, deallocate the file.  This command functions
657 .\"O as the unlink() system call.
658 .\"O .I 
659 .I pathname
660 ¤Ç»ØÄꤷ¤¿¥Ñ¥¹Ì¾¤ò unlink ¤¹¤ë¡£
661 .I pathname
662 ¤Î¼¨¤¹ inode ¤¬²¿¤â»²¾È¤·¤Ê¤¯¤Ê¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢
663 ¥Õ¥¡¥¤¥ë¤Î¥¢¥í¥±¡¼¥È¤ò³°¤¹¡£
664 ¤³¤Î¥³¥Þ¥ó¥É¤Ï unlink() ¥·¥¹¥Æ¥à¥³¡¼¥ë¤Î¤è¤¦¤ËÆ°ºî¤¹¤ë¡£
665 .TP
666 .I rmdir filespec
667 .\"O Remove the directory
668 .\"O .IR filespec .
669 .I filespec
670 ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê¤ò¾Ãµî¤¹¤ë¡£
671 .TP
672 .I setb block [count]
673 .\"O Mark the block number
674 .\"O .I block
675 .\"O as allocated.
676 ¥Ö¥í¥Ã¥¯ÈÖ¹æ
677 .I block
678 ¤ò¥¢¥í¥±¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤â¤Î¤È¤·¤Æ¥Þ¡¼¥¯¤¹¤ë¡£
679 .\"O If the optional argument 
680 .\"O .I count 
681 .\"O is present, then 
682 .\"O .I count
683 .\"O blocks starting at block number
684 .\"O .I block
685 .\"O will be marked as allocated.
686 ¾Êά²Äǽ¤Ê°ú¿ô
687 .I count
688 ¤ò»ØÄꤹ¤ë¤È¡¢¥Ö¥í¥Ã¥¯ÈÖ¹æ
689 .I block
690 ¤«¤é»Ï¤Þ¤ë
691 .I count
692 ʬ¤Î¥Ö¥í¥Ã¥¯¤ò¥¢¥í¥±¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤â¤Î¤È¤·¤Æ¥Þ¡¼¥¯¤¹¤ë¡£
693 .TP
694 .I seti filespec
695 .\"O Mark inode 
696 .\"O .I filespec
697 .\"O as in use in the inode bitmap.
698 inode ¥Ó¥Ã¥È¥Þ¥Ã¥×¤Ë¡¢
699 .I filespec
700 ¤Ç»ØÄꤷ¤¿ inode ¤¬»ÈÍÑÃæ¤Ç¤¢¤ë¤È¥Þ¡¼¥¯¤¹¤ë¡£
701 .TP
702 .I set_inode_field filespec field value
703 .\"O Modify the inode specified by 
704 .\"O .I filespec
705 .\"O so that the inode field
706 .\"O .I field
707 .\"O has value 
708 .\"O .I value.
709 .I filespec
710 ¤Ç»ØÄꤵ¤ì¤¿ inode ¤òÊѹ¹¤·¡¢inode ¥Õ¥£¡¼¥ë¥É
711 .I field
712 ¤¬ÃÍ
713 .I value
714 ¤ò»ý¤Ä¤è¤¦¤Ë¤¹¤ë¡£
715 .\"O The list of valid inode fields which can be set via this command 
716 .\"O can be displayed by using the command:
717 .\"O .B set_inode_field -l
718 ¤³¤Î¥³¥Þ¥ó¥É¤ÇÀßÄ꤬²Äǽ¤Ê¡¢Àµ¤·¤¤ inode ¥Õ¥£¡¼¥ë¥É¤Î¥ê¥¹¥È¤Ï¡¢
719 .B set_inode_field -l
720 ¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤Æɽ¼¨¤Ç¤­¤ë¡£
721 .TP
722 .I set_super_value field value
723 .\"O Set the superblock field
724 .\"O .I field
725 .\"O to 
726 .\"O .I value.
727 .\"O The list of valid superblock fields which can be set via this command 
728 .\"O can be displayed by using the command:
729 .\"O .B set_super_value -l
730 ¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¥Õ¥£¡¼¥ë¥É
731 .I field
732 ¤ò
733 .I value
734 ¤Ë¤¹¤ë¡£¤³¤Î¥³¥Þ¥ó¥É¤ÇÀßÄ꤬²Äǽ¤Ê¡¢
735 Àµ¤·¤¤¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¥Õ¥£¡¼¥ë¥É¤Î¥ê¥¹¥È¤Ï¡¢
736 .B set_super_value -l
737 ¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤Æɽ¼¨¤Ç¤­¤ë¡£
738 .TP
739 .I show_super_stats [-h]
740 .\"O List the contents of the super block and the block group descriptors.  If the
741 .\"O .I -h
742 .\"O flag is given, only print out the superblock contents.
743 ¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¤È¥Ö¥í¥Ã¥¯¥°¥ë¡¼¥×¥Ç¥£¥¹¥¯¥ê¥×¥¿¤ÎÆâÍƤòɽ¼¨¤¹¤ë¡£
744 .I \-h
745 ¥Õ¥é¥°¤¬Í¿¤¨¤é¤ì¤ë¤È¡¢
746 ¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¤ÎÆâÍƤÀ¤±¤òɽ¼¨¤¹¤ë¡£
747 .TP
748 .I stat filespec
749 .\"O Display the contents of the inode structure of the inode
750 .\"O .IR filespec .
751 .I filespec
752 ¤Ç»ØÄꤷ¤¿ inode ¤Î inode ¹½Â¤ÂΤÎÆâÍƤòɽ¼¨¤¹¤ë¡£
753 .TP
754 .I testb block [count]
755 .\"O Test if the block number
756 .\"O .I block
757 .\"O is marked as allocated in the block bitmap.
758 .\"O If the optional argument 
759 .\"O .I count 
760 .\"O is present, then 
761 .\"O .I count
762 .\"O blocks starting at block number
763 .\"O .I block
764 .\"O will be tested.
765 ¥Ö¥í¥Ã¥¯ÈÖ¹æ
766 .I block
767 ¤¬¥Ö¥í¥Ã¥¯¥Ó¥Ã¥È¥Þ¥Ã¥×¤Ë¤ª¤¤¤Æ¥¢¥í¥±¡¼¥È¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤«¤É¤¦¤«Ä´¤Ù¤ë¡£
768 ¾Êά²Äǽ¤Ê°ú¿ô
769 .I count
770 ¤ò»ØÄꤹ¤ë¤È¡¢¥Ö¥í¥Ã¥¯ÈÖ¹æ
771 .I block
772 ¤«¤é»Ï¤Þ¤ë
773 .I count
774 ʬ¤Î¥Ö¥í¥Ã¥¯¤ò¸¡ºº¤¹¤ë¡£
775 .TP
776 .I testi filespec
777 .\"O Test if the inode 
778 .\"O .I filespec
779 .\"O is marked as allocated in the inode bitmap.
780 .I filespec
781 ¤Ç»ØÄꤷ¤¿ inode ¤¬
782 inode ¥Ó¥Ã¥È¥Þ¥Ã¥×¤Ë¤ª¤¤¤Æ¥¢¥í¥±¡¼¥È¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤«¤É¤¦¤«Ä´¤Ù¤ë¡£
783 .TP
784 .I unlink pathname
785 .\"O Remove the link specified by 
786 .\"O .I pathname 
787 .\"O to an inode.  Note this does not adjust the inode reference counts.
788 .I pathname
789 ¤Ç»ØÄꤷ¤¿¡¢¤¢¤ë inode ¤ò»Ø¤¹¥ê¥ó¥¯¤òºï½ü¤¹¤ë¡£
790 ¤Ê¤ª¤³¤ÎºÝ¡¢inode »²¾È¿ô¤ÏÊѹ¹¤·¤Ê¤¤¤³¤È¤ËÃí°Õ¡£
791 .TP
792 .I write source_file out_file
793 .\"O Create a file in the filesystem named
794 .\"O .IR out_file ,
795 .\"O and copy the contents of
796 .\"O .I source_file
797 .\"O into the destination file.
798 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÆâ¤Ë
799 .I out_file
800 ¤Ç»ØÄꤷ¤¿¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¡¢
801 .I source_file
802 ¤ÎÆâÍƤò¤½¤Î¥Õ¥¡¥¤¥ë¤Ë¥³¥Ô¡¼¤¹¤ë¡£
803 .\"O .SH ENVIRONMENT VARIABLES
804 .SH ´Ä¶­ÊÑ¿ô
805 .TP
806 .B DEBUGFS_PAGER, PAGER
807 .\"O The
808 .\"O .BR debugfs (8)
809 .\"O program always pipes the output of the some commands through a
810 .\"O pager program.  These commands include: 
811 .\"O .IR show_super_stats ,
812 .\"O .IR list_directory ,
813 .\"O .IR show_inode_info ,
814 .\"O .IR list_deleted_inodes ,
815 .\"O and
816 .\"O .IR htree_dump .
817 .BR debugfs (8)
818 ¤Ï¤¤¤¯¤Ä¤«¤Î¥³¥Þ¥ó¥É¤Î½ÐÎϤò¾ï¤Ë¥Ú¡¼¥¸¥ã¥×¥í¥°¥é¥à¤Ë¥Ñ¥¤¥×¤¹¤ë¡£
819 ¤½¤Î¤è¤¦¤Ê¥³¥Þ¥ó¥É¤È¤·¤Æ¤Ï¡¢
820 .IR show_super_stats ,
821 .IR list_directory ,
822 .IR show_inode_info ,
823 .IR list_deleted_inodes ,
824 .I htree_dump
825 ¤¬¤¢¤ë¡£
826 .\"O The specific pager can explicitly specified by the
827 .\"O .B DEBUGFS_PAGER
828 .\"O environment variable, and if it is not set, by the
829 .\"O .B PAGER
830 .\"O environment variable.  
831 ÆÃÄê¤Î¥Ú¡¼¥¸¥ã¤ò´Ä¶­ÊÑ¿ô
832 .B DEBUGFS_PAGER
833 ¤ÇÌÀ¼¨Åª¤Ë»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
834 ¤³¤Î´Ä¶­ÊÑ¿ô¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢´Ä¶­ÊÑ¿ô
835 .B PAGER
836 ¤Ç»ØÄꤵ¤ì¤ë¡£
837 .IP
838 .\"O Note that since a pager is always used, the 
839 .\"O .BR less (1)
840 .\"O pager is not particularly appropriate, since it clears the screen before
841 .\"O displaying the output of the command and clears the output the screen
842 .\"O when the pager is exited.  Many users prefer to use the 
843 .\"O .BR less (1)
844 .\"O pager for most purposes, which is why the 
845 .\"O .B DEBUGFS_PAGER 
846 .\"O environment variable is available to override the more general
847 .\"O .B PAGER
848 .\"O environment variable.
849 1 ¤Ä¤Î¥Ú¡¼¥¸¥ã¤¬¾ï¤Ë»È¤ï¤ì¤ë¤Î¤Ç¡¢
850 .BR less (1)
851 ¥Ú¡¼¥¸¥ã¤ÏÆäËŬ¤µ¤Ê¤¤ÅÀ¤ËÃí°Õ¤¹¤ë¤³¤È¡£
852 .BR less (1)
853 ¤Ï¥³¥Þ¥ó¥É¤Îɽ¼¨¤òɽ¼¨¤¹¤ëÁ°¤Ë¥¹¥¯¥ê¡¼¥ó¤ò¥¯¥ê¥¢¤·¤¿¤ê¡¢
854 ¥Ú¡¼¥¸¥ã¤¬½ªÎ»¤¹¤ë¤È¤­¤Ë¥¹¥¯¥ê¡¼¥ó¤Ø¤Î½ÐÎϤò¥¯¥ê¥¢¤·¤Æ¤·¤Þ¤¦¤«¤é¤Ç¤¢¤ë¡£
855 ¿¤¯¤Î¥æ¡¼¥¶¤Ï
856 .BR less (1)
857 ¥Ú¡¼¥¸¥ã¤ò¤¤¤í¤¤¤í¤ÊÌÜŪ¤Ë»È¤¦¤Î¤ò¹¥¤ó¤Ç¤¤¤ë¡£
858 ¤³¤ì¤¬´Ä¶­ÊÑ¿ô
859 .B DEBUGFS_PAGER 
860 ¤Ç¡¢¤è¤ê°ìÈÌŪ¤Ê´Ä¶­ÊÑ¿ô
861 .B PAGER
862 ¤ò¾å½ñ¤­¤Ç¤­¤ëÍýͳ¤Ç¤¢¤ë¡£
863 .\"O .SH AUTHOR
864 .SH Ãø¼Ô
865 .\"O .B debugfs
866 .\"O was written by Theodore Ts'o <tytso@mit.edu>.
867 .B debugfs
868 ¤Ï Theodore Ts'o <tytso@mit.edu> ¤Ë¤è¤Ã¤ÆºîÀ®¤µ¤ì¤¿¡£
869 .\"O .SH SEE ALSO
870 .SH ´ØÏ¢¹àÌÜ
871 .BR dumpe2fs (8),
872 .BR e2fsck (8),
873 .BR mke2fs (8)