Alfred Perlstein wrote: > > The file is already the required size. > > Gah... oops :) > > Have you tried the mapping with PROT_READ as well? I don't think > most arches allow for access without PROT_READ along with PROT_WRITE.
Being the required size doesn't necessarily mean that it had indirect blocks allocated to the NUL filled region. He'd be much better off trying this with a file he created using "dd if=/dev/zero bsize=??? count=??? of=my_file" than something truncated to the expected size. Actually, he's be better still if he'd implement a "recvfile" to be the opposite end of a "sendfile". 8-). -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message