[exim] Using statvfs instead of statfs on Linux

Etusivu
Poista viesti
Vastaa
Lähettäjä: Andreas Metzler
Päiväys:  
Vastaanottaja: exim-users
Aihe: [exim] Using statvfs instead of statfs on Linux
Hello,
Currently on Linux systems exim is using statfs() instead of
statvfs(). I suggest to change this. Afaik all more or less current
Linux distributions (including even Debian stable or RedHat 7.3)
provide statvfs(). statvfs is suited better for LFS support, as it
does not use fields of type long but custom types, it is defined in
POSIX (XSI extension) and LSB discourages usage of statfs().

The reason I'm writing this right now is that I've recently been made
aware of the fact that exim breaks horribly on alpha/reiserfs, which
was tracked down to statfs() being broken on alpha with
-D_FILE_OFFSET_BITS=64. (Thanks, John Goerzen).
http://bugs.debian.org/280213

On a sidenote how about replacing the hardcoded
"-D_FILE_OFFSET_BITS=64" in OS/Makefile-Linux with
$(shell getconf LFS_CFLAGS) or a similar construct?
                cu andreas
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"