Re: Script to set up sparse device for testing
Andi Kleen <[email protected]>
| Newsgroups | gmane.comp.file-systems.ext2.devel |
|---|---|
| Message-ID | <[email protected]> |
"Stephen C. Tweedie" <[email protected]> writes: > Hi, > > On Thu, 2006-07-06 at 13:47 +0200, Erik Mouw wrote: > > > So truncate shall increase the file and zero fill it, but it doesn't > > say it should be a sparse file. I suppose that's left to the > > implementation. > > Right. > > The main advantage of sparsetmp over sparse files is specifically > helpful for the 48-bit ext3 extents work --- it allows us to create > sparse devices much larger than the 2TB limit of a regular file: You can create nearly arbitarily sized loop files on JFS or XFS on 64bit hosts. I used this successfully for testing several times Ok, I also triggered bugs in both with this, but they should be all fixed in the latest kernels. -Andi P.S.: Creating doesn't even need a special program, it works quite nicely with echo | dd seek=size bs=1 count=1 of=... 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