[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Re: Initiate TRIM/DELETE to a range of blocks from userland?
From:       Maxim Sobolev <sobomax () FreeBSD ! org>
Date:       2015-12-14 21:54:55
Message-ID: CAH7qZft+KSOgk5CLC+DQ1tpvmN9TivSQj1s3dPtefd4LKpCUiw () mail ! gmail ! com
[Download RAW message or body]

Thanks, looks like somebody already written tool that does precisely that:

https://unix4lyfe.org/gitweb/trim/tree

Gotta see maybe make a port out of it.
On Dec 14, 2015 1:02 PM, "Ian Lepore" <ian@freebsd.org> wrote:

> On Mon, 2015-12-14 at 12:52 -0800, Maxim Sobolev wrote:
> > Hi guys, let's say I have a raw device (e.g. "ada1") and I want to
> > generate BIO_DELETE to a range of offsets on that device. Is there
> > any
> > way to do it now, and if not, what do you think would be the most
> > proper way to get something like this implemented? New ioctl and some
> > new flag for the dd(1)?
>
> Looks like there's already an ioctl, DIOCGDELETE in sys/disk.h, used by
> newfs -E via the berase() routine in libufs.
>
> -- Ian
>
>
_______________________________________________
freebsd-hackers@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic