[Digikam-devel] digikam and can't umount
Achim Bohnet
ach at mpe.mpg.de
Wed Jan 11 11:19:44 GMT 2006
Hi Kévin, Jean-Rémy, Digikam devels
with digikam from stable one can't umount an usbdisk
camera while digikam is running.
While fuser is empty, lsof found the 'bad' guys:
allee[0] ~ # lsof | grep /media/sdb1
digikam 21856 ttt 17r REG 8,17 1550872 2822 /media/sdb1/DCIM/101MSDCF/MOV04450.MPG
digikam 21856 ttt 18r REG 8,17 1287563 2824 /media/sdb1/DCIM/101MSDCF/MOV04451.MPG
digikam 21856 ttt 19r REG 8,17 3262195 2827 /media/sdb1/DCIM/101MSDCF/MOV04452.MPG
digikam 21856 ttt 20r REG 8,17 238461 2830 /media/sdb1/DCIM/101MSDCF/MOV04453.MPG
digikam 21856 ttt 21r REG 8,17 108814 2832 /media/sdb1/DCIM/101MSDCF/MOV04454.MPG
allee[0] ~ # fuser /media/sdb1
/media/sdb1:
allee[1] ~ # lsof | grep /media/sdb1
digikam 21856 ttt 17r REG 8,17 1550872 2822 /media/sdb1/DCIM/101MSDCF/MOV04450.MPG
digikam 21856 ttt 18r REG 8,17 1287563 2824 /media/sdb1/DCIM/101MSDCF/MOV04451.MPG
digikam 21856 ttt 19r REG 8,17 3262195 2827 /media/sdb1/DCIM/101MSDCF/MOV04452.MPG
digikam 21856 ttt 20r REG 8,17 238461 2830 /media/sdb1/DCIM/101MSDCF/MOV04453.MPG
digikam 21856 ttt 21r REG 8,17 108814 2832 /media/sdb1/DCIM/101MSDCF/MOV04454.MPG
So my guess it that the create-thumbnail-for-movies part of digikam is
is locking the media even when the download dialog is closed. Tom,
Jokele Gilles et al does this make sense?
Kévin, Jean-Rémy,
if you can point us to any code example show to best add
and umount menu item to every mounted camera this
would be great. (anything less brute force than
kprocess "df | -q grep /media/whatever" && addmenuitem kprocess\
"pumount /media/whatever" ;)
Thx,
Achim
--
To me vi is Zen. To use vi is to practice zen. Every command is
a koan. Profound to the user, unintelligible to the uninitiated.
You discover truth everytime you use it.
-- reddy at lion.austin.ibm.com
More information about the Digikam-devel
mailing list