Bug 8755

Summary: Multisession DVDs have weird behaviour
Product: hal Reporter: FrogPR <p.roediger>
Component: haldAssignee: David Zeuthen (not reading bugmail) <zeuthen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high CC: danny.kukawka
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch to revert the multisession code in HAL

Description FrogPR 2006-10-24 13:29:46 UTC
When inserting multisession DVDs, hal recognizes the inserted DVD. But when
trying to mount it via pmount-hal, the computer would hang. Mounting with the
traditional "mount" works flawlessly. Also, the Volume.label is not recognized
(it should be "NEU", works in Windows btw.). I'll attach the output of lshal:

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

udi = '/org/freedesktop/Hal/devices/volume_part_1_size_4017127424'
  org.freedesktop.Hal.Device.Volume.method_execpaths = {'hal-storage-eject'}
(string list)
  org.freedesktop.Hal.Device.Volume.method_argnames = {'extra_options'} (string
list)
  org.freedesktop.Hal.Device.Volume.method_signatures = {'as'} (string list)
  org.freedesktop.Hal.Device.Volume.method_names = {'Eject'} (string list)
  info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  info.udi = '/org/freedesktop/Hal/devices/volume_part_1_size_4017127424'  (string)
  info.product = 'Volume'  (string)
  volume.disc.capacity = 3748003840  (0xdf660000)  (uint64)
  volume.disc.is_svcd = false  (bool)
  volume.disc.is_vcd = false  (bool)
  volume.disc.is_videodvd = false  (bool)
  volume.disc.is_rewritable = false  (bool)
  volume.disc.is_appendable = true  (bool)
  volume.disc.is_blank = false  (bool)
  volume.disc.has_data = true  (bool)
  volume.disc.has_audio = false  (bool)
  volume.disc.type = 'dvd_r'  (string)
  volume.size = 4017127424  (0xef708000)  (uint64)
  volume.num_blocks = 7845952  (0x77b840)  (int)
  volume.block_size = 2048  (0x800)  (int)
  info.capabilities = {'volume.disc', 'volume', 'block'} (string list)
  info.category = 'volume'  (string)
  volume.is_partition = false  (bool)
  volume.is_disc = true  (bool)
  volume.linux.is_device_mapper = false  (bool)
  volume.is_mounted_read_only = false  (bool)
  volume.is_mounted = false  (bool)
  volume.mount_point = ''  (string)
  volume.label = ''  (string)
  volume.uuid = ''  (string)
  volume.fsversion = ''  (string)
  volume.fsusage = ''  (string)
  volume.fstype = ''  (string)
  storage.model = ''  (string)
  block.storage_device =
'/org/freedesktop/Hal/devices/storage_model_MATSHITAUJ_845D'  (string)
  block.is_volume = true  (bool)
  block.minor = 64  (0x40)  (int)
  block.major = 3  (0x3)  (int)
  block.device = '/dev/hdb'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  info.parent = '/org/freedesktop/Hal/devices/storage_model_MATSHITAUJ_845D' 
(string)
  linux.sysfs_path_device = '/sys/block/hdb/fakevolume'  (string)
  linux.sysfs_path = '/sys/block/hdb/fakevolume'  (string)


Btw., I'm not 100% sure that the DVD is really multisession, but when trying to
copy it with k3b it complains that copying multisession DVDs is not supported. 

I was able to reproduce this bug on two different machines (with different DVD
drives), in both cases the pmount-hal fails and the computer would hang.
HAL-Version is 0.5.8.1, Debian unstable packages
Comment 1 Danny Kukawka 2007-02-13 14:55:19 UTC
The problem is that the DVD fstype get not detected. Because of this you _can't_ mount the media via HAL. pmount-hal (not sure what this is exactly) should respect this if there is no mount method on the device object of this volume (if pmount-hal use hal methodes to mount).

Btw. It known that the multisession code in HAL not work as expected. At SUSE e.g. we deactivated this code to get all working. I attach the patch.
Comment 2 Danny Kukawka 2007-02-13 15:02:03 UTC
Created attachment 8699 [details] [review]
Patch to revert the multisession code in HAL

Not sure if this apply to 0.5.8.1, but please check if this help you!
Comment 3 Danny Kukawka 2007-04-02 03:28:56 UTC
This is now fixed in >= 0.5.9rc3. If it not work for you, please reopen.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.