Trent Lloyd
lathiat at bur.st
Sun Oct 23 19:11:44 CDT 2005
On Sun, Oct 23, 2005 at 04:18:46PM -0700, Matt Zimmerman wrote:
> On Mon, Oct 24, 2005 at 07:10:27AM +0800, Trent Lloyd wrote:
> > On Sun, Oct 23, 2005 at 02:00:54PM -0700, Matt Zimmerman wrote:
> > > On Sun, Oct 23, 2005 at 09:53:55PM +0800, Trent Lloyd wrote:
> > > > suspend2 supports hibernating to both swap files *and* normal files :)
> > > > Unfortunately, we don't run suspend2 :(
> > >
> > > How does it ensure the consistency of the filesystem containing the swap
> > > file?
> >
> > It pre-allocates the file and using some low level calls to get the blocks
> > , blats it out to the blocks.
>
> But how does it then read the blocks back in order to resume? At least with
> swsusp, the filesystem may be in an unclean state during hibernation.
it stores a block map of the blocks used to store the image. ie, the
first block of the image (that you pass resume2=file:/dev/hda5 at 0x12412
with) contains a list (or pointers to lists) of other blocks that
contain the image, and it's read out of that without ever touching
the device's filesystem.
Trent
>
> --
> - mdz
>
> --
> ubuntu-devel mailing list
> ubuntu-devel at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-devel
--
Trent Lloyd <lathiat at bur.st>
Bur.st Networking Inc.
More information about the ubuntu-devel
mailing list