Re: [PATCH] hw/usb/dev-mtp: Correctly report free space

2024-06-18 Thread Philippe Mathieu-Daudé
On 18/6/24 02:36, Fabio D'Urso wrote: 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 --- hw/usb/dev-mtp.c | 2 +-

Re: [PATCH] hw/usb/dev-mtp: Correctly report free space

2024-06-17 Thread Philippe Mathieu-Daudé
On 18/6/24 02:36, Fabio D'Urso wrote: 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 --- hw/usb/dev-mtp.c | 2 +-

[PATCH] hw/usb/dev-mtp: Correctly report free space

2024-06-17 Thread Fabio D'Urso
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 --- hw/usb/dev-mtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti