Bug 980790
Summary: | fstrim returns error "FITRIM ioctl failed: Inappropriate ioctl for device" | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | bfan |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | leiwang, wshi, yuliu |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libguestfs-1.28.1-1.1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 980788 | Environment: | |
Last Closed: | 2015-03-05 13:42:48 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 980788 | ||
Bug Blocks: |
Description
bfan
2013-07-03 08:54:04 UTC
fstrim was in fact broken: https://github.com/libguestfs/libguestfs/commit/5e105e06be4cc6c88b5d3fc5cf79acb48947e197 This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. Version: libguestfs-1.28.1-1.9.el7.x86_64 Steps: 1. guestfish -a $Guest run : mount /dev/sda1 / : uplaod /raw.img /raw.img 2. check the disk size guestfish <<EOF add-drive $Guest format:$Guest_format discard:enable run mount-options noatime $mount_device / rm /raw.img fstrim / EOF 3. check the disk size again, and the size is smaller than before. Verified as above. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0303.html |