On 21 Nov 2014 18:09, Lutz Vieweg wrote: > The relevant strace output of the above fstrim command: > > stat("/mnt/PFexp1", {st_mode=S_IFDIR|0755, st_size=6, ...}) = 0 > > open("/mnt/PFexp1", O_RDONLY) = 3 > > ioctl(3, FITRIM, 0x7fff0733a4c0) = -1 EIO (Input/output error) that hasn't decoded the ioctl (send a patch for that), but guess is that you're passing down the default: range.start = 0; range.minlen = 0; range.len = UULONG_MAX; in which case the expectation is the kernel layers will take care of trimming everything and not die when it hits the end of the device. -mike
Attachment:
signature.asc
Description: Digital signature