All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@suse.cz>
To: Stefan Rompf <stefan@loplof.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC] userland swsusp
Date: Wed, 16 Nov 2005 19:07:16 +0000	[thread overview]
Message-ID: <20051116190715.GF2193@spitz.ucw.cz> (raw)
In-Reply-To: <200511161700.27239.stefan@loplof.de>

Hi!

> > This is prototype of userland swsusp. I'd like kernel parts to go in,
> > probably for 2.6.16. Now, I'm not sure about the interface, ioctls are
> > slightly ugly, OTOH it would be probably overkill to introduce
> > syscalls just for this. (I'll need to add an ioctl for freeing memory
> > in future).
> 
> I'm curious on the restrictions the userspace part would have to accept.
> Can /usr/swsusp.c write to a file? Currently, you allow it, but I doubt

No. Writing to file would trash the filesystem. But you can bmap the file,
then write to the block device.

> whether it would be wise to write to a file after you've snapshotted
> kernel's filesystem state. OTOH, I don't want to reserve a partition just
> for the image. Can userspace allocate memory after ioctl(SYS_FREEZE)?

Better avoid memory allocation.

> I have userspace supported encryption of the image in mind.

Yes, that should be feasible. 
							Pavel
-- 
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         


  reply	other threads:[~2005-11-16 19:20 UTC|newest]

Thread overview: 43+ 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 [this message]
2005-11-17  7:19   ` Stefan Rompf
2005-11-17 10:01     ` Pavel Machek
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-17 18:50 Starikovskiy, Alexey Y
2005-11-16 16:10 Gross, Mark
2005-11-16 16:44 ` Greg KH
2005-11-16 20:20   ` [linux-pm] " Nigel Cunningham
2005-11-16 22:10     ` Greg KH
2005-11-16 21:25       ` Nigel Cunningham
2005-11-17  7:14         ` Arjan van de Ven
2005-11-16 19:10 ` Pavel Machek
2005-11-17 16:54   ` [linux-pm] " Olivier Galibert
2005-11-17 16:44     ` Greg KH
2005-11-17 17:03       ` Patrick Mochel
2005-11-17 20:15       ` Jacek Kawa
2005-11-17 21:56         ` [linux-pm] " Greg KH
2005-11-18 17:41           ` Jacek Kawa
2005-11-16 22:05 ` [linux-pm] " Pavel Machek
2005-11-16 21:13   ` Nigel Cunningham
2005-11-16 22:41     ` Rafael J. Wysocki
2005-11-16 22:50     ` Pavel Machek
2005-11-17 17:02   ` Olivier Galibert
2005-11-17 19:57     ` Lee Revell
2005-11-17 20:12       ` Olivier Galibert
2005-11-17 20:20         ` [linux-pm] " Lee Revell
2005-11-17 20:37           ` Dave Jones
2005-11-17 20:46             ` Lee Revell
2005-11-17 20:59               ` Dave Jones
2005-11-17 20:54             ` [linux-pm] " Lee Revell
2005-11-17 21:06               ` Chris Wright
2005-11-17 21:14                 ` Lee Revell
2005-11-17 21:18                   ` Chris Wright
2005-11-17 21:09             ` [linux-pm] " Matthew Garrett
2005-11-17 21:16               ` Lee Revell
2005-11-17 20:47         ` Lee Revell
2005-11-15 21:29 Pavel Machek
2005-11-15 21:29 ` Pavel Machek
2005-11-15 21:32 ` Greg KH
2005-11-15 22:25 ` [linux-pm] " Dave Jones
2005-11-15 23:32   ` Pavel Machek
2005-11-15 23:40     ` Dave Jones
2005-11-16  8:56       ` Pavel Machek
2005-11-16 21:41       ` Rafael J. Wysocki
2005-11-16  4:35     ` [linux-pm] " Dumitru Ciobarcianu
2005-11-16  6:14       ` Greg KH
2005-11-16  6:00         ` Nigel Cunningham
2005-11-16 16:50           ` Greg KH
2005-11-16 19:57             ` Nigel Cunningham
2005-11-16 21:35               ` Pavel Machek
2005-11-16 21:13                 ` Nigel Cunningham
2005-11-16 22:47                   ` Pavel Machek
2005-11-23 10:16                     ` Lorenzo Colitti
2005-11-23 12:02                       ` Pavel Machek
2005-11-19  9:32           ` Rob Landley
2005-11-19 23:51             ` Pavel Machek
2005-11-18 19:36   ` Alan Cox
2005-11-18 21:18     ` [linux-pm] " Dave Jones
2005-11-18 21:20       ` Greg KH
2005-11-19 23:43       ` [linux-pm] " Pavel Machek
2005-11-20 21:48         ` Dave Jones
2005-11-20 22:09           ` [linux-pm] " Pavel Machek
2005-11-21 11:47             ` Rafael J. Wysocki
2005-11-21 14:19               ` 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=20051116190715.GF2193@spitz.ucw.cz \
    --to=pavel@suse.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.