Say what application is using the device

Bug #275862 reported by Vadim Peretokin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ejecter
Fix Released
Wishlist
Federico Pelloni

Bug Description

It would be great if ejecter could tell you which application is using the device, so you can shut down that app.

Revision history for this message
Federico Pelloni (fredp) wrote :

Don't know if this is possible as Ejecter does not handle directly the unmount process, it just calls the unmount method of the Gio library which also cares of showing notifications and message dialogs.

Changed in ejecter:
assignee: nobody → fredp
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Federico Pelloni (fredp) wrote :

Triaging.

Changed in ejecter:
status: Confirmed → Triaged
Revision history for this message
Daniele Napolitano (dnax88) wrote :

Hi, you can get process name and PID by execute lsof | grep <mount_point>.

Trough some Linux API you can find the same result of lsof, but I don't know if exist Vala bindings.

Revision history for this message
Daniele Napolitano (dnax88) wrote :

There is another command useful: fuser

fuser -c <device_name> List processes ID

fuser -c -i -k <device_name> Kill and ask processes using this mounted file system

Regards.

Revision history for this message
Federico Pelloni (fredp) wrote :

Fix committed in karmic-gdu branch. Now Ejecter tells which application is keeping the device busy (as new Nautilus does) thanks to Gtk.MountOperation.

Changed in ejecter:
status: Triaged → Fix Committed
Federico Pelloni (fredp)
Changed in ejecter:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.