Re: Suspend 2 merge: 9/51: init/* changes.

Herbert Xu
2004-11-27T09:32:16Z

Pavel Machek <pavel@ucw.cz> wrote:
>
>> name_to_dev_t needs to be non-init in order to make it possible to
>> trigger a resume when the block device driver isn't static. Pavel, would
>> you be willing to consider a patch to make it possible to trigger swsusp
>> resume from userspace? That gets things working with initrd kernels.
>> I've been using something along these lines for a few weeks now, and it
>> hasn't eaten my filesystem yet.
>
> Given it is not too intrusive... why not. Send it for comments.
> I probably will not use this myself, so you'll need to test/maintain
> it.

This shouldn't be necessary. Since the resume is being initiated by
userspace, it can perform the function of name_to_dev_t and just feed
the numbers to the kernel. The code to do that is still in Debian's
initrd-tools.

Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt