On Sunday, 15 October 2006 16:00, Arkadiusz Miskiewicz wrote:
> 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 ;).

Yeah, mainly because I have no time to learn autoconf. :-)

> 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.

Okay, if there's a way to solve this problem in a more general way, I'm for,
but I don't feel competent enough to code it.

I'd like to apply this patch for now, but improvements are always welcome. :-)


-- 
You never change things by fighting the existing reality.
                R. Buckminster Fuller

-------------------------------------------------------------------------
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