Re: Debugging why fstrim doesn't work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/29/2014 11:35 AM, Matthias Schniedermeyer wrote:
> $ fstrim -v /
> fstrim: /: discard operation not supported.
> 
> How can i debug why fstrim/the kernel thinks discard isn't supported?

  $ strace -v fstrim -v /
  ...
  ioctl(3, FITRIM, 0x7fff4d693590)        = -1 EOPNOTSUPP (Operation not supported)
  ...

Interestingly, fstrim's error message has changed from the more precise

  fstrim: /: FITRIM ioctl failed: Operation not supported

(e.g. in 2.23.2) to a probably more user-friendly

  fstrim: /: the discard operation is not supported

(in the current git version).

Have a nice day,
Berny

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux