Bug 828303
Summary: | On PPC64, mke2fs doesn't always use all blocks on the device | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Martin Kyral <mkyral> |
Component: | e2fsprogs | Assignee: | Eric Sandeen <esandeen> |
Status: | CLOSED NOTABUG | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 5.8 | CC: | sct |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-07-12 04:22:19 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Martin Kyral
2012-06-04 14:22:12 UTC
Somehow I missed seeing this one come in. If you have the box handy can you strace mke2fs so I can see what calls it's making? Otherwise I'll grab a box from beaker & see what I can see. -Eric Ok, this is intentional, from this code in mkfs: fs_param.s_blocks_count = dev_size; if (sys_page_size > EXT2_BLOCK_SIZE(&fs_param)) fs_param.s_blocks_count &= ~((sys_page_size / EXT2_BLOCK_SIZE(&fs_param))-1); which came from this commit: commit a7ccdff8e128c24564011d760a996496b0a981b3 Author: Theodore Ts'o <tytso> Date: Tue Jul 8 18:03:48 2003 -0400 In mke2fs and resize2fs, round the default size of the filesystem to be an even multiple of the pagesize to work around a potential Linux kernel bug. Use the testio manager in mke2fs if CONFIG_TESTIO_DEBUG is set. The kernel bug isn't explained, but this seems like a really low impact bug; on ppc64 you'd lose less than 64k due to the rounding. I don't think this is something we need to mess with at this point in the RHEL5 lifecycle. If the behavior is causing serious issues for someone, please re-open with the rationale for further work on this. Thanks, -Eric |