Bug 980788
Summary: | fstrim returns error "FITRIM ioctl failed: Inappropriate ioctl for device" in rhel6 | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | bfan | |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | |
Status: | CLOSED NOTABUG | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 6.5 | CC: | leiwang, qguan, wshi | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 980790 (view as bug list) | Environment: | ||
Last Closed: | 2013-07-05 14:17:45 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: | ||||
Bug Blocks: | 980790 |
Description
bfan
2013-07-03 08:51:49 UTC
Yup, fstrim isn't supported (by the kernel) in RHEL 6: ><rescue> mke2fs -t ext4 /dev/sda1 mke2fs 1.41.12 (17-May-2010) [...] ><rescue> mount /dev/sda1 / [ 75.237242] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: ><rescue> fstrim / fstrim: /: FITRIM ioctl failed: Inappropriate ioctl for device ><rescue> strace fstrim / [...] ioctl(3, 0xc0185879, 0x7fff0dcc0940) = -1 ENOTTY (Inappropriate ioctl for device) [...] Thus this error message is correct. However we could remove/disable the fstrim API completely from libguestfs, although I'm not really sure that would help anyone. Anyone running the guestfish fstrim command blindly would get an error in both cases. |