All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Holger Hoffstätte" <holger.hoffstaette@googlemail.com>
To: ceph-devel@vger.kernel.org
Subject: Re: Suspend and the ceph clients
Date: Thu, 15 May 2014 08:13:59 +0000 (UTC)	[thread overview]
Message-ID: <pan.2014.05.15.08.13.59@googlemail.com> (raw)
In-Reply-To: CAPYLRzhr7XA9sBArqe=5bPaXd3XPwgVGo_QOM024-J_ovh93BA@mail.gmail.com

On Wed, 14 May 2014 15:07:44 -0700, Gregory Farnum wrote:
> [..]
> Unfortunately, I don't know anything about Linux's suspend
> functionality or APIs, and my weak attempts at googling and grepping
> aren't turning anything up. So a question to everybody:
> 
> 2) What notifications does Linux send, and what filesystem mechanisms
> does it invoke, when it is suspending?

Is this what you're looking for?
https://www.kernel.org/doc/Documentation/power/freezing-of-tasks.txt

User space is usually controlled by ("legacy") pm-utils, which simply
executes a bunch of scripts (packaged and user provided) in various
stages. It works reasonably well but is of course fragile - typical
scripted duct tape.

systemd has its own (IMHO much less fragile) way of doing things:
http://www.freedesktop.org/software/systemd/man/systemd-sleep.conf.html

Hope this helps.

-h


  reply	other threads:[~2014-05-15  8:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-14 22:07 Suspend and the ceph clients Gregory Farnum
2014-05-15  8:13 ` Holger Hoffstätte [this message]
2014-05-15  8:28   ` Holger Hoffstätte
2014-05-15 14:29 ` Sage Weil
2014-05-15 22:19   ` Gregory Farnum

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=pan.2014.05.15.08.13.59@googlemail.com \
    --to=holger.hoffstaette@googlemail.com \
    --cc=ceph-devel@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 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.