Date: Mon, 14 Dec 2015 20:59:08 +0000 From: Steven Hartland <killing@multiplay.co.uk> To: freebsd-hackers@freebsd.org Subject: Re: Initiate TRIM/DELETE to a range of blocks from userland? Message-ID: <566F2D9C.5010106@multiplay.co.uk> 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
http://blog.multiplay.co.uk/dropzone/freebsd/ioctl-delete.c will do this for you. Be aware it will just do it so you can really shoot your self in the foot if your not careful. On 14/12/2015 20:52, 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)? > _______________________________________________ > 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?566F2D9C.5010106>