Justin Ossevoort 73a652a1b0 qga/commands-posix: Fix bug in guest-fstrim
The FITRIM ioctl updates the fstrim_range structure it receives. This
way the caller can determine how many bytes were trimmed. The
guest-fstrim logic reuses the same fstrim_range for each filesystem,
effectively limiting each filesystem to trim at most as much as the
previous was able to trim.

If a previous filesystem would have trimmed 0 bytes, than the next
filesystem would report an error 'Invalid argument' because a FITRIM
request with length 0 is not valid.

This change resets the fstrim_range structure for each filesystem.

Signed-off-by: Justin Ossevoort <justin@quarantainenet.nl>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2015-07-07 20:13:13 -05:00
2015-06-24 16:33:42 +01:00
2015-07-07 14:54:55 +02:00
2015-06-22 17:40:01 +02:00
2015-06-22 17:40:01 +02:00
2015-06-22 17:40:01 +02:00
…
2015-04-04 09:45:59 +03:00
2014-06-16 13:24:35 +02:00
…
2015-06-12 06:42:34 +02:00
…
…
…
…
2015-06-03 14:21:24 +03:00
2015-06-22 17:40:01 +02:00
2015-04-30 16:05:48 +03:00
2015-07-07 14:54:56 +02:00
…
2015-06-12 13:42:17 +01:00
2015-06-23 20:23:39 +03:00
2015-06-03 14:21:24 +03:00
2014-05-24 00:07:29 +04:00
…
2015-05-11 08:59:07 -04:00
2015-05-22 15:58:22 -04:00
…
2015-06-11 10:13:28 +01:00
2015-07-07 14:54:52 +02:00
2015-04-25 22:05:07 +01:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
S
Description
Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
Readme GPL-2.0
715 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 82.3%
C++ 6.9%
Python 3.5%
Dylan 2.7%
Shell 1.5%
Other 2.9%