Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Dec 2015 14:01:58 -0700
From:      Ian Lepore <ian@freebsd.org>
To:        Maxim Sobolev <sobomax@FreeBSD.org>, freebsd-hackers@freebsd.org
Subject:   Re: Initiate TRIM/DELETE to a range of blocks from userland?
Message-ID:  <1450126918.25138.17.camel@freebsd.org>
In-Reply-To: <CAH7qZfvTQ4a409SVO2Aqv9qP4SUfxrCL4pduk7AqY4%2BeAeTd%2BA@mail.gmail.com>
References:  <CAH7qZfvTQ4a409SVO2Aqv9qP4SUfxrCL4pduk7AqY4%2BeAeTd%2BA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1450126918.25138.17.camel>