-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dan Lund wrote:
> Hi,
> Another thing I'm falling short of answers for.  I know there used to be
> a file size limit of 2G for linux back in the 2.2 days ( think it was
> 2.2 ), but I seem to be stumbling across it on 2.6.  I'm running a host
> of 2.6.11 with skas3v8, and when I try to start up a UML instance (guest
> 2.4.31) with 2048M memory, it stops with:
> 7188 File size limit exceeded
> 
> The startup flags I'm using are:
> /opt/uml/linux-2.4.31
> ubd0s=/home/uml/atlas_uml.cow,/opt/uml/gentoo-server.pristine.img
> ubd1s=/home/uml/atlas_uml_swap.cow,/opt/uml/redhat-swap.img
> eth0=tuntap,atlas-uml,FE:FD:0A:01:01:52 mem=2048M umid=atlas-uml
> con0=fd:0,fd:1 con=pty
> 
> It works with it set to 1500M...
> I've tried with and without tmpfs as the TMP setting.  Any pointers?

The mkstemp() call in make_tempfile() is opening the "memory" file
without O_LARGEFILE, so the maximum file size is probably just under
2048MB.  For now, see if 2047 will work.

It's also possible to replace the mkstemp() call with a wrapper that
opens the file with O_LARGEFILE, but that's probably more of an issue
for the uml-devel list.

Frank
- --
Frank Sorenson - KD7TZK
Systems Manager, Computer Science Department
Brigham Young University
[EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCsfscaI0dwg4A47wRAkTbAJ9c6FBmTypCFChi43x7y7OuuniNfACbBvFP
9gAP4KHJKjHQOswXrGMLT/0=
=9vt/
-----END PGP SIGNATURE-----


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
User-mode-linux-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to