Thai Nguyen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to port a linux app to OpenSolaris OS. There is a API used in
> linux codes that I don???t know how to port to OpenSolaris:
>
> ioctl(fileFD, FIBMAP, &FsBlock)
>
> Any one pleases help, tell me how to do this, find out a FileSystemBlock of
> the offset in a file, in OpenSolaris.
An ioctl to get the device block number for UFS files existed
before Solaris-2.6 (1996).
Such a function is security relevent and usually not needed.
If this is just to find holes in files (blockno == -1), we defined
a new interface together with the ZFS team in 2004.
lseek(fd, offset, SEEK_HOLE)
fineds the next hole in a file.
Jörg
--
EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
[EMAIL PROTECTED] (uni)
[EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code