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

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

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

> 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

-------------- 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
Url :

More information about the samba-technical mailing list