linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Olaf Hering <olh@suse.de>
To: linux-hotplug@vger.kernel.org
Subject: Re: grep /proc/bus/usb /etc/fstab in etc/hotplug/usb.rc
Date: Sun, 08 Jun 2003 18:55:43 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-105509890731731@msgid-missing> (raw)

 On Mon, Jun 09, Fumitoshi UKAI wrote:

> At Sun, 8 Jun 2003 10:32:51 +0200,
> Olaf Hering wrote:
> > 
> > Hi,
> > 
> > what is the purpose of this hunk?
> > 
> > @@ -135,7 +139,7 @@
> >      if [ -d /proc/bus/usb ]; then
> >         # if it's not mounted, try to mount it
> >         if [ ! -f /proc/bus/usb/devices ]; then
> > -           if grep -q "[        ]/proc/bus/usb[         ]" /etc/fstab ; then
> > +           if grep -v '^#' /etc/fstab | grep -q "[      ]/proc/bus/usb[         ]"; then
> >                 mount /proc/bus/usb
> >             else
> >                 # NOTE: name is changing to "usbfs" from "usbdevfs"
> > ftp.debian.org/debian/pool/main/h/hotplug/hotplug_0.0.20030117-7.diff.gz lines 729-783/891 87%
> > 
> > It means, if the user has disabled usbfs in fstab, it will be mounted
> > anyway? disabling it in fstab is an effective way to disable usb hotplug
> > processing.
> > Is this 'mounting it anyway' intentionally?
> 
> This is done to fix Bug#146783
> Should I revert this?

I'm not sure, the question is what is supposed to happen.
if the user has it disabled, then he probably wants it disabled, even if
usb hotplug would not work. In this case the mount should be a
mount /proc/bus/usb &>/dev/null to avoid the error message.
If we want to have it mounted anyway, this could work:
grep '^[^#].*[      ]/proc/bus/usb[         ]' 
fstab could contain options for usbfs.

what do others think?


Gruss Olaf

-- 
USB is for mice, FireWire is for men!


-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

             reply	other threads:[~2003-06-08 18:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-08 18:55 Olaf Hering [this message]
2003-06-11  0:57 ` grep /proc/bus/usb /etc/fstab in etc/hotplug/usb.rc David Brownell

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=marc-linux-hotplug-105509890731731@msgid-missing \
    --to=olh@suse.de \
    --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).