Whamcloud - gitweb
contrib: script to create minified ext4 image from a directory
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 5 May 2015 14:52:12 +0000 (10:52 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 5 May 2015 14:52:12 +0000 (10:52 -0400)
commit8804a96f657df4e3e51d115dbfe255bc295a64b0
tree65a351b125689bdcb8827ee7cbb7c785456314ab
parent4407ea3b1994b69f0fa795f6f9e271616a24066d
contrib: script to create minified ext4 image from a directory

The dir2fs script converts a directory into a minimized ext4 filesystem.
FS creation parameters are tweaked to reduce as much FS overhead as
possible, and to leave as few unused blocks and inodes as possible.
Given that mke2fs -d lays out files linearly from the beginning of the
FS, using resize2fs -M is not as horrible as it usually is.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
contrib/dir2fs [new file with mode: 0755]