[Digikam-devel] digikam and can't umount

Achim Bohnet ach at mpe.mpg.de
Wed Jan 11 14:29:09 GMT 2006


On Wednesday 11 January 2006 12:32, Gilles Caulier wrote:
> Le Mercredi 11 Janvier 2006 12:19, Achim Bohnet a écrit :
> > 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?
> >
> 
> camera gui do not take thumbnails from movies files. There is no code (only 
> JPEG and RAW) ! Are you sure to talk about USB camera gui ?

Hi Gilles,

oh, no, really bad guess (and how lazy) of mine :( I never scoll down,
usually just download all. And yes, usbdisk of Sony DSC-W12 camera.

Nevertheless, something of digikam keeps those files as lsof
output shows.  What it is no idea.

When I start the camera -> usbdisd (that does automounting now too)
I get the download dialog.  After image thumbs are loaded,
I close the dialog without downloading anything.
Now:
	pumount /media/usbdisk
and
	'Savely remove' in konqueror media:/

fails and lsof gives output above.

When I exit digikam, both methods to umount the camera work
immediately again.

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