summaryrefslogtreecommitdiff
path: root/tests/m_bigjournal
AgeCommit message (Collapse)AuthorFilesLines
2011-09-15e2fsprogs: Use punch hole as "discard" on regular filesLukas Czerner1-1/+1
If e2fsprogs tools (mke2fs, e2fsck) is run on regular file instead of on block device, we can use punch hole instead of regular discard command which would not work on regular file anyway. This gives us several advantages. First of all when e2fsck is run with '-E discard' parameter it will punch out all ununsed space from the image, hence trimming down the file system image. And secondly, when creating an file system on regular file (with '-E discard' which is default), we can use punch hole to clear the file content, hence we can skip inode table initialization, because reads from sparse area returns zeros. This will result in faster file system creation (without the need to specify lazy_itable_init) and smaller images. This commit also fixes some tests that would fail due to mke2fs showing discard progress, hence the output would differ. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2011-06-11mke2fs: add test for large journal with lazy initAndreas Dilger2-0/+579
Add test for internal journal over 4GB in size, using the lazy_journal_init and lazy_itable_init features. Otherwise the filesystem metadata would be too large to reliably run on test systems, and take too long to create/check the filesystem. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>