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

2015-04-30 Thread Thomas Huth
On Thu, 30 Apr 2015 16:29:57 +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 limiting each fil

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

2015-04-30 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