Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 556392 - app-emulation/qemu-guest-agent: bug in guest-fstrim
Summary: app-emulation/qemu-guest-agent: bug in guest-fstrim
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo QEMU Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-31 14:20 UTC by Alexander Tsoy
Modified: 2015-09-07 05:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Tsoy 2015-07-31 14:20:06 UTC
There is a bug in qemu-guest-agent:

$ virsh -c qemu:///system domfstrim gentoo-builder
error: Unable to invoke fstrim
error: internal error: unable to execute QEMU agent command «guest-fstrim»: failed to trim /home: Invalid argument

This bug is reproducible with stable -2.1.2 and unstable -2.3.0. More details in the following commit:

http://git.qemu-project.org/?p=qemu.git;a=patch;h=73a652a1b08445e8d91e50cdbb2da50e571c61b3


I've tested this patch with qemu-guest-agent-2.3.0. It fixes the issue:

$ virsh -c qemu:///system domfstrim gentoo-builder

$ echo $?
0
Comment 1 SpanKY gentoo-dev 2015-08-04 02:08:57 UTC
the 2.4.0 release should be soon since they've already started the rc's, so probably just wait for that and be lazy
Comment 2 SpanKY gentoo-dev 2015-09-07 05:51:42 UTC
2.4.0 is in the tree now