Bug 160947 - Floppy disks don't show up in media:/ ioslave when HAL is used
Summary: Floppy disks don't show up in media:/ ioslave when HAL is used
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: media (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-17 19:31 UTC by Jeremy Erickson
Modified: 2009-02-28 11:05 UTC (History)
2 users (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 Jeremy Erickson 2008-04-17 19:31:35 UTC
Version:            (using KDE 3.5.8)
Installed from:    Gentoo Packages
Compiler:          gcc 4.1.2 (Gentoo package) 
OS:                Linux

On both Gentoo running KDE 3.5.8 and Fedora running KDE 3.5.6 (both using distributor packages), floppy drives do not show up in media:/ (or in the media applet, etc.)  Manually entering "media:/fd0" does work, as does manually creating a device icon on the desktop pointing to /dev/fd0.  If I disable HAL, and I have an entry for the floppy drive in /etc/fstab, everything also works.  In that case, the icon even displays in media:/ as expected.  I tried both with and without the floppy drive in /etc/fstab file while using HAL, and it didn't make a difference.

It appears that all the settings are correct for KDE to be able to mount the floppy, it just isn't showing up.  (I did try with the media applet making sure the "Unmounted Floppy" checkbox was checked, and it made no difference.)  I noticed that the HAL device (/org/freedesktop/Hal/devices/platform_floppy_0_storage) has is_volume set to "false", but according to some Googling it appears this is the intended behavior of HAL.  Perhaps this is causing a problem for KDE?

Here is the output of a couple HAL commands:
lshal -l -u /org/freedesktop/Hal/devices/platform_floppy_0

udi = '/org/freedesktop/Hal/devices/platform_floppy_0'
  info.bus = 'platform'  (string)
  info.parent = '/org/freedesktop/Hal/devices/computer'  (string)
  info.product = 'Platform Device (floppy.0)'  (string)
  info.subsystem = 'platform'  (string)
  info.udi = '/org/freedesktop/Hal/devices/platform_floppy_0'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'platform'  (string)
  linux.sysfs_path = '/sys/devices/platform/floppy.0'  (string)
  platform.id = 'floppy.0'  (string)

lshal -l -u /org/freedesktop/Hal/devices/platform_floppy_0_storage

udi = '/org/freedesktop/Hal/devices/platform_floppy_0_storage'
  block.device = '/dev/floppy/fd0'  (string)
  block.is_volume = false  (bool)
  block.major = 2  (0x2)  (int)
  block.minor = 0  (0x0)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/platform_floppy_0_storage'  (string)
  info.capabilities = {'storage', 'block'} (string list)
  info.category = 'storage'  (string)
  info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  info.parent = '/org/freedesktop/Hal/devices/platform_floppy_0'  (string)
  info.product = 'PC Floppy Drive'  (string)
  info.udi = '/org/freedesktop/Hal/devices/platform_floppy_0_storage'  (string)
  info.vendor = ''  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/block/fd0'  (string)
  org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point fstype extra_options', 'extra_options', 'extra_options'} (string list)
  org.freedesktop.Hal.Device.Volume.method_execpaths = {'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', 'Eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as', 'as'} (string list)
  storage.automount_enabled_hint = true  (bool)
  storage.bus = 'platform'  (string)
  storage.drive_type = 'floppy'  (string)
  storage.hotpluggable = false  (bool)
  storage.media_check_enabled = false  (bool)
  storage.model = ''  (string)
  storage.no_partitions_hint = true  (bool)
  storage.originating_device = '/org/freedesktop/Hal/devices/platform_floppy_0'  (string)
  storage.physical_device = '/org/freedesktop/Hal/devices/platform_floppy_0'  (string)
  storage.removable = true  (bool)
  storage.removable.media_available = false  (bool)
  storage.requires_eject = false  (bool)
  storage.size = 0  (0x0)  (uint64)
  storage.vendor = 'PC Floppy Drive'  (string)
  volume.is_mounted = false  (bool)
  volume.is_mounted_read_only = false  (bool)
  volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'utf8', 'shortname=', 'codepage=', 'iocharset=', 'umask=', 'uid='} (string list)
  volume.mount_point = ''  (string)
Comment 1 Moritz Moeller-Herrmann 2008-09-11 21:51:06 UTC
This bug no longer applies to KDE 4.1.1, as the media:/ ioslave no longer exists. Can this be closed?
Comment 2 Noah Sheppard 2008-09-12 22:22:01 UTC
As this is still a problem in KDE 3, I do not think the bug should be closed, especially since KDE 3 is still being supported (right?).

This is still a problem for us, although not much since very few people use floppies.  It would be nice to get it fixed, though.
Comment 3 Kevin Ottens 2009-02-28 11:05:26 UTC
kio media doesn't exist on KDE4.