Re: ZFS TRIM support committed to HEAD.

From: Steven Hartland <killing_at_multiplay.co.uk>
Date: Tue, 25 Sep 2012 02:55:21 +0100
----- Original Message ----- 
From: "Ryan Stone" 
>> Ahh yes looks like ATA supports BIO_DELETE via ATA_CFA_ERASE if the drive
>> announces ATA_PROTO_CFA, so I can only assume this is failing when it
>> shouldn't.
>>
>> Might be nice to investigate what's happening and fix, but as ATA is
>> being replaced by CAM ATA not sure its worth it?
> 
> I believe that the code that you are looking at refers to a old
> command that is only implemented by CompactFlash cards.  The ad(4)
> driver does not currently support the TRIM command.  I have an
> internal patch that implements it for FreeBSD 8.2; if there's interest
> I could try to dig it out.

It may well be but that's the only code in ad driver that I can see
which sets DISKFLAG_CAN_DELETE and without that geom_disk should
trigger EOPNOTSUPP and hence go into the unsupported not the fail
case.

    Regards
    Steve

================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
or return the E.mail to postmaster_at_multiplay.co.uk.
Received on Mon Sep 24 2012 - 23:55:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:30 UTC