On Wed, Aug 04, 2021 at 01:56:54PM +0000, Jason King wrote: > There isn’t an existing command – you’ll need to issue the DKIOCFREE > ioctl.. > > I’ve attached a program that’ll do it – I wrote this while testing > some of the TRIM support (but obviously use at your own risk). While > it was originally used w/ zvols (hence the name), it should work for > any block device that supports the DKIOCFREE ioctl. > > Either call it with -a /dev/rdsk/… to do the whole disk, or you can > give it a list of LBA + lengths to TRIM specific portions of a disk..
Great, thanks! -- +-------------------------------------------+ | Marcel Telka e-mail: [email protected] | | homepage: http://telka.sk/ | +-------------------------------------------+ ------------------------------------------ illumos: illumos-discuss Permalink: https://illumos.topicbox.com/groups/discuss/Tb82006464e3b5173-M30a857fb9d0a32ddc8ca6a0a Delivery options: https://illumos.topicbox.com/groups/discuss/subscription
