public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Stefan Rompf <stefan@loplof.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC] userland swsusp
Date: Thu, 17 Nov 2005 11:01:26 +0100	[thread overview]
Message-ID: <20051117100126.GA15341@elf.ucw.cz> (raw)
In-Reply-To: <200511170819.17046.stefan@loplof.de>

Hi!

> > No. Writing to file would trash the filesystem. But you can bmap the file,
> > then write to the block device.
> 
> And for reading, I could used a device mapper enforced read only mount or 
> filesystem code from grub.

Or use a filesystem that honours read-only option, like ext2...

> Hmm, how about a possibility to ask the kernel for a list of free pages on a 
> swap device? This way, userspace could write the image to swap as the kernel 
> currently does, avoiding possible trouble with filesystems.

Yes, that is the plan.

> > Better avoid memory allocation.
> 
> And all memory allocated and mapped in advance would be part of the image. But 
> this is totally acceptable for a "suspend helper".

Yes.
									Pavel
-- 
Thanks, Sharp!

  reply	other threads:[~2005-11-17 10:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-16 16:00 [RFC] userland swsusp Stefan Rompf
2005-11-16 19:07 ` Pavel Machek
2005-11-17  7:19   ` Stefan Rompf
2005-11-17 10:01     ` Pavel Machek [this message]
2005-11-21  6:23   ` Rob Landley
2005-11-21 14:14     ` Pavel Machek
  -- strict thread matches above, loose matches on Subject: below --
2005-11-15 21:29 Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051117100126.GA15341@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stefan@loplof.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox