TRIM utility

Wojciech Puchar wojtek at puchar.net
Sat Nov 24 14:44:16 UTC 2018


>
> Yes. It would. That's hard with the current storage stack to do via the
> disk interface. And often the underlying protocols do not support partial
> ranges. There is no good way to do this with buf/bio interface we have. So

what is an actual difference between "secure erase" and trimming whole 
disk?

> it is a really bad match all the way around.
>
> Or do we
>> have another that can easily get at that function,
>> that is usually the prefered vendor specific method
>> to "trim" the complete drive, often restoring badly
>> leveled SSD's to a performant and usable state.
>>
>
> Camcontrol already supports secure erase for both SCSI and ATA drives. And
> sanitize for SCSI (an alternative way to do the same thing to reset the
> ssd's FLT). It bypasses the disk interface and sends raw protocol commands
> via the pass interface. I do this all the time to rehab drives, do
> diagnosis of vendor issues or scrub ssds I'm sending to third parties.
>
> Warner
>
> -- 
>> Rod Grimes
>> rgrimes at freebsd.org
>> _______________________________________________
>> freebsd-hackers at freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>>
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>
>


More information about the freebsd-hackers mailing list