Bug 895946
| Summary: | Got incorrect block count number when resize ntfs file system via "ntfsresize_opts" | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | Richard W.M. Jones <rjones> | ||||
| Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||
| Status: | NEW --- | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | unspecified | CC: | leiwang, rjones | ||||
| Target Milestone: | --- | Keywords: | Reopened | ||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | 895006 | Environment: | |||||
| Last Closed: | 2025-10-17 00:10:00 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: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 895006 | ||||||
| Attachments: |
|
||||||
|
Description
Richard W.M. Jones
2013-01-16 10:45:08 UTC
Created attachment 684944 [details]
ntfsresize reproducer script
This is a self-contained test script.
When run on Fedora 18:
$ /tmp/ntfsresize.sh
blocks: 25568
Resizing filesystem to 10000 blocks ...
blocks: 9999
Resizing filesystem to original (full) size ...
blocks: 25567
$ guestfish --version
guestfish 1.20.1fedora=18,release=3.fc18,libvirt
I changed the script so it skips the middle resize-to-10000-blocks step: $ /tmp/ntfsresize.sh blocks: 25568 Resizing filesystem to original (full) size ... blocks: 25568 BTW if this is a bug then it is a bug in ntfs-3g. Bug report sent upstream. We will have to retry with a more recent version of ntfs-3g. Upstream report: http://sourceforge.net/mailarchive/message.php?msg_id=30383471 FWIW I get the same result with ntfs-3g 2013.1.13. I got a good explanation of exactly what is going on here: http://sourceforge.net/mailarchive/message.php?msg_id=30440594 Essentially this is not a bug. The QA test will have to be adjusted to allow for the possibility of a small number of unused sectors. This product has been discontinued or is no longer tracked in Red Hat Bugzilla. Reopening because Virtualization Tools has not been discontinued. |