This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[RFC] Make _FILE_OFFSET_BITS=64 default.
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: Paul Eggert <eggert at cs dot ucla dot edu>
- Cc: Denis Obrezkov <reprofy at etersoft dot ru>, libc-alpha at sourceware dot org
- Date: Wed, 5 Mar 2014 10:13:31 +0100
- Subject: [RFC] Make _FILE_OFFSET_BITS=64 default.
- Authentication-results: sourceware.org; auth=none
- References: <1393521776-1102-1-git-send-email-reprofy at etersoft dot ru> <530F79C1 dot 2040508 at cs dot ucla dot edu>
On Thu, Feb 27, 2014 at 09:45:37AM -0800, Paul Eggert wrote:
> Squashing an inode that way has a small chance of introducing what
> could be a serious bug. If glibc is going to squash them, it should
> do so reliably, by maintaining a table of all the inodes it's ever
> seen and making sure there are no collisions.
>
> Why bother to squash them at all, though? Programs that care about
> files should be compiled with _FILE_OFFSET_BITS defined to 64. If
> we're worried about programs that don't define _FILE_OFFSET_BITS, we
> could change glibc to default to _FILE_OFFSET_BITS=64; that's a
> better long-term solution anyway.
Changing default would be better. I dig while how to do it and can not
find a nonugly solution. How should we do this?