Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-12-09 Thread Matthew Garrett
On Wed, Dec 06, 2006 at 11:10:06AM +1100, Nigel Cunningham wrote: > Is all the converting of uuids to device nodes done in userspace? I > haven't noticed anything in the kernel to handle uuids, but I don't look > at filesystem code much. Yes, this is all done by udev. -- Matthew Garrett | [EMAI

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-12-05 Thread Nigel Cunningham
Hi again. On Tue, 2006-12-05 at 11:51 +, Matt Sealey wrote: > Nigel Cunningham wrote: > > > >> But this engineer should also know if he depends on the UUID of the swap > >> partition to find it. If he does not, he can simply do a "mkswap" to reset > >> the signature. > > > > Since you menti

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-12-05 Thread Matt Sealey
Nigel Cunningham wrote: > >> But this engineer should also know if he depends on the UUID of the swap >> partition to find it. If he does not, he can simply do a "mkswap" to reset >> the signature. > > Since you mentioned it, what's they point to using these ugly, looong > uuids? /dev/hda2 is so

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-12-05 Thread Stefan Seyfried
On Tue, Dec 05, 2006 at 10:28:08PM +1100, Nigel Cunningham wrote: > Since you mentioned it, what's they point to using these ugly, looong > uuids? /dev/hda2 is so much simpler and easier to read for mere humans. Try updating a system using, say, the piix driver for the harddisk to the new libata

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-12-05 Thread Nigel Cunningham
Hi. On Mon, 2006-12-04 at 09:10 +0100, Stefan Seyfried wrote: > On Sat, Dec 02, 2006 at 03:41:52PM +1100, Nigel Cunningham wrote: > > Hi. > > > > On Fri, 2006-12-01 at 08:39 +0100, Stefan Seyfried wrote: > > > So if somebody submits a patch that implements a "reset_signature" > > > program, > >

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-12-04 Thread Stefan Seyfried
On Sat, Dec 02, 2006 at 03:41:52PM +1100, Nigel Cunningham wrote: > Hi. > > On Fri, 2006-12-01 at 08:39 +0100, Stefan Seyfried wrote: > > So if somebody submits a patch that implements a "reset_signature" program, > > i'll include that in the suspend package. > > I don't know if you care (you mig

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-12-02 Thread Matthew Garrett
On Thu, Nov 30, 2006 at 03:42:00PM -0500, Daniel Drake wrote: > On Thu, 2006-11-30 at 15:00 -0500, Peter Jones wrote: > > Ugh, no it's not. You really want the UUID on the swap area to remain > > the same. > > Why? tyrosine% grep swap /etc/fstab UUID=12f199be-99bd-44eb-b0c6-0a1ee9da89b8 none swa

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-12-01 Thread Nigel Cunningham
Hi. On Fri, 2006-12-01 at 08:39 +0100, Stefan Seyfried wrote: > So if somebody submits a patch that implements a "reset_signature" program, > i'll include that in the suspend package. I don't know if you care (you might not want to support Suspend2), but for Suspend2 enabled kernels, you can just

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-30 Thread Stefan Seyfried
On Thu, Nov 30, 2006 at 05:17:47PM -0500, Peter Jones wrote: > On Thu, Nov 30, 2006 at 03:00:43PM -0500, I wrote: > > On Tue, 2006-11-28 at 17:37 +0100, Stefan Seyfried wrote: > > > > > So it is a good idea to tell the engineer to do "mkswap" on the swap > > > partition before putting the disk int

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-30 Thread Peter Jones
On Thu, Nov 30, 2006 at 03:00:43PM -0500, I wrote: > On Tue, 2006-11-28 at 17:37 +0100, Stefan Seyfried wrote: > > > So it is a good idea to tell the engineer to do "mkswap" on the swap > > partition before putting the disk into the replacement hardware. > > Ugh, no it's not. You really want the

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-30 Thread Daniel Drake
On Thu, 2006-11-30 at 15:00 -0500, Peter Jones wrote: > Ugh, no it's not. You really want the UUID on the swap area to remain > the same. Why? [not questioning your reasoning, this is coming from someone who knows very little about swap structure and what the UUID is used for] Daniel ---

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-30 Thread Stefan Seyfried
On Thu, Nov 30, 2006 at 03:00:43PM -0500, Peter Jones wrote: > On Tue, 2006-11-28 at 17:37 +0100, Stefan Seyfried wrote: > > > So it is a good idea to tell the engineer to do "mkswap" on the swap > > partition before putting the disk into the replacement hardware. > > Ugh, no it's not. You reall

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-30 Thread Peter Jones
On Tue, 2006-11-28 at 17:37 +0100, Stefan Seyfried wrote: > So it is a good idea to tell the engineer to do "mkswap" on the swap > partition before putting the disk into the replacement hardware. Ugh, no it's not. You really want the UUID on the swap area to remain the same. -- Peter -

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-28 Thread Stefan Seyfried
On Tue, Nov 28, 2006 at 08:06:03PM +0100, Emilio Scalise wrote: > In suspend2 (now I will get flamed...) there is a nice feature that > warns that you are trying to resume with a wrong kernel, that lets you > reboot the machine without losing anything I won't flame you. It just does not help

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-28 Thread Daniel Drake
On Tue, 2006-11-28 at 17:37 +0100, Stefan Seyfried wrote: > He just has to look at the end of the first page of the swap partition > for the signature :-) > > So it is a good idea to tell the engineer to do "mkswap" on the swap > partition before putting the disk into the replacement hardware. Th

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-28 Thread Emilio Scalise
2006/11/28, Stefan Seyfried <[EMAIL PROTECTED]>: > On Tue, Nov 28, 2006 at 10:43:51AM -0500, Alan Stern wrote: > > On Tue, 28 Nov 2006, Daniel Drake wrote: > > > > > Hi, > > > > > > I have some questions about this text in Documentation/power/swsusp.txt: > > > > > > * If you touch anything on disk

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-28 Thread Stefan Seyfried
On Tue, Nov 28, 2006 at 10:43:51AM -0500, Alan Stern wrote: > On Tue, 28 Nov 2006, Daniel Drake wrote: > > > Hi, > > > > I have some questions about this text in Documentation/power/swsusp.txt: > > > > * If you touch anything on disk between suspend and resume... > > *

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-28 Thread Alan Stern
On Tue, 28 Nov 2006, Daniel Drake wrote: > Hi, > > I have some questions about this text in Documentation/power/swsusp.txt: > > * If you touch anything on disk between suspend and resume... > *...kiss your data goodbye. > > It's obvious that this is a bad idea but