Re: [Qemu-devel] [PATCH v2] qga/commands-posix: Fix bug in guest-fstrim

2015-04-29 Thread Thomas Huth
Hi Justin, On Wed, 1 Apr 2015 14:35:51 +0200 Justin Ossevoort wrote: > 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 lim

[Qemu-devel] [PATCH v2] qga/commands-posix: Fix bug in guest-fstrim

2015-04-01 Thread Justin Ossevoort
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