1 =========================================================
3 Linux-2.6.31.1/Documentation/filesystems/ext4.txt ¤ÎÏÂÌõ
5 ËÝÌõÃÄÂΡ§ JF ¥×¥í¥¸¥§¥¯¥È < http://www.linux.or.jp/JF/ >
7 ËÝÌõ¼Ô ¡§ Seiji Kaneko < skaneko at mbn dot or dot jp >
8 ººÆÉ¼Ô : Hiroshi Suzuki <setter at reset dot jp>
9 =========================================================
16 #Ext4 is an an advanced level of the ext3 filesystem which incorporates
17 #scalability and reliability enhancements for supporting large filesystems
18 #(64 bit) in keeping with increasing disk capacities and state-of-the-art
19 #feature requirements.
20 ext4 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ï¡¢ext3 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¼¡À¤Âå¤Î¿å½à¤È¤·¤Æ¡¢¥Ç¥£¥¹
21 ¥¯ÍÆÎ̤ÎÁý²Ã¤Ëȼ¤¦µðÂç¤Ê¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à (64bit) ¤ò°·¤¦¤Î¤ËɬÍפʳÈÄ¥À¤È
22 ¿®ÍêÀ¤ò¸þ¾å¤·¡¢ºÇ¿·¤Îµ¡Ç½Í×µá¤Ë±þ¤¨¤¿¤â¤Î¤Ç¤¹¡£
24 #Mailing list: linux-ext4@vger.kernel.org
25 ¥á¡¼¥ê¥ó¥°¥ê¥¹¥È: linux-ext4@vger.kernel.org
26 #Web site: http://ext4.wiki.kernel.org
27 ¥¦¥§¥Ö¥µ¥¤¥È: http://ext4.wiki.kernel.org
30 #1. Quick usage instructions:
31 #===========================
35 #Note: More extensive information for getting started with ext4 can be
36 # found at the ext4 wiki site at the URL:
37 # http://ext4.wiki.kernel.org/index.php/Ext4_Howto
38 Ãíµ: ext4 ¤ò¤Ï¤¸¤á¤ë¤ËÅö¤¿¤Ã¤Æ¤Î¤µ¤é¤Ë¾ÜºÙ¤ÊÀâÌÀ¤Ï¡¢²¼µ URL ¤Î ext4 Wiki
40 http://ext4.wiki.kernel.org/index.php/Ext4_Howto
42 # - Compile and install the latest version of e2fsprogs (as of this
43 # writing version 1.41.3) from:
44 - ºÇ¿·¤Î e2fsprogs (¸½ºß¥Ð¡¼¥¸¥ç¥ó 1.41.3) ¤ò°Ê²¼¤«¤éÆþ¼ê¤·¡¢¥³¥ó¥Ñ¥¤¥ë¡¦
45 ¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£
47 http://sourceforge.net/project/showfiles.php?group_id=2406
52 ftp://ftp.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/
54 # or grab the latest git repository from:
55 ¤Þ¤¿¤Ï°Ê²¼¤«¤éºÇ¿·¤Î git ¥ê¥Ý¥¸¥È¥ê¤òÆþ¼ê¤·¤Æ¤¯¤À¤µ¤¤¡£
57 git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
59 # - Note that it is highly important to install the mke2fs.conf file
60 # that comes with the e2fsprogs 1.41.x sources in /etc/mke2fs.conf. If
61 # you have edited the /etc/mke2fs.conf file installed on your system,
62 # you will need to merge your changes with the version from e2fsprogs
64 - e2fsprogs 1.41.x ¥½¡¼¥¹ÉÕ°¤Î mke2fs.conf ¥Õ¥¡¥¤¥ë¤ò /etc/mke2fs.conf
65 ¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤³¤È¤Ï¤È¤Æ¤â½ÅÍפǤ¹¡£¥·¥¹¥Æ¥à¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¢¤ë
66 /etc/mke2fs.conf ¥Õ¥¡¥¤¥ë¤ò¤¹¤Ç¤ËÊÔ½¸¤·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢e2fsprogs 1.41.x
67 ¤ÎÈǤΤâ¤Î¤Ë´û¸¤Î½¤Àµ¤ò¥Þ¡¼¥¸¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
69 # - Create a new filesystem using the ext4 filesystem type:
70 - ext4 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥¿¥¤¥×¤òÍѤ¤¤Æ¿·µ¬¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òºîÀ®¤·¤Þ¤¹¡£
72 # mke2fs -t ext4 /dev/hda1
74 # Or to configure an existing ext3 filesystem to support extents:
75 ¤Þ¤¿¤Ï¡¢´û¸¤Î ext3 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥¨¥¯¥¹¥Æ¥ó¥È¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦Àß
78 # tune2fs -O extents /dev/hda1
80 # If the filesystem was created with 128 byte inodes, it can be
81 # converted to use 256 byte for greater efficiency via:
82 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬ 128 ¥Ð¥¤¥È inode ¤ÇºîÀ®¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¸úΨ¤Î¤¿¤á
83 256 ¥Ð¥¤¥È¤ò»ÈÍѤ¹¤ë¤è¤¦°Ê²¼¤Î¤è¤¦¤ËÊÑ´¹¤Ç¤¤Þ¤¹¡£
85 # tune2fs -I 256 /dev/hda1
87 # (Note: we currently do not have tools to convert an ext4
88 # filesystem back to ext3; so please do not do try this on production
90 (Ãí°Õ: ¸½ºß¤Î¤È¤³¤í ext4 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò ext3 ¤ËÌ᤹¥Ä¡¼¥ë¤ÏÄó¶¡
91 ¤·¤Æ¤¤¤Þ¤»¤ó¡£¤³¤Î¤¿¤á¡¢¶È̳ÍøÍѤ·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ç»î¤µ¤Ê¤¤¤Ç¤¯
97 # mount -t ext4 /dev/hda1 /wherever
99 # - When comparing performance with other filesystems, it's always
100 # important to try multiple workloads; very often a subtle change in a
101 # workload parameter can completely change the ranking of which
102 # filesystems do well compared to others. When comparing versus ext3,
103 # note that ext4 enables write barriers by default, while ext3 does
104 # not enable write barriers by default. So it is useful to use
105 # explicitly specify whether barriers are enabled or not when via the
106 # '-o barriers=[0|1]' mount option for both ext3 and ext4 filesystems
107 # for a fair comparison. When tuning ext3 for best benchmark numbers,
108 # it is often worthwhile to try changing the data journaling mode; '-o
109 # data=writeback,nobh' can be faster for some workloads. (Note
110 # however that running mounted with data=writeback can potentially
111 # leave stale data exposed in recently written files in case of an
112 # unclean shutdown, which could be a security exposure in some
113 # situations.) Configuring the filesystem with a large journal can
114 # also be helpful for metadata-intensive workloads.
115 - ¾¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤È¤ÎÀǽÈæ³Ó¤ÎºÝ¤Ï¡¢Ê£¿ô¤ÎÉé²Ù´Ä¶¤Ç»î¤¹¤³¤È¤¬¾ï¤Ë
116 ½ÅÍפǤ¹¡£¥ï¡¼¥¯¥í¡¼¥É¥Ñ¥é¥á¡¼¥¿¤Î¤ï¤º¤«¤ÊÊѹ¹¤¬¡¢¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¾
117 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤È¤ÎÈæ³Óɾ²Á¤Å¤±¤ò¤Þ¤Ã¤¿¤¯ÊѤ¨¤Æ¤·¤Þ¤¦¤³¤È¤¬ÉÑÈˤ˵¯¤³
118 ¤ê¤Þ¤¹¡£ÆÃ¤Ë ext3 ¤È¤ÎÈæ³Ó¤Î¾ì¹ç¤Ï¡¢ext4 ¤¬½ñ¤¹þ¤ß¥Ð¥ê¥¢¤òɸ½à¤Ç͸ú
119 ²½¤·¤Æ¤ª¤ê¡¢ext3 ¤Ïɸ½à¤Ç¤Ï¥é¥¤¥È¥Ð¥ê¥¢¤ò͸ú¤Ë¤·¤Æ¤Ï¤¤¤Ê¤¤¤³¤È¤Ëα°Õ
120 ¤·¤Æ¤¯¤À¤µ¤¤¡£½¾¤Ã¤Æ¡¢¸øÊ¿¤ÊÈæ³Ó¤Î¤¿¤á¤Ë¤Ï¥é¥¤¥È¥Ð¥ê¥¢¤Î͸ú¡¦Ìµ¸ú¤òÌÀ
121 ¼¨Åª¤Ë¡¢ext3 ¤È ext4 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤È¤â '-o barriers=[0|1]' ¤ò»È¤Ã¤Æ
122 »ØÄꤹ¤ë¤Î¤¬Ìò¤ËΩ¤Ä¤Ç¤·¤ç¤¦¡£ext4 ¤òºÇ¹â¤Î¥Ù¥ó¥Á¥Þ¡¼¥¯·ë²Ì¤È¤Ê¤ë¤è¤¦
123 ¤Ë¥Á¥å¡¼¥Ë¥ó¥°¤¹¤ë¾ì¹ç¡¢¥Ç¡¼¥¿¥¸¥ã¡¼¥Ê¥ê¥ó¥°¥â¡¼¥É¤ÎÊѹ¹¤ò»î¤¹¤³¤È¤Ë¤Ï
124 ²ÁÃͤ¬¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢°ìÉô¤Î¥Ù¥ó¥Á¥Þ¡¼¥¯¤Ç¤Ï
125 '-o data=writeback,nobh' ¤Ï¾¤è¤ê¹â®¤È¤Ê¤ë¤Ç¤·¤ç¤¦ (Ãí°Õ¤È¤·¤Æ¡¢
126 data=writeback ¥â¡¼¥É¤Ç¥Þ¥¦¥ó¥È±¿ÍѤ·¤Æ¤¤¤ë¾ì¹ç¡¢¥¯¥ê¡¼¥ó¤Ç¤Ê¤¤¥·¥ã¥Ã
127 ¥È¥À¥¦¥ó¤ÇľÁ°¤Ë½ñ¤¤¤¿¥Ç¡¼¥¿¤¬¥´¥ß¤È¤·¤Æ»Ä¤ë²ÄǽÀ¤¬¤¢¤ë¤¿¤á¡¢¾õ¶·¤Ë¤è
128 ¤Ã¤Æ¤Ï¥»¥¥å¥ê¥Æ¥£Ì̤ǤξðÊóϳ±Ì¤Î²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹)¡£¥¸¥ã¡¼¥Ê¥ë¤òÂç¤
129 ¤¯¼è¤ë¤è¤¦ÀßÄꤹ¤ë¤³¤È¤â¡¢metadata ¤ò¿ÍѤ¹¤ëÉé²Ù¤Ç¤ÏÀǽ¤Î½õ¤±¤Ë¤Ê¤ê
131 <!-- ext3 ¤È½ñ¤«¤ì¤Æ¤¤¤ë¤Î¤Ï¤É¤¦¸«¤Æ¤â¸íµ¤Ê¤Î¤Ç¡¢Ìõʸ¤Ç¤Ï½¤Àµ -->
138 #2.1 Currently available
141 #* ability to use filesystems > 16TB (e2fsprogs support not available yet)
142 #* extent format reduces metadata overhead (RAM, IO for access, transactions)
143 #* extent format more robust in face of on-disk corruption due to magics,
144 #* internal redundancy in tree
145 #* improved file allocation (multi-block alloc)
146 #* lift 32000 subdirectory limit imposed by i_links_count[1]
147 #* nsec timestamps for mtime, atime, ctime, create time
148 #* inode version field on disk (NFSv4, Lustre)
149 #* reduced e2fsck time via uninit_bg feature
150 #* journal checksumming for robustness, performance
151 #* persistent file preallocation (e.g for streaming media, databases)
152 #* ability to pack bitmaps and inode tables into larger virtual groups via the
154 #* large file support
155 #* Inode allocation using large virtual block groups via flex_bg
156 #* delayed allocation
157 #* large block (up to pagesize) support
158 #* efficent new ordered mode in JBD2 and ext4(avoid using buffer head to force
160 * 16TB Ķ¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÎÍøÍÑ (e2fsprogs ¤Ç¤Ï¤Þ¤À¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤»¤ó)
161 * ¥á¥¿¥Ç¡¼¥¿¥ª¡¼¥Ð¥Ø¥Ã¥É (RAM, ¥¢¥¯¥»¥¹ I/O, ¥È¥é¥ó¥¶¥¯¥·¥ç¥ó) ¤ò¸º¤é¤¹¥¨¥¯
163 * magic ¤Ë¤è¤ë¥Ç¥£¥¹¥¯¾å¤Î¥Ç¡¼¥¿Ç˲õ¤ËÂФ·¤Æ¡¢¤è¤ê´è¶¯¤Ê¥¨¥¯¥¹¥Æ¥ó¥È¥Õ¥©¡¼
166 * ¥Õ¥¡¥¤¥ë³ä¤êÅö¤Æ¤Î²þÁ± (Ê£¿ô¥Ö¥í¥Ã¥¯¥¢¥í¥±¡¼¥·¥ç¥ó)
167 * i_links_count[1] ¤Ë¤è¤ë¡¢32000 ¤Î¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¿ôÀ©¸Â¤ÎűÇÑ
168 * mtime, atime, ctime, create time(ºîÀ®»þ¹ï) ¤Ë nsec ñ°Ì¤Î¥¿¥¤¥à¥¹¥¿¥ó¥×
169 * ¥Ç¥£¥¹¥¯¾å¤Ç¤Î inode ¥Ð¡¼¥¸¥ç¥ó¥Õ¥£¡¼¥ë¥É (NFSv4¡¢Lustre)
170 * uninit_bg µ¡Ç½¤Ë¤è¤ë e2fsck »þ´Ö¤Îºï¸º
171 * ´è·ò¤µ¤ÈÀǽ¤ò¸þ¾å¤µ¤»¤ë¤¿¤á¤Î¥¸¥ã¡¼¥Ê¥ë¥Á¥§¥Ã¥¯¥µ¥àµ¡Ç½
172 * »ý³¥Õ¥¡¥¤¥ë»öÁ°³ä¤êÅö¤Æ (¥¹¥È¥ê¡¼¥ß¥ó¥°¥á¥Ç¥£¥¢¤ä¥Ç¡¼¥¿¥Ù¡¼¥¹¸þ¤±)
173 * ¥Ó¥Ã¥È¥Þ¥Ã¥×¤È inode ¥Æ¡¼¥Ö¥ë¤ò¡¢flex_bg µ¡Ç½¤ò»È¤Ã¤ÆÂ礤ʲ¾ÁÛ¥°¥ë¡¼¥×¤Ë
175 * µðÂç¥Õ¥¡¥¤¥ë¥µ¥Ý¡¼¥È
176 * flex_bg µ¡Ç½¤Ë¤è¤ë¡¢Â礤ʲ¾ÁÛ¥Ö¥í¥Ã¥¯¥°¥ë¡¼¥×¤òÍѤ¤¤Æ inode ¤ò³ä¤êÅö¤Æ¤ë
179 * µðÂç¥Ö¥í¥Ã¥¯ (¥Ú¡¼¥¸¥µ¥¤¥º¤Þ¤Ç) ¤Î¥µ¥Ý¡¼¥È
180 * JBD2 ¤È ext4 ¤Ç¤Î¸úΨŪ¤Ê¿· ordered ¥â¡¼¥É (½ç½øÊݾڤΤ¿¤á¤Ë¥Ð¥Ã¥Õ¥¡¥Ø¥Ã
181 ¥É¤òÍѤ¤¤ë¤Î¤òÈò¤±¤ë)
183 #[1] Filesystems with a block size of 1k may see a limit imposed by the
184 #directory hash tree having a maximum depth of two.
185 [1] ¥Ö¥í¥Ã¥¯¥µ¥¤¥º 1k ¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ç¤Ï¡¢¥Ç¥£¥ì¥¯¥È¥ê¥Ï¥Ã¥·¥å¥Ä¥ê¡¼¤¬ºÇÂç
186 ¿¼¤µ 2 ¤Ç¤¢¤ë¤³¤È¤«¤éÍè¤ëÀ©¸Â¤ËÀ©Ì󤵤ì¤Þ¤¹¡£
188 #2.2 Candidate features for future inclusion
189 2.2 ¾ÍèÄɲøõÊä¤Ëµó¤¬¤Ã¤Æ¤¤¤ëµ¡Ç½
191 #* Online defrag (patches available but not well tested)
192 * ¥ª¥ó¥é¥¤¥ó¥Ç¥Õ¥é¥° (¥Ñ¥Ã¥Á¤Ï¤¢¤ê¤Þ¤¹¤¬¡¢½½Ê¬¤Ë¤Ï¥Æ¥¹¥È¤µ¤ì¤Æ¤¤¤Þ¤»¤ó)
193 #* reduced mke2fs time via lazy itable initialization in conjuction with
194 # the uninit_bg feature (capability to do this is available in e2fsprogs
195 # but a kernel thread to do lazy zeroing of unused inode table blocks
196 # after filesystem is first mounted is required for safety)
197 * itable ÃÙ±ä½é´ü²½¤È uninit_bg µ¡Ç½¤òÁȤ߹ç¤ï¤»¤¿ mke2fs »þ´Ö¤Îû½Ì (¤³¤ì
198 ¤ò¼Â¸½¤¹¤ëµ¡Ç½¤Ï e2fsprogs ¤Ë¤Ï´û¤ËÁȤ߹þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à
199 ¤ÎºÇ½é¤Î¥Þ¥¦¥ó¥È¸å¤Ë̤»ÈÍÑ inode ¥Æ¡¼¥Ö¥ë¥Ö¥í¥Ã¥¯¤òÃÙ±ä½é´ü²½¤¹¤ë¤¿¤á¤Î¥«
200 ¡¼¥Í¥ë¥¹¥ì¥Ã¥É¤¬¡¢°ÂÁ´¤ÊÁàºî¤Î¤¿¤á¤ËɬÍפǤ¹)¡£
202 #There are several others under discussion, whether they all make it in is
203 #partly a function of how much time everyone has to work on them. Features like
204 #metadata checksumming have been discussed and planned for a bit but no patches
205 #exist yet so I'm not sure they're in the near-term roadmap.
206 ¤³¤ì°Ê³°¤Ë¤â´ö¤Ä¤«¤Îµ¡Ç½¤¬¡¢ÁȤ߹þ¤ß¤Ë´Ø¤·¤ÆµÄÏÀÃæ¤Ç¤¹¡£µÄÏÀ¤Î·ë²Ì¤Ï¤½¤Îµ¡Ç½¤Ç
207 ¤³¤ì¤«¤éɬÍפʺî¶È»þ´Ö (¤Î¸«Ä̤·) ¤Ë°Í¸¤¹¤ë¤Ç¤·¤ç¤¦¡£¥á¥¿¥Ç¡¼¥¿¥Á¥§¥Ã¥¯¥µ¥à¤Î
208 ¤è¤¦¤Êµ¡Ç½¤ÏµÄÏÀ¤µ¤ì¤Æ¿¾¯¤Î·×²è¤â¤¢¤ê¤Þ¤¹¤¬¡¢¸½»þÅÀ¤Ç¤Ï¥Ñ¥Ã¥Á¤¬¤Ê¤¯¡¢¶á¤¤¾Íè
209 ¤Î¥í¡¼¥É¥Þ¥Ã¥×¤Ë¸½¤ï¤ì¤ë¤«¤É¤¦¤«¤ÏÄ꤫¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
211 #The big performance win will come with mballoc, delalloc and flex_bg
212 #grouping of bitmaps and inode tables. Some test results available here:
213 ¥Ó¥Ã¥È¥Þ¥Ã¥×¤È inode ¥Æ¡¼¥Ö¥ë¤Ëmballoc¡¢delalloc ¤È¡¢flex_bg ¥°¥ë¡¼¥Ô¥ó¥°
214 ¤òƳÆþ¤·¤¿¤³¤È¤Ë¤è¤êÂ礤ÊÀǽ²þÁ±¤¬¼Â¸½¤µ¤ì¤Æ¤¤¤Þ¤¹¡£Àǽ¬Äê·ë²Ì¤Î°ìÉô¤Ï
215 °Ê²¼¤Ç¸ø³«¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
217 - http://www.bullopensource.org/ext4/20080818-ffsb/ffsb-write-2.6.27-rc1.html
218 - http://www.bullopensource.org/ext4/20080818-ffsb/ffsb-readwrite-2.6.27-rc1.html
222 3. ¥Þ¥¦¥ó¥È¥ª¥×¥·¥ç¥ó
225 #When mounting an ext4 filesystem, the following option are accepted:
227 ext4 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥Þ¥¦¥ó¥È»þ¡¢°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤¬»È¤¨¤Þ¤¹¡£
230 #ro Mount filesystem read only. Note that ext4 will
231 # replay the journal (and thus write to the
232 # partition) even when mounted "read only". The
233 # mount options "ro,noload" can be used to prevent
234 # writes to the filesystem.
235 ro ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥ê¡¼¥É¥ª¥ó¥ê¡¼¤Ç¥Þ¥¦¥ó¥È¤¹¤ë¡£ext4
236 ¤Ï¥ê¡¼¥É¥ª¥ó¥ê¡¼¤Ç¥Þ¥¦¥ó¥È¤·¤¿¾ì¹ç¤Ë¤â¥¸¥ã¡¼¥Ê¥ë¤Î¥ê
237 ¥×¥ì¥¤¤ò¹Ô¤¦ (½¾¤Ã¤Æ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ë½ñ¤¹þ¤ß¤ò¹Ô¤¦)
238 ¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¥Þ¥¦¥ó¥È¥ª¥×¥·¥ç¥ó
239 "ro,noload" ¤ò¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ø¤Î½ñ¤¹þ¤ß¤òÁ˻ߤ¹
240 ¤ë¤¿¤á¤Ë»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
242 #journal_checksum Enable checksumming of the journal transactions.
243 # This will allow the recovery code in e2fsck and the
244 # kernel to detect corruption in the kernel. It is a
245 # compatible change and will be ignored by older kernels.
246 journal_checksum ¥¸¥ã¡¼¥Ê¥ë¥È¥é¥ó¥¶¥¯¥·¥ç¥ó»þ¤Ë¥Á¥§¥Ã¥¯¥µ¥à¤ò͸ú¤Ë¤·
247 ¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê e2fsck ¤Î¥ê¥«¥Ð¥ê¥³¡¼¥É¤ò͸ú¤Ë¤·¡¢
248 ¥«¡¼¥Í¥ëÆâ¤Ç¤ÎÇ˲õ¤ò¸¡½Ð¤Ç¤¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£¤³¤ì¤Ï¸ß
249 ´¹À¤ò»ý¤Ã¤¿Êѹ¹¤Ç¡¢½¾Íè¤Î¥«¡¼¥Í¥ë¤Ç¤Ïñ¤Ë̵»ë¤µ¤ì¤Þ
252 #journal_async_commit Commit block can be written to disk without waiting
253 # for descriptor blocks. If enabled older kernels cannot
254 # mount the device. This will enable 'journal_checksum'
256 journal_async_commit ¥Ç¥£¥¹¥¯¥ê¥×¥¿¥Ö¥í¥Ã¥¯¤Î½ñ¤¹þ¤ß¤òÂÔ¤¿¤º¤Ë¡¢¥³¥ß¥Ã¥È
257 ¤·¤¿¥Ö¥í¥Ã¥¯¤Î¥Ç¥£¥¹¥¯¤Ø¤Î½ñ¤¹þ¤ß¤òµö¤·¤Þ¤¹¡£Í¸ú¤Ë
258 ¤·¤Æ¤¤¤ë¾ì¹ç¡¢½¾Íè¤Î¥«¡¼¥Í¥ë¤Ç¤Ï¥Ç¥Ð¥¤¥¹¤ò¥Þ¥¦¥ó¥È¤Ç
259 ¤¤Þ¤»¤ó¡£¤³¤ì¤Ë¤è¤ê¡¢ÆâÉôŪ¤Ë journal_checksum ¤¬
262 #journal=update Update the ext4 file system's journal to the current
264 journal=update ext4 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥¸¥ã¡¼¥Ê¥ë¤ò¸½ºß¤Î·Á¼°¤Ë¥¢¥Ã
267 #journal_dev=devnum When the external journal device's major/minor numbers
268 # have changed, this option allows the user to specify
269 # the new journal location. The journal device is
270 # identified through its new major/minor numbers encoded
272 journal_dev=devnum ³°Éô¥¸¥ã¡¼¥Ê¥ë¥Ç¥Ð¥¤¥¹¤Î major/minor Èֹ椬ÊѲ½¤·¤¿
273 ¾ì¹ç¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤Æ¿·¤·¤¤¥¸¥ã¡¼¥Ê¥ë¤Î°ÌÃÖ¤ò
274 »ØÄꤷ¤Þ¤¹¡£¥¸¥ã¡¼¥Ê¥ë¥Ç¥Ð¥¤¥¹¤Ï devnum ·Á¼°¤Ç¥¨¥ó¥³
275 ¡¼¥É¤µ¤ì¤¿ major/minor ÈÖ¹æ¤Ç»ØÄꤵ¤ì¤Þ¤¹¡£
277 #noload Don't load the journal on mounting. Note that
278 # if the filesystem was not unmounted cleanly,
279 # skipping the journal replay will lead to the
280 # filesystem containing inconsistencies that can
281 # lead to any number of problems.
282 noload ¥Þ¥¦¥ó¥È»þ¤Ë¥¸¥ã¡¼¥Ê¥ë¤ò¥í¡¼¥É¤·¤Þ¤»¤ó¡£¤â¤·¥Õ¥¡¥¤¥ë¥·¥¹
283 ¥Æ¥à¤¬¥¯¥ê¡¼¥ó¤Ë¥¢¥ó¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢¥¸
284 ¥ã¡¼¥Ê¥ë¥ê¥×¥ì¥¤¤òÈô¤Ð¤¹¤³¤È¤Ë¤è¤ê¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ËÉÔÀ°
285 ¹ç¤¬È¯À¸¤¹¤ë¤Ç¤·¤ç¤¦¤·¡¢¤½¤Î·ë²ÌÍÍ¡¹¤ÊÌäÂ꤬µ¯¤¤ë¤Ç¤·¤ç
288 #data=journal All data are committed into the journal prior to being
289 # written into the main file system.
290 data=journal Á´¥Ç¡¼¥¿¤Ï¡¢¥á¥¤¥ó¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë½ñ¤¹þ¤àÁ°¤Ë¡¢
291 ¥¸¥ã¡¼¥Ê¥ë¤Ë¥³¥ß¥Ã¥È¤µ¤ì¤Þ¤¹¡£
293 #data=ordered (*) All data are forced directly out to the main file
294 # system prior to its metadata being committed to the
296 data=ordered (*) Á´¥Ç¡¼¥¿¤Ï¡¢¤½¤Î¥á¥¿¥Ç¡¼¥¿¤¬¥¸¥ã¡¼¥Ê¥ë¤Ë¥³¥ß¥Ã¥È¤µ¤ì
297 ¤ëÁ°¤Ë¡¢¥á¥¤¥ó¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ËľÀܽÐÎϤµ¤ì¤Þ¤¹¡£
299 #data=writeback Data ordering is not preserved, data may be written
300 # into the main file system after its metadata has been
301 # committed to the journal.
302 data=writeback ¥Ç¡¼¥¿¤Î½ç½ø¤ÏÊݸ¤µ¤ì¤Þ¤»¤ó¡£¥Ç¡¼¥¿¤Ï¡¢¤½¤Î¥á¥¿¥Ç¡¼
303 ¥¿¤¬¥¸¥ã¡¼¥Ê¥ë¤Ë¥³¥ß¥Ã¥È¤µ¤ì¤¿¤¢¤È¤Ë¡¢¥á¥¤¥ó¥Õ¥¡¥¤¥ë
304 ¥·¥¹¥Æ¥à¤Ë½ñ¤¹þ¤Þ¤ì¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
306 #commit=nrsec (*) Ext4 can be told to sync all its data and metadata
307 # every 'nrsec' seconds. The default value is 5 seconds.
308 # This means that if you lose your power, you will lose
309 # as much as the latest 5 seconds of work (your
310 # filesystem will not be damaged though, thanks to the
311 # journaling). This default value (or any low value)
312 # will hurt performance, but it's good for data-safety.
313 # Setting it to 0 will have the same effect as leaving
314 # it at the default (5 seconds).
315 # Setting it to very large values will improve
317 commit=nrsec (*) Ext4 ¤Ï¥Ç¡¼¥¿¤È¥á¥¿¥Ç¡¼¥¿¤ò¡¢'nrsec' ÉÃËè¤ËƱ´ü¤Ç¤¤Þ
318 ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï¡¢5 ÉäǤ¹¡£¤³¤ì¤Ï¡¢ÅŸ»¤¬ÀÚ¤ì¤Æ¤·¤Þ¤Ã
319 ¤¿»þ¡¢ºÇ¸å¤Î 5 Éô֤κî¶ÈÆâÍƤ¬¼º¤ï¤ì¤Æ¤·¤Þ¤¦¤³¤È¤ò°Õ
320 Ì£¤·¤Þ¤¹ (¤·¤«¤·¡¢¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ï¡¢¥¸¥ã¡¼¥Ê¥ê¥ó¥°¤Î
321 ¤ª¤«¤²¤ÇÇ˲õ¤µ¤ì¤Ê¤¤¤Ç¤·¤ç¤¦)¡£
322 ¤³¤Î¥Ç¥Õ¥©¥ë¥ÈÃÍ (¤Þ¤¿¤Ï¡¢¤è¤ê¾®¤µ¤¤ÃÍ) ¤Ï¡¢Àǽ¤Ë±Æ¶Á
323 ¤òÍ¿¤¨¤Þ¤¹¤¬¡¢¥Ç¡¼¥¿¤Î°ÂÁ´À¤Ï¸þ¾å¤·¤Þ¤¹¡£0 ¤Ë¤·¤¿¾ì
324 ¹ç¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Î 5 Éäˤ·¤¿¤Î¤ÈƱ¤¸¸ú²Ì¤È¤Ê¤ê¤Þ¤¹¡£
325 ¤È¤Æ¤âÂ礤ÊÃͤˤ¹¤ë¤È¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤¬¸þ¾å¤·¤Þ¤¹¡£
327 #barrier=<0|1(*)> This enables/disables the use of write barriers in
328 #barrier(*) the jbd code. barrier=0 disables, barrier=1 enables.
329 #nobarrier This also requires an IO stack which can support
330 # barriers, and if jbd gets an error on a barrier
331 # write, it will disable again with a warning.
332 # Write barriers enforce proper on-disk ordering
333 # of journal commits, making volatile disk write caches
334 # safe to use, at some performance penalty. If
335 # your disks are battery-backed in one way or another,
336 # disabling barriers may safely improve performance.
337 # The mount options "barrier" and "nobarrier" can
338 # also be used to enable or disable barriers, for
339 # consistency with other ext4 mount options.
340 barrier=<0|1(*)> jbd ¥³¡¼¥É¤Ç¤Î¥é¥¤¥È¥Ð¥ê¥¢¤ÎÍøÍѤò͸ú/̵¸ú¤Ë¤·¤Þ¤¹¡£
341 barrier(*) barrier=0 ¤Ï̵¸ú²½¤·¡¢barrier=1 ¤Ï͸ú¤Ë¤·¤Þ¤¹¡£¤³
342 nobarrier ¤Î¥é¥¤¥È¥Ð¥ê¥¢¤Î͸ú²½¤Î¤¿¤á¤Ë¤Ï¥Ð¥ê¥¢¤ò͸ú²½¤·¤¿
343 IO ¥¹¥¿¥Ã¥¯¤¬É¬Íפǡ¢¤µ¤é¤Ë jbd ¤¬¥Ð¥ê¥¢¥é¥¤¥È»þ¤Ë
344 ¥¨¥é¡¼¤ò¼õ¤±¤¿¤Ê¤é¤Ð·Ù¹ð¤È¤È¤â¤Ë̵¸ú¤Ë¤â¤É¤ê¤Þ¤¹¡£¥é
345 ¥¤¥È¥Ð¥ê¥¢¤Ï¿¾¯¤ÎÀǽ¤Îµ¾À·¤Ë¤è¤ê¡¢Å¬Àڤʥǥ£¥¹¥¯¾å
346 ¤Î¥¸¥ã¡¼¥Ê¥ë¥³¥ß¥Ã¥È¤Î½ç½ø¤ò¼Â¸½¤·¡¢´øȯÀ¤Î¥Ç¥£¥¹¥¯
347 ¥é¥¤¥È¥¥ã¥Ã¥·¥å¤ò°ÂÁ´¤Ë»ÈÍѤǤ¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
348 ¤â¤·»ÈÍѤ·¤Æ¤¤¤ë¥Ç¥£¥¹¥¯¥³¥ó¥È¥í¡¼¥é¤¬ÅÅÃӤǥХå¯
349 ¥¢¥Ã¥×¤µ¤ì¤Æ¤¤¤ë¤Ê¤É¤Î¾ì¹ç¤Ë¤Ï¡¢¥Ð¥ê¥¢¤ò̵¸ú²½¤¹¤ë
350 ¤³¤È¤Ë¤è¤ê°ÂÁ´¤ËÀǽ¤ò¸þ¾å¤Ç¤¤Þ¤¹¡£
351 ¥Þ¥¦¥ó¥È¥ª¥×¥·¥ç¥ó "barrier" ¤È "nobarrier" ¤ò¥Ð¥ê
352 ¥¢¤Î͸ú̵¸ú¤ò»ØÄꤹ¤ë¤¿¤á¤ËÍѤ¤¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤³
353 ¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢Â¾¤Î ext4 ¥Þ¥¦¥ó¥È¥ª¥×¥·¥ç¥ó¤È¤Î°ì´Ó
354 À°Ý»ý¤Î¤¿¤áÄ󶡤µ¤ì¤Æ¤¤¤Þ¤¹¡£
356 #inode_readahead=n This tuning parameter controls the maximum
357 # number of inode table blocks that ext4's inode
358 # table readahead algorithm will pre-read into
359 # the buffer cache. The default value is 32 blocks.
360 inode_readahead=n ¤³¤Î¥Á¥å¡¼¥Ë¥ó¥°¥Ñ¥é¥á¡¼¥¿¤Ï¡¢ext4 inode ¥Æ¡¼¥Ö¥ëÀèÆÉ
361 ¤ß¥¢¥ë¥´¥ê¥º¥à¤¬¥Ð¥Ã¥Õ¥¡¥¥ã¥Ã¥·¥å¤ËÀèÆɤߤ¹¤ë¡¢inode
362 ¥Æ¡¼¥Ö¥ë¥Ö¥í¥Ã¥¯¤Î¿ô¤ÎºÇÂçÃͤòÀ©¸æ¤·¤Þ¤¹¡£´ûÄêÃÍ¤Ï 32
365 #orlov (*) This enables the new Orlov block allocator. It is
366 # enabled by default.
367 orlov (*) ¿·¤·¤¤¡¢Orlov ¥Ö¥í¥Ã¥¯¥¢¥í¥±¡¼¥¿¤ò͸ú¤Ë¤·¤Þ¤¹¡£¥Ç¥Õ
370 #oldalloc This disables the Orlov block allocator and enables
371 # the old block allocator. Orlov should have better
372 # performance - we'd like to get some feedback if it's
373 # the contrary for you.
374 oldalloc Orlov ¥Ö¥í¥Ã¥¯¥¢¥í¥±¡¼¥¿¤ò̵¸ú¤Ë¤·¤Æ¡¢¸Å¤¤¥Ö¥í¥Ã¥¯¥¢
375 ¥í¥±¡¼¥¿¤ò͸ú¤Ë¤·¤Þ¤¹¡£Orlov ¤ÎÊý¤¬Àǽ¤¬Îɤ¤¤Ï¤º¤Ç¤¹¤¬¡¢
376 ¤â¤·¡¢µÕ¸ú²Ì¤Ê¤é¡¢ÃΤ餻¤Æ¤¯¤À¤µ¤¤¡£
378 #user_xattr Enables Extended User Attributes. Additionally, you
379 # need to have extended attribute support enabled in the
380 # kernel configuration (CONFIG_EXT4_FS_XATTR). See the
381 # attr(5) manual page and http://acl.bestbits.at/ to
382 # learn more about extended attributes.
383 user_xattr POSIX ³Èĥ°À¤ò͸ú¤Ë¤·¤Þ¤¹¡£Í¸ú¤Ë¤¹¤ë¤Ë¤Ï¡¢¤µ¤é¤Ë¥«¡¼
384 ¥Í¥ëÀßÄê¤Ç³Èĥ°À¤Î¥µ¥Ý¡¼¥È (CONFIG_EXT4_FS_XATTR) ¤ò
385 ÁȤ߹þ¤àɬÍפ¬¤¢¤ê¤Þ¤¹¡£
386 POSIX ³Èĥ°À¤Î¾ÜºÙ¤ò³Ø¤Ö¤Ë¤Ï¡¢attr(5) ¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼
387 ¥¸¤È http://acl.bestbits.at ¤ò¸«¤Æ¤¯¤À¤µ¤¤¡£
389 #nouser_xattr Disables Extended User Attributes.
390 nouser_xattr POSIX ³Èĥ°À ¤ò̵¸ú¤Ë¤·¤Þ¤¹¡£
392 #acl Enables POSIX Access Control Lists support.
393 # Additionally, you need to have ACL support enabled in
394 # the kernel configuration (CONFIG_EXT4_FS_POSIX_ACL).
395 # See the acl(5) manual page and http://acl.bestbits.at/
396 # for more information.
397 acl POSIX ¥¢¥¯¥»¥¹À©¸æ¥ê¥¹¥È (POSIX ACL) ¥µ¥Ý¡¼¥È¤ò͸ú¤Ë
398 ¤·¤Þ¤¹¡£Í¸ú¤Ë¤¹¤ë¤Ë¤Ï¡¢¤µ¤é¤Ë¥«¡¼¥Í¥ëÀßÄê¤Ç ACL ¤Î¥µ¥Ý
399 ¡¼¥È (CONFIG_EXT4_FS_POSIX_ACL) ¤òÁȤ߹þ¤àɬÍפ¬¤¢¤ê
401 ACL ¤Î¾ÜºÙ¤Ï¡¢acl(5) ¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤È
402 http://acl.bestbits.at ¤ò¸«¤Æ¤¯¤À¤µ¤¤¡£
404 #noacl This option disables POSIX Access Control List
406 noacl POSIX ¥¢¥¯¥»¥¹À©¸æ¥ê¥¹¥È(POSIX ACL) ¤ò̵¸ú¤Ë¤·¤Þ¤¹¡£
412 #bsddf (*) Make 'df' act like BSD.
413 #minixdf Make 'df' act like Minix.
414 bsddf (*) 'df' ¤ÎÆ°ºî¤ò BSD ¤ÈƱÍͤˤ·¤Þ¤¹¡£
415 minixdf 'df' ¤ÎÆ°ºî¤ò Minix ¤ÈƱÍͤˤ·¤Þ¤¹¡£
417 #debug Extra debugging information is sent to syslog.
418 debug ÄɲåǥХå°¾ðÊó¤ò syslog ¤ËÁ÷¤ê¤Þ¤¹¡£
420 #abort Simulate the effects of calling ext4_abort() for
421 # debugging purposes. This is normally used while
422 # remounting a filesystem which is already mounted.
423 abort ¥Ç¥Ð¥Ã¥°¤Î¤¿¤á ext4_abort() ¸Æ¤Ó½Ð¤·¤Î¸ú²Ì¤ò¥·¥ß
424 ¥å¥ì¡¼¥È¤·¤Þ¤¹¡£¤³¤ì¤ÏÄ̾ï¤Ï¡¢´û¤Ë¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤
425 ¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òºÆ¥Þ¥¦¥ó¥È¤·¤è¤¦¤È¤¹¤ë¤Ð¤¢¤¤¤Ë
426 ÍøÍÑ (ȯÀ¸) ¤µ¤ì¤Þ¤¹¡£
428 #errors=remount-ro Remount the filesystem read-only on an error.
429 #errors=continue Keep going on a filesystem error.
430 #errors=panic Panic and halt the machine if an error occurs.
431 # (These mount options override the errors behavior
432 # specified in the superblock, which can be configured
434 errors=remount-ro(*) ¥¨¥é¡¼»þ¡¢Æɤ߹þ¤ßÀìÍѤǥե¡¥¤¥ë¥·¥¹¥Æ¥à¤òºÆ¥Þ¥¦¥ó¥È
436 errors=continue ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥¨¥é¡¼¤¬È¯À¸¤·¤Æ¤â·Ñ³¤·¤Þ¤¹¡£
437 errors=panic ¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤é¡¢PANIC ¤·¤Æ¡¢¥Þ¥·¥ó¤òÄä»ß¤·¤Þ¤¹
438 (¤³¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢tune2fs ¤ÇÀßÄê»þ¤Ë»ØÄꤷ¤¿¡¢
439 superblock ¤Ç»ØÄꤷ¤¿¥¨¥é¡¼»þ¤ÎµóÆ°»ØÄê¤ò¾å½ñ¤¤·¤Þ¤¹)¡£
441 #data_err=ignore(*) Just print an error message if an error occurs
442 # in a file data buffer in ordered mode.
443 #data_err=abort Abort the journal if an error occurs in a file
444 # data buffer in ordered mode.
445 data_err=ignore(*) ¥ª¡¼¥À¡¼¥É¥â¡¼¥É¤Ç¥Õ¥¡¥¤¥ë¥Ç¡¼¥¿¥Ð¥Ã¥Õ¥¡¤Ç¥¨¥é¡¼¤¬È¯À¸¤·
446 ¤¿¾ì¹ç¡¢Ã±¤Ë¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ¹¤ë¤À¤±¤Ç¤¹¡£
447 data_err=abort ¥ª¡¼¥À¡¼¥É¥â¡¼¥É¤Ç¥Õ¥¡¥¤¥ë¥Ç¡¼¥¿¥Ð¥Ã¥Õ¥¡¤Ç¥¨¥é¡¼¤¬È¯À¸¤·
448 ¤¿¾ì¹ç¡¢¥¸¥ã¡¼¥Ê¥ë¤ò°Û¾ï½ªÎ»¤·¤Þ¤¹¡£
450 #grpid Give objects the same group ID as their creator.
452 grpid ¥ª¥Ö¥¸¥§¥¯¥È¤ÎºîÀ®»þ¤Ë¡¢ºîÀ®Àè¥Ç¥£¥ì¥¯¥È¥ê¤ÈƱ¤¸¥°¥ë¡¼¥×
453 bsdgroups ID ¤òÍ¿¤¨¤Þ¤¹¡£
455 #nogrpid (*) New objects have the group ID of their creator.
457 nogrpid (*) ¥ª¥Ö¥¸¥§¥¯¥È¤ÎºîÀ®»þ¤Ë¡¢ºîÀ®Àè¥Ç¥£¥ì¥¯¥È¥ê¤Ë setgid ¥Ó
458 sysvgroups ¥Ã¥È¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢ºîÀ®¥×¥í¥»¥¹¤ÈƱ¤¸¥°¥ë¡¼¥×
459 ID ¤òÍ¿¤¨¤Þ¤¹¡£ºîÀ®Àè¥Ç¥£¥ì¥¯¥È¥ê¤Ë setgid ¥Ó¥Ã¥È¤¬¥»¥Ã
460 ¥È¤µ¤ì¤Æ¤¤¤¿¾ì¹ç¤Ë¤Ï¡¢ºîÀ®Àè¥Ç¥£¥ì¥¯¥È¥ê¤Î¥°¥ë¡¼¥× ID ¤È
461 ºîÀ®¤µ¤ì¤¿¤Î¤¬¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤¢¤Ã¤¿¾ì¹ç¤Ë¤Ï setgid ¥Ó¥Ã¥È
464 #resgid=n The group ID which may use the reserved blocks.
465 resgid=n ͽÌó¥Ö¥í¥Ã¥¯¤ò»ÈÍѤ¹¤ë¥°¥ë¡¼¥× ID ¤Ç¤¹¡£
467 #resuid=n The user ID which may use the reserved blocks.
468 resuid=n ͽÌó¥Ö¥í¥Ã¥¯¤ò»ÈÍѤ¹¤ë¥æ¡¼¥¶ ID ¤Ç¤¹¡£
470 #sb=n Use alternate superblock at this location.
471 sb=n ¤³¤Î°ÌÃÖ¤ÎÂåÂØ¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¤ò»È¤¤¤Þ¤¹¡£
478 #bh (*) ext4 associates buffer heads to data pages to
479 #nobh (a) cache disk block mapping information
480 # (b) link pages into transaction to provide
481 # ordering guarantees.
482 # "bh" option forces use of buffer heads.
483 # "nobh" option tries to avoid associating buffer
484 # heads (supported only for "writeback" mode).
485 bh (*) ext4 ¤Ï¥Ð¥Ã¥Õ¥¡ÀèƬ¤ò°Ê²¼¤Î¾ðÊó¤Ë´ØÏ¢¤Å¤±¤Þ¤¹¡£
486 nobh (a) ¥¥ã¥Ã¥·¥å¥Ç¥£¥¹¥¯¥Ö¥í¥Ã¥¯¥Þ¥Ã¥×¾ðÊó
487 (b) ½ç½øÊݾڤΤ¿¤á¤Î¥È¥é¥ó¥¶¥¯¥·¥ç¥óÆâ¤Î¥ê¥ó¥¯¥Ú¡¼¥¸
488 bh ¥ª¥×¥·¥ç¥ó¤Ç¤Ï¥Ð¥Ã¥Õ¥¡¥Ø¥Ã¥É¤ÎÍøÍѤò¶¯À©¤·¡¢nobh
489 ¥ª¥×¥·¥ç¥ó¤Ç¤Ï¥Ð¥Ã¥Õ¥¡ÀèƬ¤È¤Î´ØÏ¢¤Å¤±¤òÈò¤±¤Þ¤¹
490 (writeback ¥â¡¼¥É¤Ç¤Î¤ß¥µ¥Ý¡¼¥È¤µ¤ì¤Þ¤¹)¡£
492 #stripe=n Number of filesystem blocks that mballoc will try
493 # to use for allocation size and alignment. For RAID5/6
494 # systems this should be the number of data
495 # disks * RAID chunk size in file system blocks.
496 #delalloc (*) Deferring block allocation until write-out time.
497 #nodelalloc Disable delayed allocation. Blocks are allocation
498 # when data is copied from user to page cache.
499 stripe=n mballoc ¤¬¥¢¥í¥±¡¼¥·¥ç¥óñ°Ì¤È¥¢¥é¥¤¥ó¤Ë»ÈÍѤ·¤è¤¦¤È
500 ¤¹¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥Ö¥í¥Ã¥¯¿ô¤Ç¤¹¡£RAID5/6 ¤Ç¤Ï¡¢¤³
501 ¤ÎÃͤϥǡ¼¥¿¥Ç¥£¥¹¥¯¿ô¤È¡¢¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥Ö¥í¥Ã¥¯¤Î
502 RAID ¥Á¥ã¥ó¥¯¥µ¥¤¥º¤È¤ÎÀѤˤ¹¤Ù¤¤Ç¤¹¡£
503 delalloc (*) ½ñ¤¹þ¤ß»þ¤Þ¤Ç¥Ö¥í¥Ã¥¯³ä¤êÅö¤Æ¤òÃٱ䤵¤»¤Þ¤¹¡£
504 nodelalloc ÃÙ±ä³ä¤êÅö¤Æ¤ò̵¸ú¤Ë¤·¤Þ¤¹¡£¥Ç¡¼¥¿¤¬¥æ¡¼¥¶¤«¤é¥Ú¡¼¥¸
505 ¥¥ã¥Ã¥·¥å¤Ë½ñ¤¹þ¤Þ¤ì¤¿»þÅÀ¤Ç¥Ö¥í¥Ã¥¯³ä¤êÅö¤Æ¤¬¹Ô¤Ê
508 #max_batch_time=usec Maximum amount of time ext4 should wait for
509 # additional filesystem operations to be batch
510 # together with a synchronous write operation.
511 # Since a synchronous write operation is going to
512 # force a commit and then a wait for the I/O
513 # complete, it doesn't cost much, and can be a
514 # huge throughput win, we wait for a small amount
515 # of time to see if any other transactions can
516 # piggyback on the synchronous write. The
517 # algorithm used is designed to automatically tune
518 # for the speed of the disk, by measuring the
519 # amount of time (on average) that it takes to
520 # finish committing a transaction. Call this time
521 # the "commit time". If the time that the
522 # transaction has been running is less than the
523 # commit time, ext4 will try sleeping for the
524 # commit time to see if other operations will join
525 # the transaction. The commit time is capped by
526 # the max_batch_time, which defaults to 15000us
527 # (15ms). This optimization can be turned off
528 # entirely by setting max_batch_time to 0.
529 max_batch_time=usec ext4 ¤ÎƱ´ü½ñ¤¹þ¤ßÁàºî»þ¤Ë¡¢Ê̤Υե¡¥¤¥ëÁàºî¤ò¹ç¤ï¤»¤Æ
530 ¥Ð¥Ã¥Á¤¹¤ë¤¿¤á¤ËÂԤĻþ´Ö¤ÎºÇÂçÃͤò»ØÄꤷ¤Þ¤¹¡£Æ±´ü½ñ¤
531 ¹þ¤ß½èÍý¤Ï¶¯À©Åª¤Ê¥³¥ß¥Ã¥È¤ò¹Ô¤¤¡¢¤½¤Î¸å I/O ½èÍý¤Î´°Î»
532 ¤òÂԤĤ¿¤á¡¢Æ±´ü½ñ¤¹þ¤ß¤È°ì½ï¤Ë¤Ç¤¤ë¾¤Î¥È¥é¥ó¥¶¥¯¥·
533 ¥ç¥ó¤ÎÍ̵¤òû»þ´ÖÂԤĤ³¤È¤Ï¡¢¥³¥¹¥È¤¬¾®¤µ¤¯¥¹¥ë¡¼¥×¥Ã
534 ¥ÈÌ̤ÇÂ礤ʲþÁ±¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤³¤Ç»È¤ï¤ì¤Æ¤¤¤ë¥¢¥ë¥´¥ê
535 ¥º¥à¤Ï¡¢¥Ç¥£¥¹¥¯¤Î¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¤Î¥³¥ß¥Ã¥È´°Î»¤ËÍפ¹
536 ¤ë»þ´Ö (Ê¿¶Ñ»þ´Ö) ¤ò¬Äꤹ¤ë¤³¤È¤Ë¤è¤ê¡¢¥Ç¥£¥¹¥¯Â®ÅÙ¤Ë
537 ºÇŬ²½¤¹¤ë¤è¤¦À߷פµ¤ì¤¿¤â¤Î¤Ç¤¹¡£¤³¤³¤Ç¾åµ¤Î¡Ö¥³¥ß¥Ã
538 ¥È´°Î»¤ËÍפ¹¤ë»þ´Ö¡×¤ò ¡ÉCommit time" ¤È¸Æ¤Ö¤³¤È¤Ë¤·¤Þ
539 ¤¹¡£¤â¤·¡¢¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¤ò¼Â¹Ô¤·¤Æ¤¤¤ë»þ´Ö¤¬ Commit
540 time ¤è¤ê¾®¤µ¤¤¤Ê¤é¤Ð¡¢ext4 ¤Ï Commit time ¤À¤±¥¹¥ê¡¼
541 ¥×¤·¤Æ¾¤Î½èÍý¤¬¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¤Ë¹çή¤Ç¤¤ë¤«¤É¤¦¤«¤ò
542 Ä´¤Ù¤Þ¤¹¡£¤³¤Î Commit time ¤Ï max_batch_time ¤Ë¤è¤ê
543 ¾å¸Â¤¬»ØÄꤵ¤ì¤Þ¤¹¡£max_batch_time ¤Îɸ½àÃͤÏ
544 15000us (15ms) ¤Ç¤¹¡£max_batch_time ¤ò 0 ¤È»ØÄꤹ¤ë
545 ¤³¤È¤Ç¡¢¤³¤ÎºÇŬ²½¤ò´°Á´¤Ë̵¸ú²½¤Ç¤¤Þ¤¹¡£
547 #min_batch_time=usec This parameter sets the commit time (as
548 # described above) to be at least min_batch_time.
549 # It defaults to zero microseconds. Increasing
550 # this parameter may improve the throughput of
551 # multi-threaded, synchronous workloads on very
552 # fast disks, at the cost of increasing latency.
553 min_batch_time=usec ¤³¤Î¥Ñ¥é¥á¡¼¥¿¤Ï commit time (¾åµ»²¾È) ¤¬¡¢¾¯¤Ê¤¯¤È¤â
554 min_batch_time °Ê¾å¤Ç¤¢¤ë¤³¤È¤ò»ØÄꤷ¤Þ¤¹¡£É¸½àÃÍ¤Ï 0
555 ms ¤Ç¤¹¡£¤³¤Î¥Ñ¥é¥á¡¼¥¿¤òÁý¤ä¤·¤¿¾ì¹ç¡¢¥Þ¥ë¥Á¥¹¥ì¥Ã¥É¤Ç
556 Ʊ´ü¤ò»È¤¦½èÍýÉé²Ù¤ò¹â®¤Ê¥Ç¥£¥¹¥¯¤Ç¼Â¹Ô¤·¤Æ¤¤¤ë¾ì¹ç¡¢¥ì
557 ¥¤¥Æ¥ó¥·¥£¤ÎÁý²Ã¤Î¥³¥¹¥È¤òÂå½þ¤Ë¥¹¥ë¡¼¥×¥Ã¥È¤¬²þÁ±¤·¤Þ¤¹¡£
559 #journal_ioprio=prio The I/O priority (from 0 to 7, where 0 is the
560 # highest priorty) which should be used for I/O
561 # operations submitted by kjournald2 during a
562 # commit operation. This defaults to 3, which is
563 # a slightly higher priority than the default I/O
565 journal_ioprio=prio kjournald2 ¤¬¡¢¥³¥ß¥Ã¥È½èÍýÃæ¤Ëȯ¹Ô¤¹¤ë I/O ½èÍý¤ÇÍѤ¤
566 ¤ë I/O ¥×¥é¥¤¥ª¥ê¥Æ¥£ (0 ¤«¤é 7 ¤Ç¡¢0 ¤¬ºÇ¹â¤Î¥×¥é¥¤¥ª
567 ¥ê¥Æ¥£¤Ç¤¹) ¤ò»ØÄꤷ¤Þ¤¹¡£É¸½àÃÍ¤Ï 3 ¤Ç¡¢¤³¤ì¤ÏÄ̾ï¤Î
568 I/O ¥×¥é¥¤¥ª¥ê¥Æ¥£¤è¤ê¾¯¤·¹â¤¯¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
570 #auto_da_alloc(*) Many broken applications don't use fsync() when
571 #noauto_da_alloc replacing existing files via patterns such as
572 # fd = open("foo.new")/write(fd,..)/close(fd)/
573 # rename("foo.new", "foo"), or worse yet,
574 # fd = open("foo", O_TRUNC)/write(fd,..)/close(fd).
575 # If auto_da_alloc is enabled, ext4 will detect
576 # the replace-via-rename and replace-via-truncate
577 # patterns and force that any delayed allocation
578 # blocks are allocated such that at the next
579 # journal commit, in the default data=ordered
580 # mode, the data blocks of the new file are forced
581 # to disk before the rename() operation is
582 # committed. This provides roughly the same level
583 # of guarantees as ext3, and avoids the
584 # "zero-length" problem that can happen when a
585 # system crashes before the delayed allocation
586 # blocks are forced to disk.
587 auto_da_alloc(*) ¿¤¯¤Î²õ¤ì¤¿¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ï¡¢fd = open("foo.new")/
588 noauto_da_alloc write(fd,..)/close(fd)/rename("foo.new", "foo") ¤Ê
589 ¤É¤Î¥Ñ¥¿¡¼¥ó¡¢¤¢¤ë¤¤¤Ï¤½¤ì¤è¤ê¼Ù°¤Ê
590 fd = open("foo", O_TRUNC)/write(fd,..)/close(fd)
591 ¥Ñ¥¿¡¼¥ó¤Ç¡¢fsync() ¤ò»È¤ï¤Ê¤¤¤Ç´û¸¤Î¥Õ¥¡¥¤¥ë¤òÆþ¤ì
592 Âؤ¨¤Þ¤¹¡£auto_da_alloc ¤¬Í¸ú¤Ê¾ì¹ç¡¢ext4 ¤Ï¤³¤Î¥ê
593 ¥Í¡¼¥à¤Ë¤è¤ë¥Õ¥¡¥¤¥ë¤ÎÆþ¤ìÂؤ¨¤È truncate ¤Ë¤è¤ë¥Õ¥¡
594 ¥¤¥ë¤ÎÆþ¤ìÂؤ¨¤Î¥Ñ¥¿¡¼¥ó¤ò¸¡ÃΤ·¡¢É¸½à¤Î¥Ç¡¼¥¿¥ª¡¼¥À¡¼
595 ¥É¥â¡¼¥É¤Î¾ì¹ç¤Ë¡¢¥ê¥Í¡¼¥à½èÍý¤¬¥³¥ß¥Ã¥È¤µ¤ì¤ëÁ°¤Ë¿·µ¬
596 ¥Õ¥¡¥¤¥ë¤Î¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤¬¥Ç¥£¥¹¥¯¤Ë½ñ¤¹þ¤Þ¤ì¤ë¤è¤¦¡¢
597 ÃÙ±ä³ä¤êÅö¤Æ¤µ¤ì¤¿¥Ö¥í¥Ã¥¯¤ò¼¡¤Î¥¸¥ã¡¼¥Ê¥ë¥³¥ß¥Ã¥È»þ¤Ë
598 ¶¯À©Åª¤Ë³ä¤êÅö¤Æ¤Þ¤¹¡£¤³¤Î½èÍý¤Ç¤Û¤Ü ext3 ¤ÈƱÄøÅÙ¤ÎÊÝ
599 ¾Ú¤¬¤Ç¤¡¢ÃÙ±ä³ä¤êÅö¤Æ¤µ¤ì¤¿¥Ö¥í¥Ã¥¯¤¬¥Ç¥£¥¹¥¯¤Ë½ñ¤«¤ì
600 ¤ëÁ°¤Ë¥·¥¹¥Æ¥à¤¬¥¯¥é¥Ã¥·¥å¤·¤¿¾ì¹ç¤Î¡ÖŤµ 0 ¤Ë¤Ê¤ë¡×
601 ÌäÂê¤ò (ƱÄøÅÙ¤Ë) ²óÈò¤Ç¤¤Þ¤¹¡£
607 #There are 3 different data modes:
608 3 ¤Ä¤Î°Û¤Ê¤ë¥Ç¡¼¥¿¥â¡¼¥É¤òÄ󶡤·¤Æ¤¤¤Þ¤¹¡£
611 #In data=writeback mode, ext4 does not journal data at all. This mode provides
612 #a similar level of journaling as that of XFS, JFS, and ReiserFS in its default
613 #mode - metadata journaling. A crash+recovery can cause incorrect data to
614 #appear in files which were written shortly before the crash. This mode will
615 #typically provide the best ext4 performance.
617 data=writeback ¥â¡¼¥É¤Î¤È¤¡¢ext4 ¤Ï¥Ç¡¼¥¿¤òÁ´¤¯¥¸¥ã¡¼¥Ê¥ë¤·¤Þ¤»¤ó¡£
618 ¤³¤ì¤Ï¡¢XFS, JFS, ReiserFS ¤Î¥Ç¥Õ¥©¥ë¥È¥â¡¼¥É (¥á¥¿¥Ç¡¼¥¿¥¸¥ã¡¼¥Ê¥ê¥ó¥°) ¤È
619 Ʊ¥ì¥Ù¥ë¤Î¥¸¥ã¡¼¥Ê¥ê¥ó¥°¤òÄ󶡤·¤Þ¤¹¡£
620 ¥¯¥é¥Ã¥·¥å + ¥ê¥«¥Ð¥ê ¤Ç¡¢¥¯¥é¥Ã¥·¥åľÁ°¤Ë½ñ¤¹þ¤Þ¤ì¤¿¥Õ¥¡¥¤¥ëÆâ¤ËÉÔÀµ¥Ç¡¼¥¿
621 ¤¬¸½¤ì¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£Ä̾盧¤Î¥â¡¼¥É¤ÏºÇ¹â¤Î ext4 ¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤¬ÆÀ¤é¤ì¤Þ
625 #In data=ordered mode, ext4 only officially journals metadata, but it logically
626 #groups metadata information related to data changes with the data blocks into a
627 #single unit called a transaction. When it's time to write the new metadata
628 #out to disk, the associated data blocks are written first. In general,
629 #this mode performs slightly slower than writeback but significantly faster than
632 data=ordered ¥â¡¼¥É¤Î¤È¤¡¢ext4 ¤Ï¸ø¼°¤Ë¤Ï¥á¥¿¥Ç¡¼¥¿¤Î¤ß¤ò¥¸¥ã¡¼¥Ê¥ë¤·¤Þ¤¹
633 ¤¬¡¢¤³¤ÎºÝ¤Ë¥á¥¿¥Ç¡¼¥¿¤È¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤Ï¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¤È¸Æ¤Ð¤ì¤ë 1 ¤Ä¤Îñ
634 °Ì¤Ë¡¢ÏÀÍýŪ¤Ë¤Þ¤È¤á¤é¤ì¤Æ¤¤¤Þ¤¹¡£¥Ç¥£¥¹¥¯¤Ë¿·¤·¤¤¥á¥¿¥Ç¡¼¥¿¤ò½ñ¤¹þ¤à»þ¤¬
635 ¤¤¿¤é¡¢´ØÏ¢¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤¬Àè¤Ë½ñ¤¹þ¤Þ¤ì¤Þ¤¹¡£°ìÈÌŪ¤Ë¡¢¤³¤Î¥â¡¼¥É¤Ï¡¢¥é
636 ¥¤¥È¥Ð¥Ã¥¯¤è¤ê¿¾¯ÃÙ¤¤Æ°ºî¤È¤Ê¤ê¤Þ¤¹¤¬¡¢¥¸¥ã¡¼¥Ê¥ë¥â¡¼¥É¤è¤ê¤Ï¤«¤Ê¤ê®¤¯¤Ê
640 #data=journal mode provides full data and metadata journaling. All new data is
641 #written to the journal first, and then to its final location.
642 #In the event of a crash, the journal can be replayed, bringing both data and
643 #metadata into a consistent state. This mode is the slowest except when data
644 #needs to be read from and written to disk at the same time where it
645 #outperforms all others modes. Currently ext4 does not have delayed
646 #allocation support if this data journalling mode is selected.
648 data=journal ¥â¡¼¥É¤Ï¡¢¥Ç¡¼¥¿¤È¥á¥¿¥Ç¡¼¥¿¤Î´°Á´¤Ê¥¸¥ã¡¼¥Ê¥ê¥ó¥°¤òÈ÷¤¨¤Þ¤¹¡£
649 ¤¹¤Ù¤Æ¤Î¿·¤·¤¤¥Ç¡¼¥¿¤Ï¡¢Àè¤Ë¥¸¥ã¡¼¥Ê¥ë¤Ë½ñ¤¹þ¤Þ¤ì¡¢¤½¤Î¸å¤Ë½êÄê¤Î°ÌÃ֤ؽñ¤
650 ¤³¤Þ¤ì¤Þ¤¹¡£¥¯¥é¥Ã¥·¥å¤ÎºÝ¡¢¥¸¥ã¡¼¥Ê¥ë¤Ï¥ê¥×¥ì¥¤¤µ¤ì¡¢¥Ç¡¼¥¿¤È¥á¥¿¥Ç¡¼¥¿¤ÎξÊý
651 ¤ÏÌ·½â¤Î̵¤¤¾õÂ֤˲óÉü¤µ¤ì¤Þ¤¹¡£¤³¤Î¥â¡¼¥É¤Ï¤â¤Ã¤È¤âÃÙ¤¤¤Ç¤¹¤¬¡¢¥Ç¥£¥¹¥¯¤Ø¤Î
652 ¥Ç¡¼¥¿¤ÎÆɤߤÀ¤·¤È½ñ¤¹þ¤ß¤òƱ»þ¤Ë¹Ô¤¦É¬Íפ¬¤¢¤ë»þ¤Ï¡¢Â¾¤Î¥â¡¼¥É¤è¤ê¹âÀǽ¤Ç
653 ¤¹¡£¸½ºß¤Î ext4 ¤Ç¤Ï¡¢¤³¤Î¥Ç¡¼¥¿¥¸¥ã¡¼¥Ê¥ê¥ó¥°¥â¡¼¥É¤¬ÁªÂò¤µ¤ì¤Æ¤¤¤ë¤È¤¡¢
654 Ãٱ䥢¥í¥±¡¼¥·¥ç¥ó¤Ï¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£
661 #kernel source: <file:fs/ext4/>
663 ¥«¡¼¥Í¥ë¥½¡¼¥¹: <file:fs/ext4/>
666 #programs: http://e2fsprogs.sourceforge.net/
667 ¥×¥í¥°¥é¥à: http://e2fsprogs.sourceforge.net/
669 #useful links: http://fedoraproject.org/wiki/ext3-devel
670 # http://www.bullopensource.org/ext4/
671 # http://ext4.wiki.kernel.org/index.php/Main_Page
672 # http://fedoraproject.org/wiki/Features/Ext4
673 Ìò¤ËΩ¤Ä¥ê¥ó¥¯: http://fedoraproject.org/wiki/ext3-devel
674 http://www.bullopensource.org/ext4/
675 http://ext4.wiki.kernel.org/index.php/Main_Page
676 http://fedoraproject.org/wiki/Features/Ext4