Justin Ossevoort ae0fa48f51 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>
(cherry picked from commit 73a652a1b0)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2015-07-29 18:24:00 -05:00
2015-02-06 16:11:38 +00:00
2015-03-19 11:30:37 +03:00
2015-07-29 18:21:41 -05:00
2015-04-13 11:37:10 +01:00
2015-07-28 18:13:19 -05:00
2015-04-04 09:45:59 +03:00
2014-06-16 13:24:35 +02:00
2013-09-05 09:40:31 -05:00
2015-02-23 10:56:09 -05:00
2013-10-11 09:34:56 -07:00
2015-03-25 13:38:07 +01:00
2015-02-16 17:30:19 +01:00
2015-03-19 11:35:52 +03:00
2015-04-17 14:27:42 +01:00
2015-03-17 14:31:15 +01:00
2015-04-02 15:58:39 +02:00
2015-02-05 17:16:14 +01:00
2015-07-28 18:14:07 -05:00
2015-02-16 15:07:19 +00:00
2014-05-24 00:07:29 +04:00
2013-10-11 09:34:56 -07:00
2015-01-14 10:38:57 +01:00
2015-02-12 21:21:38 -08:00
2015-03-10 09:26:22 +01:00
2015-04-24 15:05:06 +01:00
2013-10-11 09:34:56 -07:00
2015-03-26 15:31:46 +01:00

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

- QEMU team
Description
No description provided
Readme 569 MiB
Languages
C 83%
C++ 6.3%
Python 3.2%
Dylan 2.9%
Shell 1.6%
Other 2.8%