Bug 126208 - konqueror devices:/ and media:/ behave oddly for removable devices which are dynamically created with udev, but statically in fstab.
Summary: konqueror devices:/ and media:/ behave oddly for removable devices which are ...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: media (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Linux
: NOR normal (vote)
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-25 04:35 UTC by Richard Neill
Modified: 2009-02-28 11:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Neill 2006-04-25 04:35:41 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Mandriva RPMs

[1]
By default, the devices:/ view in konqui works just as expected. 
Devices (memory-key, digital camera, ipod etc) appear (in the GUI) when they are plugged in and disappear (from the GUI) when unplugged.

The device is labelled "Removable Device (sda1)"


[2]
However, I chose to set up some udev and fstab rules for them. [The advantages of this are: more CLI-friendly, repeatable mountpoint; helpful names (if more than one removable device at a time); scriptable; digital photos are transferred with sane permissions.] Here is one such rule:

UDEV RULE: (10-local.rules)
--------------------
#Olympus digital camera
BUS=="usb", SYSFS{manufacturer}=="OLYMPUS", SYSFS{product}=="E-300", KERNEL=="sd?1", NAME="%k", SYMLINK="camera_e300"
---------------------
FSTAB:
---------------------
/dev/camera_e300 /mnt/e300 vfat pamconsole,ro,noexec,noauto,iocharset=iso8859-15,noatime,dmask=0022,fmask=0133 0 0
--------------------


[3]
Now, devices:/  behaves very oddly:
 
  (i)The device is always listed in the GUI, whether or not it is plugged in!
  (ii)The device name is now "Removable device (camera_e300)"    - correctly, but only if it exists.
  (iii)The icon is always the unmounted one, even if the device is actually mounted.
  (iv)The pop-up that occurs when you plug a removable device no longer appears.

Experimenting reveals that it is the fstab line, not the udev rule which is responsible.


[4]
The condition for this bug to occur are:
  (i)/etc/fstab contains  a permanent entry for the device. eg:
       "/dev/camera_e300 /mnt/e300 ...."

   (ii)The entry in /dev is a dynamically-created symlink. So 
       (/dev/camera_e300) does not usually exist

    (iii)when /dev/camera_e300 pops into existence (without changing fstab), KDE doesn't notice.



[5]
Note1: The behaviour is identical for media:/ and devices:/ 

Note2: Even in the default setup Mounting and Unmounting a device (from the right-click menu) does not not refreshes the view, and so the device icon doesn't change from the unmounted<-->mounted icon until I click "Reload".

Note3:
[incidentally, I think the existence of device:/ devices:/ and media:/ is a bit confusing, especially since they are not documented at all under kcontrol->information->protocols.]



I hope that's useful - if there is any more data you need, please ask. If this bug report could have been more useful, I'd welcome feedback.
Comment 1 Thiago Macieira 2006-04-27 11:33:15 UTC
devices:/ doesn't exist since KDE 3.4.0. Do you mean media:/ ?
Comment 2 Richard Neill 2006-04-27 14:13:31 UTC
On my KDE 3.5.2 system, devices:/ and media:/ are both identical. Presumably devices:/ hasn't gone away completely. But yes, this probably should be stated in terms of media:/ .
Comment 3 Kevin Ottens 2009-02-28 11:04:19 UTC
kio media doesn't exist on KDE4.