Re: Fstrim fails on raspberry pi / SD-card

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

 



On 10 January 2014 21:18, Clemens Eisserer <linuxhippy@xxxxxxxxx> wrote:
> Hi,
>
> I've read several reports of raspberry pi users which were able to
> perform batch discards on their SD cards by invoking the "fstrim"
> command, which in turn should be translated to an ERASE command
> (cmd23). I found out some patches where commited to linux-mmc which
> implement this functionality arround linux-2.6.36.
>
> However, all I get on my raspberry (as well as on my laptop) when
> running fstrim is:
>> root@raspberrypi:~# fstrim -v p2/
>> fstrim: mountp2/: FITRIM ioctl failed: Operation not supported
>
> Has this functionality been disabled intentionally, or is it likely an
> issue with the SD card or the driver?
> In case this is hw specific, how can I find out the cause it is disabled?

Have the mmc host driver setup MMC_CAP_ERASE? That is needed,
otherwise the block queue wont be supporting DISCARD operations.

Kind regards
Ulf Hansson

>
> Thank you in advance, Clemens
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux