[illumos-Developer] NOW with zvol-only zfs diffs --> iSCSI UNMAP

Joerg Schilling Joerg.Schilling at fokus.fraunhofer.de
Tue Feb 22 02:38:11 PST 2011


"Garrett D'Amore" <garrett at nexenta.com> wrote:

> I noticed the fcntl() usage myself, and thought it was a bit strange.
>
> I would like to make sure that if we choose an ioctl, it will work with
> ordinary SCSI unmap (initiated from ZFS for example) as well -- then it
> should be a fairly straight-forward matter to extend this in sd and
> SCSA.
>
> 	- Garrett
>
> On Sat, 2011-02-19 at 09:40 -0500, Eric Schrock wrote:
> > I looked into F_FREESP a little more, and unfortunately it's not as
> > universal as I had hoped.  This is really an argument to fcntl(),
> > which itself gets translated to VOP_SPACE() under the hood (after
> > checking that the file type is VREG).  So the idea of using the same
> > ioctl() for both regular files and devices is bogus.  Rather than
> > trying to shoehorn it in, I would create DKIOCFREE that has the
> > semantics we want (start and end of range, I would guess.

Is this a discussion related to the UNMAP/TRIM?

If yes, why do you talk about F_FREESP?

F_FREESP is to punch holes into files.

Jörg

-- 
 EMail:joerg at schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js at cs.tu-berlin.de                (uni)  
       joerg.schilling at fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



More information about the Developer mailing list