linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Zeuthen <david@fubar.dk>
To: linux-hotplug@vger.kernel.org
Subject: Re: Make an un-device?
Date: Wed, 24 Mar 2010 22:08:11 +0000	[thread overview]
Message-ID: <1269468491.28921.54.camel@localhost.localdomain> (raw)
In-Reply-To: <20100324124352.0978847e@zooty>

On Wed, 2010-03-24 at 13:52 -0400, Paul Fox wrote:
> given how often this comes up, i think it would be very useful
> for there to be a page fully describing the reasons that the udev
> project thinks the feature is a bad idea.  when i asked in
> november for the reasons behind not being able to hide devices, i
> got somewhat vague reasons.  (and i'm clearly still not
> convinced. :-)  simply stating "suppressing events at the udev
> level is wrong" isn't terribly compelling.

I'm sorry that you don't find this compelling but it came directly from
both myself and the udev maintainer (Kay Sievers) - you are free to
check the archives for better explanations. Or if you examine, in
detail, how uevents and libudev work, you will eventually understand why
ignore_device was a terrible idea to begin with [1].

> in addition, the wouldn't the solution then apply to "all" desktops,
> instead of "GNOME and some other" desktops?

FYI, the desktops that are covered by e.g. UDISKS_PRESENTATION_HIDE
includes desktops for which the following statements are true

 - they are using GVolumeMonitor to draw icons

 - they are shipping gvfs with the udisks (or DeviceKit-disks) volume
   monitor backend

which includes GNOME and, I think, XFCE, on most modern distros.

IMNSHO, it is rather naive to demand that "all" desktops need to
implement some feature (such as configuring what drives to ignore). It's
not like desktops share a lot of code or specs.

Good luck,
David

[1] : Hint: ignore_device only suppressed invocation of rules - the
uevent was still emitted and the device would still be part of any
enumeration either via libudev or sysfs.

<ramble>
What most people don't understand is that udev is just one tiny piece in
the *middle* of the stack... a stack where elements in the stack are
free to bypass layers - e.g. it is perfectly fine for a desktop app to
look in sysfs, thereby bypassing, say, udev and udisks.
 
So even if we still had ignore_device and things on top (like udisks ->
gvfs -> nautilus) actually respected it, it wouldn't work for the app
looking directly in sysfs (or /proc/scsi/scsi or whatever).
</ramble>.



  parent reply	other threads:[~2010-03-24 22:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-24 16:43 Make an un-device? Tom Horsley
2010-03-24 17:07 ` David Zeuthen
2010-03-24 17:16 ` Kay Sievers
2010-03-24 17:23 ` Tom Horsley
2010-03-24 17:52 ` Paul Fox
2010-03-24 22:08 ` David Zeuthen [this message]
2010-03-25 13:48 ` Dan Nicholson
2010-03-25 15:03 ` Kay Sievers

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=1269468491.28921.54.camel@localhost.localdomain \
    --to=david@fubar.dk \
    --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).