On Sunday 15 October 2006 15:23, Rafael J. Wysocki wrote:
> Hi,
>
> Now I have something in the brown-paper-bag category.
>
> Without this patch s2disk on i386 (32-bit in general) doesn't work with
> swap files placed above 2 GB from the beginning of the partition.  I think
> it'll also have a problem with a swap partition larger than 2 GB, but I
> haven't checked this.

This will break for non-LFS capable systems. Autoconf has AC_SYS_LARGEFILE 
macro for detecting what's needed to enable LFS (too bad that autoconf isn't 
used here ;). Not sure if these systems exist (some old versions of uClibc / 
dietlibc) and use 2.6 kernels at this moment. Probably not so there is 
nothing to worry about.

Anyway there is _FILE_OFFSET_BITS which allows to choose which interface you 
want (non-LFS or LFS one). Setting it to 64 causes kind of #define lstat(...) 
lstat64(...) if systems supports lstat64.

ps. on my system such settings are needed to get lstat->lstat64 define (linux 
2.6, glibc 2.5):
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no

> Greetings,
> Rafael

-- 
Arkadiusz Miƛkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel

Reply via email to