Bug 1527003
| Summary: | mkfs fat with blocksize:512 does not set the block size correctly | ||
|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | Richard W.M. Jones <rjones> |
| Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
| Status: | NEW --- | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | ptoscano |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-10-17 00:10:37 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: | |||
This product has been discontinued or is no longer tracked in Red Hat Bugzilla. Reopening because Virtualization Tools has not been discontinued. |
(This bug was found by Xianghua Chen) Description of problem: mkfs fat does not set the block size correctly: $ rm test.img $ truncate -s 100M test.img $ guestfish -a test.img \ run : part-disk /dev/sda mbr : mkfs fat /dev/sda1 blocksize:512 : mount /dev/sda1 / : statvfs / ... bsize: 2048 bsize is expected to be 512 because we set blocksize:512 when creating the filesystem. Version-Release number of selected component (if applicable): libguestfs 1.37.35 How reproducible: 100% Steps to Reproduce: 1. See reproducer above. Additional info: We're adding ’-b 512’ to the command line, but that option to mkfs.fat sets the backup boot sector location, so that's completely wrong. This is a bug introduced when we fixed the following bug: https://bugzilla.redhat.com/show_bug.cgi?id=599464