From: Karel Zak <kzak@redhat.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev rule for unmount action
Date: Mon, 08 Jun 2009 12:38:26 +0000 [thread overview]
Message-ID: <20090608123826.GD6817@nb.net.home> (raw)
In-Reply-To: <200906061702.10974.chris@ilovelinux.de>
On Sat, Jun 06, 2009 at 06:27:26PM +0200, Marco d'Itri wrote:
> On Jun 06, Christian Schmitt <chris@ilovelinux.de> wrote:
>
> > unplug the device. Is there a way to execute a script when unmounting? I guess
> > doing this on the DE level is not the best way to go.
> The approved method is using inotify(2) on /proc/mounts, which is not
> related to udev.
/proc and inotify are not good friends, but you can use poll() / select()
Karel
--
Karel Zak <kzak@redhat.com>
next prev parent reply other threads:[~2009-06-08 12:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-06 15:02 udev rule for unmount action Christian Schmitt
2009-06-06 16:27 ` Marco d'Itri
2009-06-07 13:05 ` Christian Schmitt
2009-06-08 12:38 ` Karel Zak [this message]
2009-06-08 14:42 ` Christian Schmitt
2009-06-09 0:45 ` David Zeuthen
2009-06-10 19:34 ` Christian Schmitt
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=20090608123826.GD6817@nb.net.home \
--to=kzak@redhat.com \
--cc=linux-hotplug@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;
as well as URLs for NNTP newsgroup(s).