Linuxのファイルシステムを詳解します

ext4


ext4のpatch

Mingming Cao(IBM)主催の~
ext4 devel interlock meeting minutes(Aug, 9th, 2006)~
#毎週水曜日24:00(JST)〜の電話会議~
にて報告があったとおり、ext4用のpatchがMingming Caoから~

2.6.19-rc1用

Updated ext4/jbd2 patches based on 2.6.19-rc1~

kernel展開

wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/testing...
wget ftp://kernel.org/pub/linux/kernel/people/shaggy/ex...
tar xjf linux-2.6.19-rc1.tar.bz2
tar xzf ext4-patches-2.6.19-rc1.tar.gz
cd linux-2.6.19-rc1
patch -p1 < ../ext4-patches/ext4-copy.patch
patch -p1 < ../ext4-patches/ext4-rename.patch
patch -p1 < ../ext4-patches/ext4-enable.patch
patch -p1 < ../ext4-patches/jbd2-copy.patch
patch -p1 < ../ext4-patches/jbd2-rename.patch
patch -p1 < ../ext4-patches/jbd2-rename-slab.patch
patch -p1 < ../ext4-patches/jbd2-enable.patch
patch -p1 < ../ext4-patches/jbd2-cleanup.patch
patch -p1 < ../ext4-patches/ext4-extents.patch
patch -p1 < ../ext4-patches/ext4_fsblk_sector_t.patch
patch -p1 < ../ext4-patches/ext4-extents-48bit.patch
patch -p1 < ../ext4-patches/ext4-unitialized-extent-handling.patch
patch -p1 < ../ext4-patches/extents_comment_fix.patch
patch -p1 < ../ext4-patches/64bit_jbd2_core.patch
patch -p1 < ../ext4-patches/sector_t-jbd2.patch
patch -p1 < ../ext4-patches/ext4_48bit_i_file_acl.patch
patch -p1 < ../ext4-patches/64bit-metadata.patch
patch -p1 < ../ext4-patches/ext4_blk_type_from_sector_t_to_ulonglong.patch
patch -p1 < ../ext4-patches/ext4_remove_sector_t_bits_check.patch
patch -p1 < ../ext4-patches/jbd2_blks_type_from_sector_t_to_ull.patch
patch -p1 < ../ext4-patches/ext4_allow_larger_descriptor_size.patch
patch -p1 < ../ext4-patches/ext4_move_block_number_hi_bits.patch

kernel構築

make menuconfig
CONFIG_EXT4DEV_FS=m
CONFIG_EXT4DEV_FS_XATTR=y
CONFIG_EXT4DEV_FS_POSIX_ACL=y
# CONFIG_EXT4DEV_FS_SECURITY is not set
CONFIG_JBD=m
CONFIG_JBD_DEBUG=y
CONFIG_JBD2=m
CONFIG_JBD2_DEBUG=y
CONFIG_FS_MBCACHE=y
make
make modules
make modules_install
make install

ext4mount

再起動後マウントしてみよう。
mount -t ext4dev -o extents /dev/vg0/lvext4 /mnt/ext4
/dev/mapper/vg0-lvext4 ext4dev 8.9T 2G 8.8T 1% /mnt/ext4
/var/log/messages
Aug 11 04:14:24 linuxfs2nd kernel: EXT4 FS on vg0/lvext4, internal journal ~
Aug 11 04:14:24 linuxfs2nd kernel: EXT4-fs: mounted filesystem with ordered data mode. ~
Aug 11 04:14:24 linuxfs2nd kernel: EXT4-fs: file extents enabled ~

df -Th

Filesystem Type サイズ 使用 残り 使用% マウント位置
/dev/hda2 ext3 16G 8.8G 6.3G 59% /
/dev/hda1 ext2 289M 11M 264M 4% /boot
none     tmpfs 4.0G 0 4.0G 0% /dev/shm
master:/home nfs 81G  30G  47G 40% /home
/dev/mapper/vg0-lvext4
       ext3dev 8.9T 2G 8.8T 1% /mnt/ext4
タグ

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

×

この広告は60日間更新がないwikiに表示されております。

関連ソフト/文書

Firefox3 Meter  Use OpenOffice.org

管理人/副管理人のみ編集できます