Debian Bug report logs - #321694
usbmount: use vendor/model in mountpoints

version graph

Package: usbmount; Maintainer for usbmount is Rogério Brito <rbrito@ime.usp.br>; Source for usbmount is src:usbmount (PTS, buildd, popcon).

Reported by: Andreas Pakulat <apaku@gmx.de>

Date: Sat, 6 Aug 2005 23:33:09 UTC

Severity: wishlist

Tags: patch

Found in version usbmount/0.0.14-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Martin Dickopp <martin@zero-based.org>:
Bug#321694; Package usbmount. (full text, mbox, link).


Acknowledgement sent to Andreas Pakulat <apaku@gmx.de>:
New Bug report received and forwarded. Copy sent to Martin Dickopp <martin@zero-based.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Andreas Pakulat <apaku@gmx.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: usbmount: use vendor/model in mountpoints
Date: Sun, 07 Aug 2005 01:25:20 +0200
[Message part 1 (text/plain, inline)]
Package: usbmount
Version: 0.0.14-1
Severity: wishlist

Hi,

while discussing usb and automounting on debian-user-german lately I
wrote something like a mini-usbmount in python and later on figured that
usbmount has evolved a lot since last time I looked at it. I figured
that the attached patch might be useful, especially for people who
plug/unplug devices a lot and end up looking into each usb[0-7] dir to
find out where the new device was mounted. 

The patch basically just gets vendor/model from sysfs (I just pushed the
code for that further to the beginning) and then uses
<vendor>_<model>_<device> as the name for the mountpoint in /media. If vendor
and model are not available it uses just /media/usb_<device>, if any of
the both is available it is used. <device> here is the block device name
(i.e. sdXY or as it is here smallusb1, usbstick1 or cfcard). 

To do the unmounting the built-up mountpoint name is saved in a file in
/var/run/usbmount/vmmountpoints, called the same as the mountpoint. Upon
unmounting the directory in /media is removed.

The patch uses sed in 2 or 3 locations, if you know that bash can do the
same, please feel free to change it, such that usbmount doesn't need to
depend on sed. I'm not that much of a bash hacker to know about this
stuff.

The behaviour of usbmount can be controlled with a new configuration
variable called VENDORMODELMOUNTPOINTS, so that the old
mountpoint-behaviour is still intact (and the default).

Andreas

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-cherry+noradeon+8139c+
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages usbmount depends on:
ii  lockfile-progs                0.1.10     Programs for locking and unlocking
ii  sed                           4.1.4-2    The GNU sed stream editor
ii  udev                          0.065-1    /dev/ management daemon

usbmount recommends no packages.

-- no debconf information
[usbmount.patch (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#321694; Package usbmount. (Sat, 09 May 2009 07:39:13 GMT) (full text, mbox, link).


Acknowledgement sent to Rogério Brito <rbrito@ime.usp.br>:
Extra info received and forwarded to list. (Sat, 09 May 2009 07:39:13 GMT) (full text, mbox, link).


Message #10 received at 321694@bugs.debian.org (full text, mbox, reply):

From: Rogério Brito <rbrito@ime.usp.br>
To: 377548@bugs.debian.org
Cc: 317844@bugs.debian.org, 337795@bugs.debian.org, 356227@bugs.debian.org, 402389@bugs.debian.org, 502352@bugs.debian.org, 508699@bugs.debian.org, 361693@bugs.debian.org, 510007@bugs.debian.org, 321694@bugs.debian.org, 326081@bugs.debian.org
Subject: Is this bug still being seen?
Date: Sat, 9 May 2009 04:36:46 -0300
Hi,

I am triaging some bugs of usbmount to see if they are still  
reproducible (some still seem to be, but others do not---or, at  
least, I can't).

Could you please let me know if you still see the problem that you've  
reported with the latest package (version 0.0.17) from unstable (soon  
to be migrated to testing)?

Please, if you find any new bugs, don't hesitate to file another one  
against usbmount.

If you submitted a patch, can you see if it is still needed? I would  
like to kill as many bugs as possible with an upcoming version.


Thanks, Rogério Brito.





Added tag(s) patch. Request was from olivier <oberger@ouvaton.org> to control@bugs.debian.org. (Mon, 22 Mar 2010 07:54:30 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Rogério Brito <rbrito@ime.usp.br>:
Bug#321694; Package usbmount. (Mon, 22 Mar 2010 07:57:03 GMT) (full text, mbox, link).


Acknowledgement sent to Olivier Berger <oberger@ouvaton.org>:
Extra info received and forwarded to list. Copy sent to Rogério Brito <rbrito@ime.usp.br>. (Mon, 22 Mar 2010 07:57:03 GMT) (full text, mbox, link).


Message #17 received at 321694@bugs.debian.org (full text, mbox, reply):

From: Olivier Berger <oberger@ouvaton.org>
To: 321694@bugs.debian.org
Subject: Re: Bug#321694: usbmount: use vendor/model in mountpoints
Date: Mon, 22 Mar 2010 08:55:04 +0100
Hi.

On Sun, Aug 07, 2005 at 01:25:20AM +0200, Andreas Pakulat wrote:
> 
> The patch basically just gets vendor/model from sysfs (I just pushed the
> code for that further to the beginning) and then uses
> <vendor>_<model>_<device> as the name for the mountpoint in /media. If vendor
> and model are not available it uses just /media/usb_<device>, if any of
> the both is available it is used. <device> here is the block device name
> (i.e. sdXY or as it is here smallusb1, usbstick1 or cfcard). 
> 

Are there any plans to incorporate this change ?

Maybe it would even be better if the eventual LABEL of the mounted partition was used as a moint point dir too...

Thanks in advance.

-- 
Olivier BERGER 
(OpenPGP: 1024D/B4C5F37F)
http://www.olivierberger.com/weblog/




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jan 7 11:52:51 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.