TRIM support for UFS?
Pawel Jakub Dawidek
pjd at FreeBSD.org
Thu Dec 9 11:50:25 UTC 2010
On Thu, Dec 09, 2010 at 12:34:11PM +0200, Kostik Belousov wrote:
> I still think that TRIM should be opt-in, at least for the first time.
> Below is the BIO_GETATTR change integrated.
>
> Now, both FS_TRIM should be set and device shall report the
> GEOM::candelete attribute as true to have BIO_DELETE issued. geom_disk
> and md(4) report GEOM::candelete. Also, I updated tunefs(8) manpage,
> missed in the previous version.
[...]
> --- a/sbin/tunefs/tunefs.c
> +++ b/sbin/tunefs/tunefs.c
[...]
> @@ -1035,6 +1069,8 @@ printfs(void)
> (sblock.fs_flags & FS_SUJ)? "enabled" : "disabled");
> warnx("gjournal: (-J) %s",
> (sblock.fs_flags & FS_GJOURNAL)? "enabled" : "disabled");
> + warnx("trim: (-p) %s",
s/-p/-t/
Other than that looks nice and clean.
--
Pawel Jakub Dawidek http://www.wheelsystems.com
pjd at FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20101209/12711026/attachment.pgp
More information about the freebsd-fs
mailing list