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

Pavel Machek
2004-11-27T08:45:58Z

Hi!

> >> 1) Make name_to_dev_t non init. Why should you need to reboot if all you
> >> want to do is change the device you're using to suspend? That's M_'s way
> >
> > Well, if you change it using /proc and forget to change kernel cmd line, you'll have
> > a problem. Do you really change this so often?
>
> 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.

> Yes, I was thinking of this mostly from a distribution perspective.
> There's always potential for data-loss if users resume after touching
> the root filesystem. On the other hand, it's currently possible for them
> to do that anyway (think booting a different kernel without swsusp
> support, then rebooting back into the swsusp one)

Yep...
--
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms