summary refs log tree commit diff stats
path: root/scripts/qapi/parser.py
diff options
context:
space:
mode:
authorFabio D'Urso <fdurso@google.com>2024-06-18 02:36:57 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-06-19 12:42:03 +0200
commit283720489fdadadbd99774c2cdeff6635e396415 (patch)
treef8c14ed9b124bc1e77b376a857c4bc9e776aada5 /scripts/qapi/parser.py
parentce5311c47600a246995438e956f0090175e6965a (diff)
downloadfocaccia-qemu-283720489fdadadbd99774c2cdeff6635e396415.tar.gz
focaccia-qemu-283720489fdadadbd99774c2cdeff6635e396415.zip
hw/usb/dev-mtp: Correctly report free space
In order to compute the amount of free space (in bytes), the number
of available blocks (f_bavail) should be multiplied by the block
size (f_frsize) instead of the total number of blocks (f_blocks).

Signed-off-by: Fabio D'Urso <fdurso@google.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240618003657.3344685-1-fdurso@google.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'scripts/qapi/parser.py')
0 files changed, 0 insertions, 0 deletions