some mountpoints that error is returned and the
guest-fstrim continue with any additional mountpoints.
The returned values for errors, minimum and trimmed are dependant on the
filesystem, storage stacks and kernel version.
Signed-off-by: Justin Ossevoort
---
qga/commands-posix.c | 54
h 2 to indicate returned values are
filesystem, storage stack and kernel version dependant
Justin Ossevoort (2):
qga/commands-posix: Fix bug in guest-fstrim
qga/commands-posix: Return per path fstrim result
qga/commands-posix.c | 63
.
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
---
qga/comman
On 30-04-15 18:35, Thomas Huth wrote:
On Thu, 30 Apr 2015 16:29:58 +0200
Justin Ossevoort wrote:
The current guest-fstrim support only returns an error if some
mountpoint was unable to be trimmed, skipping any possible additional
mountpoints. The result of the TRIM operation itself is also
timate details about
the filesystem layout of the guest.
Justin Ossevoort (2):
qga/commands-posix: Fix bug in guest-fstrim
qga/commands-posix: Return per path fstrim result
qga/commands-posix.c | 63
qga/qapi-schema.json | 32
some mountpoints that error is returned and the
guest-fstrim continue with any additional mountpoints.
Signed-off-by: Justin Ossevoort
---
qga/commands-posix.c | 54 ++--
qga/qapi-schema.json | 32 ---
2 files changed, 69
.
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
---
qga/comman
Hello,
I posted a PATCH v2 yesterday that does this. It returns the result per
filesystem, with the name, mountpoint and filesystem type.
Eric requested output similar to fsinfo (that's why name and type is
included), but I'm not really convinced it is meaningful. Especially
'name' is someth
with their status. If the
trime operation succeeded it returns the amount of bytes trimmed and
the effective minimum chunk size. On error it returns the value of
the errno for that filesystem operation (instead of aborting the
request).
Signed-off-by: Justin Ossevoort
---
qga/commands-pos
ilesystems, providing a hint to
the caller about how effective the guest-fstrim request was.
Signed-off-by: Justin Ossevoort
---
qga/commands-posix.c | 19 +++
qga/qapi-schema.json | 5 +++--
2 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/qga/commands-posix.c b/qg
10 matches
Mail list logo