[zfs-discuss] Re: TRIM support?

Stephane Chazelas stephane_chazelas at yahoo.fr
Thu Mar 1 03:03:24 EST 2012


2012-02-29 23:08:08 -0800, Christ Schlacta:
> Is it possible to add TRIM support to the zvol layer?  I know
> because of COW that it may not always be useful, but it would be
> nice to be able to mark blocks of data as "no longer referenced", so
> that when appropriate (IE: when deleting snapshots) the space that
> would otherwise be unused but referenced can instead be freed.
> There exists a spec for it, it'd be nice to be able to use it :)

It's been added recently and is available in the latest ppa. And
I did verify that it works (BLKDISCARD ioctl works, so I expect
mounting a FS with -o discard on a zvol should work as well).

-- 
Stephane



More information about the zfs-discuss mailing list