Article View: news.software.nntp
Article #46876Re: ReiserFS and news
From: Andrew Gierth
Date: Fri, 09 Jun 2000 00:00
Date: Fri, 09 Jun 2000 00:00
43 lines
2827 bytes
2827 bytes
>>>>> "Florian" == Florian Weimer <fw@deneb.cygnus.argh.org> writes:
Florian> When the size of the active file is an integral
Florian> multiple of the page size of the system, accessing the byte
Florian> beyond the end of the actual file might result in a SIGSEGV
SIGBUS, actually, according to the SUSv2.
But this isn't a Linux-specific issue... any correctly implemented
mmap will behave this way.
Florian> The INN approach mentioned above is perhaps problematic.
Florian> Linux mmap() used to behave as required by INN, and I once
Florian> believed that other implementations do as well, but Alan Cox
Florian> says it's a linuxism that you can mmap() more bytes than
Florian> there are in a file to get additional zero bytes.
The SUSv2 sez:
The off argument is constrained to be aligned and sized according
to the value returned by sysconf() when passed _SC_PAGESIZE or
_SC_PAGE_SIZE. When MAP_FIXED is specified, the argument addr must
also meet these constraints. The implementation performs mapping
operations over whole pages. Thus, while the argument len need not
meet a size or alignment constraint, the implementation will
include, in any mapping operation, any partial page specified by
the range [pa, pa + len).
The system always zero-fills any partial page at the end of an
object. Further, the system never writes out any modified portions
of the last page of an object that are beyond its end. References
within the address range starting at pa and continuing for len
bytes to whole pages following the end of an object result in
delivery of a SIGBUS signal.
An implementation may deliver SIGBUS signals when a reference
would cause an error in the mapped object, such as out-of-space
condition.
--
Andrew.
Technical Details
Message-ID:
<873dmm8uor.fsf@erlenstar.demon.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<393F52CC.9FA1B9D6@int.tele.dk> <1rn1kwxq76.fsf@haey.ifi.uio.no> <8homi7$2vpt$1@mired.zark.thedonkeys.org> <yl8zwf7rr1.fsf@windlord.stanford.edu> <87u2f2oddl.fsf@deneb.cygnus.argh.org>Show Full Headers
Complete Article Headers
Message-ID: <873dmm8uor.fsf@erlenstar.demon.co.uk> Subject: Re: ReiserFS and news Date: Fri, 09 Jun 2000 00:00:00 +0000 From: Andrew Gierth <andrew@erlenstar.demon.co.uk> References: <393F52CC.9FA1B9D6@int.tele.dk> <1rn1kwxq76.fsf@haey.ifi.uio.no> <8homi7$2vpt$1@mired.zark.thedonkeys.org> <yl8zwf7rr1.fsf@windlord.stanford.edu> <87u2f2oddl.fsf@deneb.cygnus.argh.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 633178497 X-Mayan-Date: Long count = 12.19.7.5.0; tzolkin = 13 Ahau; haab = 3 Zotz X-Complaints-To: andrew@erlenstar.demon.co.uk Organization: disorganised X-Attribution: AG X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29 X-P-Persistent-Headers: are a bad idea. Newsgroups: news.software.nntp X-Post-Filter: postfilter v0.6 alpha