readahead() which is Linux-only vs. posix_fadvise()

Henrik Nordstrom henrik at henriknordstrom.net
Thu May 10 21:28:26 GMT 2007


ons 2007-05-09 klockan 21:35 -0400 skrev derrell at samba.org:

> In researching this, I discovered what appears to be a POSIX replacement.  It
> looks like readahead is equivalent to posix_fadvise(..., POSIX_FADV_WILLNEED).

Not entirely equivalent. readahead() blocks, while POSIX_FADV_WILLNEED
doesn't..

Regards
Henrik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: Detta =?ISO-8859-1?Q?=E4r?= en digitalt signerad
	meddelandedel
Url : http://lists.samba.org/archive/samba-technical/attachments/20070510/5c962dab/attachment.bin


More information about the samba-technical mailing list