Bug 93771 - udisks does not enable gvfs to detect cd/dvd drive
Summary: udisks does not enable gvfs to detect cd/dvd drive
Status: NEW
Alias: None
Product: udisks
Classification: Unclassified
Component: detection (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Martin Pitt
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-19 10:22 UTC by john.frankish
Modified: 2019-09-26 16:29 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description john.frankish 2016-01-19 10:22:40 UTC
Using udesks-2.1.6, gvfs-1.26.2, libatasmart-0.19

It seems like udisks does not pass gvfs enough information to know that /dev/sr0 is a cd/dvd and gvfs-mount fails - see https://bugzilla.gnome.org/show_bug.cgi?id=759952

$ gvfs-mount cdda://sr0
Error mounting location: volume doesn't implement mount

gst-launch-1.0 and xmms will both play audio cds from /dev/sr0

Are there any udisks/udev tests I can try to further debug this?

More details below;


$ udisksctl monitor
Monitoring the udisks daemon. Press Ctrl+C to exit.
15:17:35.834: The udisks-daemon is running (name-owner :1.33).
15:17:43.493: Added /org/freedesktop/UDisks2/drives/Dell_DVD_2b_2f_RW_DW514_D4A0801277
  org.freedesktop.UDisks2.Drive:
    CanPowerOff:                true
    Configuration:              {}
    ConnectionBus:              usb
    Ejectable:                  true
    Id:                         Dell-DVD+--RW-DW514-D4A0801277
    Media:                      
    MediaAvailable:             false
    MediaChangeDetected:        true
    MediaCompatibility:         optical_cd
                                optical_cd_r
                                optical_cd_rw
                                optical_dvd
                                optical_dvd_plus_r
                                optical_dvd_plus_r_dl
                                optical_dvd_plus_rw
                                optical_dvd_r
                                optical_dvd_ram
                                optical_dvd_rw
                                optical_mrw
                                optical_mrw_w
    MediaRemovable:             true
    Model:                      DVD+/-RW DW514
    Optical:                    false
    OpticalBlank:               false
    OpticalNumAudioTracks:      0
    OpticalNumDataTracks:       0
    OpticalNumSessions:         0
    OpticalNumTracks:           0
    Removable:                  true
    Revision:                   0102
    RotationRate:               -1
    Seat:                       seat0
    Serial:                     D4A0801277
    SiblingId:                  /sys/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0
    Size:                       0
    SortKey:                    01hotplug/1452871063492386
    TimeDetected:               1452871063492386
    TimeMediaDetected:          0
    Vendor:                     Dell
    WWN:                        
15:17:43.493: Added /org/freedesktop/UDisks2/block_devices/sr0
  org.freedesktop.UDisks2.Block:
    Configuration:              [('fstab', {'fsname': <b'/dev/sr0'>, 'dir': <b'/mnt/sr0'>, 'type': <b'auto'>, 'opts': <b'noauto,users,exec'>, 'freq': <0>, 'passno': <0>})]
    CryptoBackingDevice:        '/'
    Device:                     /dev/sr0
    DeviceNumber:               2816
    Drive:                      '/org/freedesktop/UDisks2/drives/Dell_DVD_2b_2f_RW_DW514_D4A0801277'
    HintAuto:                   true
    HintIconName:               
    HintIgnore:                 false
    HintName:                   
    HintPartitionable:          false
    HintSymbolicIconName:       
    HintSystem:                 false
    Id:                         
    IdLabel:                    
    IdType:                     
    IdUUID:                     
    IdUsage:                    
    IdVersion:                  
    MDRaid:                     '/'
    MDRaidMember:               '/'
    PreferredDevice:            /dev/sr0
    ReadOnly:                   true
    Size:                       0
    Symlinks:                   /dev/cdrom
                                /dev/cdrw
                                /dev/disk/by-id/usb-Dell_DVD+_-RW_DW514_D4A0801277-0:0
                                /dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0
                                /dev/dvd
                                /dev/dvdrw
                                /dev/scd0
Comment 1 john.frankish 2016-01-19 10:42:06 UTC
More details:

$ udevadm info --export-db
...

P: /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host6/target6:0:0/6:0:0:0/block/sr0
N: sr0
S: disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0
S: scd0
E: DEVLINKS=/dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0 /dev/scd0
E: DEVNAME=/dev/sr0
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host6/target6:0:0/6:0:0:0/block/sr0
E: DEVTYPE=disk
E: ID_CDROM=1
E: ID_PATH=pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_1_1_0-scsi-0_0_0_0
E: MAJOR=11
E: MINOR=0
E: SUBSYSTEM=block
E: USEC_INITIALIZED=16567582392


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.