mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@suse.cz>
To: "Albert D. Cahalan" <acahalan@cs.uml.edu>
Cc: kernel list <linux-kernel@vger.kernel.org>
Subject: Re: swsusp: move resume before mounting root [diff against vanilla 2.4.9]
Date: Sat, 29 Sep 2001 10:40:27 +0200	[thread overview]
Message-ID: <20010929104027.C28329@atrey.karlin.mff.cuni.cz> (raw)
In-Reply-To: <20010928224001.B1100@bug.ucw.cz> <200109290755.f8T7t7R443599@saturn.cs.uml.edu>
In-Reply-To: <200109290755.f8T7t7R443599@saturn.cs.uml.edu>

Hi!

> > [Albert Cahalan]
> >> [Pavel Machek]
> 
> >>> I can't do that: open deleted files.
> >>
> >> Tough luck. Either use the same hack as NFS, or have such files
> >> return -EIO for all operations and give SIGBUS for mappings.
> >> Maybe just refuse to suspend when there are open deleted files.
> >> Oh, just create a name in the filesystem root and use that.
> >> Something like ".8fe4a979.swsusp" would be fine. Whatever!
> >
> > ...and break locking and similar stuff. NFS is not as good as local
> > filesystem.
> 
> Oh well. Network connections die and real-time apps fail too.
> It is important to have safe and useful behavior in the presence
> of arbitrary filesystem modifications. It is very nice to be able
> to use suspend/resume to alternate between two running kernels.
> 
> I wouldn't worry about locking. Write/discard all data on suspend,
> then examine the inode on resume. As long as the inode doesn't
> change by more than the atime, the lock can survive.

And if did? So now semantics is "it somehow works in presence of FS
modifications, but not completely"?

I look at it this way: ability to survive filesystem modifications
would be nice, but it is quite hard to do. (Probably bigger diff than
what I have, now.)

Admitedly, it would also be nice to be able for kernel *to survive
arbitrary fs modifications without suspend-to-disk* -- imagine two
machines sharing one SCSI disk. No other suspend-to-disk
implementation I know of does what you describe. So I treat problems
orthogonal. What you want is usefull (you can do forced unmount that
way), but it is not required for software suspend.
							Pavel
-- 
Casualities in World Trade Center: 6453 dead inside the building,
cryptography in U.S.A. and free speech in Czech Republic.

      reply	other threads:[~2001-09-29  8:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-18 16:42 Pavel Machek
     [not found] ` <200109260602.f8Q62TM420328@saturn.cs.uml.edu>
2001-09-26  8:19   ` Pavel Machek
2001-09-27  3:02     ` Albert D. Cahalan
2001-09-27  4:29       ` Andreas Dilger
2001-09-27  4:51       ` Tim Connors
2001-09-29 22:23         ` Pavel Machek
2001-09-27 14:34       ` swsusp: move " Pavel Machek
2001-09-28  3:56         ` Albert D. Cahalan
2001-09-28 20:40           ` Pavel Machek
2001-09-29  7:55             ` Albert D. Cahalan
2001-09-29  8:40               ` Pavel Machek [this message]

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=20010929104027.C28329@atrey.karlin.mff.cuni.cz \
    --to=pavel@suse.cz \
    --cc=acahalan@cs.uml.edu \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®