开发版ext4的获取方法

现在论坛也在对ext4进行积极开发。开发版的ext4包含新的功能和bug的修改等。利用开发版时,需要从ext4的维护人员所管理的Git树中获取。这里将介绍获取开发版内核、命令的方法。获取时可以使用git命令。

ext4 patch queue的获取

正在开发的ext4的补丁包括在ext4 patch queue中。可以使用下列方法来获取。


git clone http://repo.or.cz/r/ext4-patch-queue.git


获取成功后,就会生成ext4-patch-queue目录。其中就有适用于ext4的补丁。对应的内核版本、适用的补丁的顺序记载在series文件中。


cat ext4-patch-queue/series

BASE v3.0-rc1

#

correct-comments-for-ext4_free_blocks

fix-max-file-size

use-FIEMAP_EXTENT_LAST-flag-for-last-extent

fixed-tracepoints-cleanup

potential problems?

fix-oops-in-jbd2_journal_remove_journal_head

#

unstable patches

#

stable-boundary

……


将这些补丁适用于内核的源代码后,生成的内核就具有ext4的最新功能。

开发版的e2fsprogs的获取

e2fsprogs的Git树可以执行下列命令来获取。


git clone http://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git


这时获取的是最新的稳定版e2fsprogs,因此需要切换到开发版的“next”分支。


git checkout next


这样就切换到了开发版的e2fsprogs。可以通过执行configure, make来使用各种命令。由于内核、命令都是开发版,因此在使用过程中可能会发现bug。这时请向linux-ext4@vger.kernel.org报告。