Debian Bug report logs -
#595406
ltspfsd-core: cdpinger doesn't work well with USB CDROM drives
Reported by: Vagrant Cascadian <vagrant+debianbugs@freegeek.org>
Date: Fri, 3 Sep 2010 18:09:05 UTC
Severity: important
Tags: patch
Found in version ltspfs/0.6-1
Fixed in version 0.7-1
Done: Vagrant Cascadian <vagrant@freegeek.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#595406; Package ltspfsd-core.
(Fri, 03 Sep 2010 18:09:08 GMT) (full text, mbox, link).
Acknowledgement sent
to Vagrant Cascadian <vagrant+debianbugs@freegeek.org>:
New Bug report received and forwarded. Copy sent to LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>.
(Fri, 03 Sep 2010 18:09:08 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: ltspfsd-core
Version: 0.6-1
Severity: important
Tags: patch
cdpinger doesn't appear to properly die when the USB CDROM drive is removed,
leaving running cdpinger processes which lead to spurious mount and unmount
calls to the non-existant CDROM drive.
the following patch from upstream should resolve the issue, by calling cdpinger
with the real device name rather than the symlinked device name:
144 Gideon Romm 2010-05-11
revision-id:gideon@symbio-technologies.com-20100511145337-kev7n65bjxxiz67v
Remove commented-out code.
143 Gideon Romm 2010-05-11
revision-id:gideon@symbio-technologies.com-20100511133014-m8ca2051wencjbkd
Fix cdrom handling.
=== modified file 'scripts/ltspfs_entry'
--- scripts/ltspfs_entry 2010-02-11 03:08:21 +0000
+++ scripts/ltspfs_entry 2010-05-11 14:53:37 +0000
@@ -130,19 +130,14 @@
}
call_cdpinger(){
- if [ ! -e /var/run/cdpinger.$1.pid ] && [ -z $(pgrep -f -l -x "/usr/sbin/cdpinger $1") ]; then
+ if [ -z $(pgrep -f -l -x "/usr/sbin/cdpinger $1") ]; then
/usr/sbin/cdpinger $1 &
- echo $! > /var/run/cdpinger.$1.pid
return 0
fi
}
kill_cdpinger(){
- if [ -e /var/run/cdpinger.$1.pid ]; then
- pid=$(cat /var/run/cdpinger.$1.pid)
- [ -n "$pid" ] && kill -9 $pid 2>/dev/null
- rm -f /var/run/cdpinger.$1.pid 2>/dev/null
- fi
+ pkill -f -x "/usr/sbin/cdpinger $1"
}
verify_device() {
@@ -218,18 +213,8 @@
DEVICENAME="$1"
# handle CDROM devices, which do not produce udev add/remove events
if [ "${ID_TYPE}" = "cd" ]; then
- cd_device="$DEVICENAME"
- for link in $($udevinfo -q symlink -n ${DEVICENAME}) ; do
- case $link in
- cdrom*)
- cd_device="$link"
- break
- ;;
- esac
- done
-
# started new cdpinger, which will handle the rest
- call_cdpinger $cd_device
+ call_cdpinger ${DEVICENAME}
exit 0
fi
}
@@ -238,22 +223,20 @@
DEVICENAME="$1"
# handle CDROM devices, which do not produce udev add/remove events
if [ "${ID_TYPE}" = "cd" ]; then
- cd_device="$DEVICENAME"
- for link in $($udevinfo -q symlink -n ${DEVICENAME}) ; do
- case $link in
- cdrom*)
- cd_device="$link"
- break
- ;;
- esac
- done
- kill_cdpinger $cd_device
- exit 0
+ kill_cdpinger ${DEVICENAME}
fi
}
add_device() {
DEVICENAME="$1"
+ for link in $($udevinfo -q symlink -n ${DEVICENAME}) ; do
+ case $link in
+ cdrom*)
+ LABEL="$link"
+ break
+ ;;
+ esac
+ done
case $DEVICENAME in
fd*)
Reply sent
to Vagrant Cascadian <vagrant@freegeek.org>:
You have taken responsibility.
(Fri, 03 Sep 2010 18:45:05 GMT) (full text, mbox, link).
Notification sent
to Vagrant Cascadian <vagrant+debianbugs@freegeek.org>:
Bug acknowledged by developer.
(Fri, 03 Sep 2010 18:45:06 GMT) (full text, mbox, link).
Message #10 received at 595406-done@bugs.debian.org (full text, mbox, reply):
Version: 0.7-1
this is fixed in upstream version 0.7, which is currently in experimental.
live well,
vagrant
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Tue, 12 Oct 2010 07:31:24 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sat Jul 1 13:27:42 2023;
Machine Name:
bembo
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.