Bug 1525241
Summary: | virt-df displays zeros for filesystems with block size =512 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Mykola Ivanets <stenavin> | ||||
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||
Status: | CLOSED UPSTREAM | QA Contact: | |||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | unspecified | CC: | ptoscano, rbalakri, stenavin | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1525262 (view as bug list) | Environment: | |||||
Last Closed: | 2018-01-17 17:18: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: | 1525262 | ||||||
Attachments: |
|
Description
Mykola Ivanets
2017-12-12 21:25:15 UTC
Can reproduce the same with virt-df 1.37.34fedora=28,release=3.fc28,libvirt Relevant part of the trace output is: libguestfs: trace: statvfs "/" libguestfs: trace: statvfs = <struct guestfs_statvfs = bsize: 512, frsize: 512, blocks: 199600, bfree: 199599, bavail: 199599, files: 0, ffree: 0, favail: 0, fsid: 2049, flag: 4097, namemax: 1530, > Note that bsize = 512, therefore factor = bsize / 1024 = 0, so everything is multiplied by zero resulting in: image:/dev/sda1 0 0 0 1% This was fixed upstream with commit d3afdb6e3edbfe031aac86c14df60c530781ace5 which is in libguestfs >= 1.37.36. |