[k3b] [Bug 349764] device in use - message received when beginning burn with K3b

Andre Gemünd scroogie at scroogie.de
Sat Sep 19 12:51:44 UTC 2015


https://bugs.kde.org/show_bug.cgi?id=349764

--- Comment #4 from Andre Gemünd <scroogie at scroogie.de> ---
Can't I edit a comment? 
However, to check if the device is in use k3b calls 

lsof -Fpc dev->blockDeviceName()

e.g. 

lsof -Fpc /dev/sr0

In my case, that indeed outputs all of the processes it shows in the dialog
(k3blsofwrapperdialog).
The problem seems to be that lsof outputs pipes with these parameters, which
you see when you omit the field selection parameter (-Fpc) :

$ lsof -w /dev/sr0 
COMMAND     PID    USER   FD   TYPE DEVICE SIZE/OFF   NODE NAME
dbus-laun  1451 gemuend    8r  FIFO   0,10      0t0  23646 pipe
gvfsd      1468 gemuend    6r  FIFO   0,10      0t0  21185 pipe
gvfsd      1468 gemuend    7w  FIFO   0,10      0t0  21185 pipe
at-spi-bu  1513 gemuend    4r  FIFO   0,10      0t0  21214 pipe
at-spi-bu  1513 gemuend    5w  FIFO   0,10      0t0  21214 pipe
start_kde  1577 gemuend    0r  FIFO   0,10      0t0  21277 pipe
start_kde  1577 gemuend    3r  FIFO   0,10      0t0  21278 pipe
kdeinit5   1578 gemuend    0r  FIFO   0,10      0t0  21277 pipe
kdeinit5   1578 gemuend    3r  FIFO   0,10      0t0  22707 pipe
kdeinit5   1578 gemuend    4w  FIFO   0,10      0t0  21278 pipe
kdeinit5   1578 gemuend    6w  FIFO   0,10      0t0  22707 pipe
klauncher  1579 gemuend    0r  FIFO   0,10      0t0  21277 pipe
klauncher  1579 gemuend    6r  FIFO   0,10      0t0  22716 pipe
klauncher  1579 gemuend    8w  FIFO   0,10      0t0  22716 pipe
klauncher  1579 gemuend   12r  FIFO   0,10      0t0  21295 pipe
klauncher  1579 gemuend   13w  FIFO   0,10      0t0  21295 pipe
kded5      1582 gemuend    0r  FIFO   0,10      0t0  21277 pipe
kded5      1582 gemuend    6r  FIFO   0,10      0t0  22121 pipe
kded5      1582 gemuend    8w  FIFO   0,10      0t0  22121 pipe
kded5      1582 gemuend   21w  FIFO   0,10      0t0  21324 pipe
kded5      1582 gemuend   22r  FIFO   0,10      0t0  21325 pipe
[...]

Does someone know by heart how to omit pipes and sockets with lsof? Otherwise I
will try to investigate tomorrow and maybe provide a patch.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the k3b mailing list