zero deleted blocks
Poul-Henning Kamp
phk at phk.freebsd.dk
Mon Aug 13 08:44:47 UTC 2012
In message <20120813084120.GA2352 at deviant.kiev.zoral.com.ua>, Konstantin Belous
ov writes:
>I think TRIM support in UFS can be extended to zero-out the deleted
>blocks, with relatively small amount of work. Basically, in
>ufs/ffs/ffs_alloc.c:ffs_blkfree(), a BIO_WRITE of zero buffer shall be
>issued instead of BIO_DELETE.
It would be a better idea to give geom_disk a per-disk option to
convert BIO_DELETE to writes of zeros.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the freebsd-fs
mailing list