mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: "Rogério Brito" <rbrito@users.sf.net>
Cc: Alan Stern <stern@rowland.harvard.edu>,
	linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org
Subject: Re: Question on the removable flag of USB devices
Date: Tue, 26 May 2009 18:36:09 +0200	[thread overview]
Message-ID: <4A1C1A79.2020500@s5r6.in-berlin.de> (raw)
In-Reply-To: <20090525184831.GT28077@one-eyed-alien.net>

Matthew Dharm wrote:
> On Mon, May 25, 2009 at 01:45:54PM -0300, Rogério Brito wrote:
>> The question is: how are devices determined to be removable or not?
>> Sorry if this question is too naive.
> 
> It's a bit that the device reports.  The usb-storage driver passes this bit
> to the SCSI layer.

Wasn't this bit actually about removable _media_ rather than
hotpluggable transports?  (I.e. hardware where you can pull the medium
out of the drive mechanism.)  So in this sense, an USB attached HDD
should actually not present itself as "removable" unless it's a SyQuest
or Zip or something like that.

Furthermore, if that's what the discussed bit stands for, than it is
rather arbitrary to base a policy on it whether a volume may be mounted
by non-root users or not.

Rogério, perhaps static fstab entries based on /dev/disk/by-id/... can help.
-- 
Stefan Richter
-=====-==--= -=-= ==-=-
http://arcgraph.de/sr/

  reply	other threads:[~2009-05-26 16:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-25 16:45 Rogério Brito
2009-05-25 18:48 ` Matthew Dharm
2009-05-26 16:36   ` Stefan Richter [this message]
2009-05-26 17:34     ` Matthew Dharm

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=4A1C1A79.2020500@s5r6.in-berlin.de \
    --to=stefanr@s5r6.in-berlin.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=rbrito@users.sf.net \
    --cc=stern@rowland.harvard.edu \
    /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®