Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Feb 2008 15:43:15 -0500
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Andriy Gapon <avg@icyb.net.ua>
Cc:        freebsd-gnome@freebsd.org, Thomas Quinot <thomas@freebsd.org>
Subject:   Re: hal and "criss-crossed" atapicam
Message-ID:  <1203280995.33462.4.camel@shumai.marcuscom.com>
In-Reply-To: <47B81244.9090802@icyb.net.ua>
References:  <47B81244.9090802@icyb.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-VL9mtbPjdaauYakoYbme
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


On Sun, 2008-02-17 at 12:53 +0200, Andriy Gapon wrote:
> [Disclaimer: yes, I've read BUGS section of atapicam(4) (should probably
> be named "CAVEATS"), but this is life.]
>=20
> I have a system with two IDE CD/DVD drives. atapicam and atapicd are
> enabled and for some reason cd(4) unit numbers are criss-crossed
> compared to the acd(4) numbers:
> acd0 -> cd1
> acd1 -> cd0
>=20
> acd0: CDRW <LITE-ON LTR-40125W/WS03> at ata0-master UDMA33
> acd1: DVDR <HL-DT-ST DVDRAM GSA-4163B/A105> at ata1-master UDMA33
> cd0: <HL-DT-ST DVDRAM GSA-4163B A105> Removable CD-ROM SCSI-0 device
> cd1: <LITE-ON LTR-40125W WS03> Removable CD-ROM SCSI-0 device
>=20
> These devices are both masters on different IDE channels.
>=20
> Maybe this or maybe something else seems to confuse HAL a little bit.
> Relevant snippets from lshal are pasted at the end.
> As you can see, the net result is that HAL sees 3 non-ignored devices:
> cd1 ("light-on"), cd0 ("dvdram"), acd1 ("dvdram" again).
> For some reason, acd1 was not recognized as having a paired atapicam
> device and situation is quite messy in general.
> And in konqueror, for instance, I see 3 devices if I put disks into both
> drives.
>=20
> I would appreciate any advice on how to resolve this, either in atapicam
> or in hald, either via configuration or via code.

You need to provide the entire lshal output first.

Joe

>=20
> There is another interesting issue, but maybe it's a KDE problem rather
> than HAL.
> I have a DVD-RAM disk formatted for FAT32 (I did disklabel on cd0 and
> then newfs_msdos on cd0a). Here's a small snippet at how hald sees that
> disk:
> udi =3D '/org/freedesktop/Hal/devices/volume_size_4580769792'
>   volume.mount.valid_options =3D {'ro', 'noexec', 'noatime', 'longnames',
> 'shortnames', 'nowin95', '-u=3D', '-g=3D', '-m=3D', '-M=3D', '-L=3D', '-D=
=3D'}
> (string list)
>   org.freedesktop.Hal.Device.Volume.method_execpaths =3D
> {'hal-storage-mount', 'hal-system-storage-unmount',
> 'hal-system-storage-eject'} (string list)
>   org.freedesktop.Hal.Device.Volume.method_signatures =3D {'ssas', 'as',
> 'as'} (string list)
>   org.freedesktop.Hal.Device.Volume.method_names =3D {'Mount', 'Unmount',
> 'Eject'} (string list)
>   info.interfaces =3D {'org.freedesktop.Hal.Device.Volume'} (string list)
>   block.storage_device =3D
> '/org/freedesktop/Hal/devices/storage_model_DVDRAM_GSA_4163B'  (string)
>   info.product =3D 'Volume (vfat)'  (string)
> ...
>   volume.fsversion =3D 'FAT32'  (string)
>   volume.fstype =3D 'vfat'  (string)
>   volume.fsusage =3D 'filesystem'  (string)
>   volume.ignore =3D false  (bool)
>   volume.is_partition =3D false  (bool)
>   volume.is_disc =3D true  (bool)
>   volume.disc.capacity =3D 4580769792  (0x111090000)  (uint64)
>   volume.disc.type =3D 'dvd_ram'  (string)
>   volume.disc.is_rewritable =3D true  (bool)
> ...
> I can manually mount the disk via mount -t msdosfs /dev/cd0a /mnt
> If I double-click in konqueror on acd1 view of this disk there is a
> failed attempt to mount it as cd9660.
> If I double-click on cd0 view, then there is an attempt to mount
> /dev/cd0 as msdosfs, this is closer but is still incorrect, the device
> should be cd0a.
>=20
> P.S. it's a different issue why I wasn't able to newfs_msdos the whole
> disk and had to use disklabel on it. I think that shouldn't be required.
>=20
> =3D=3D=3D=3D=3D=3D=3D lshal.out for atapicam issue =3D=3D=3D=3D=3D=3D=3D=
=3D
> udi =3D '/org/freedesktop/Hal/devices/storage_model_LTR_40125W'
>   info.addons =3D {'hald-addon-storage'} (string list)
>   block.storage_device =3D
> '/org/freedesktop/Hal/devices/storage_model_LTR_40125W'  (string)
>   info.udi =3D '/org/freedesktop/Hal/devices/storage_model_LTR_40125W'
> (string)
>   block.is_volume =3D false  (bool)
>   block.freebsd.cam_path =3D '0,0,0'  (string)
>   storage.lun =3D 0  (0x0)  (int)
>   storage.firmware_revision =3D 'WS03'  (string)
>   info.product =3D 'LTR-40125W'  (string)
>   info.vendor =3D 'LITE-ON'  (string)
>   storage.cdrom.write_speed =3D 0  (0x0)  (int)
>   storage.cdrom.read_speed =3D 8448  (0x2100)  (int)
>   storage.cdrom.support_media_changed =3D false  (bool)
>   storage.cdrom.hddvdrw =3D false  (bool)
>   storage.cdrom.hddvdr =3D false  (bool)
>   storage.cdrom.hddvd =3D false  (bool)
>   storage.cdrom.bdre =3D false  (bool)
>   storage.cdrom.bdr =3D false  (bool)
>   storage.cdrom.bd =3D false  (bool)
>   storage.cdrom.dvdplusrwdl =3D false  (bool)
>   storage.cdrom.dvdplusrdl =3D false  (bool)
>   storage.cdrom.dvdplusrw =3D false  (bool)
>   storage.cdrom.dvdplusr =3D false  (bool)
>   storage.cdrom.dvdram =3D false  (bool)
>   storage.cdrom.dvdrw =3D false  (bool)
>   storage.cdrom.dvdr =3D false  (bool)
>   storage.cdrom.dvd =3D false  (bool)
>   storage.cdrom.cdrw =3D true  (bool)
>   storage.cdrom.cdr =3D true  (bool)
>   storage.vendor =3D 'LITE-ON'  (string)
>   storage.model =3D 'LTR-40125W'  (string)
>   storage.physical_device =3D
> '/org/freedesktop/Hal/devices/ide_host_0_scsi_host_scsi_device_lun0'
> (string)
>   storage.no_partitions_hint =3D true  (bool)
>   storage.automount_enabled_hint =3D true  (bool)
>   storage.media_check_enabled =3D true  (bool)
>   storage.hotpluggable =3D false  (bool)
>   storage.requires_eject =3D true  (bool)
>   storage.removable =3D true  (bool)
>   storage.drive_type =3D 'cdrom'  (string)
>   storage.bus =3D 'scsi'  (string)
>   block.minor =3D 120  (0x78)  (int)
>   block.major =3D 0  (0x0)  (int)
>   block.device =3D '/dev/cd1'  (string)
>   info.category =3D 'storage.cdrom'  (string)
>   info.bus =3D 'block'  (string)
>   info.capabilities =3D {'block', 'storage', 'storage.cdrom'} (string lis=
t)
>   freebsd.unit =3D 1  (0x1)  (int)
>   freebsd.driver =3D 'cd'  (string)
>   info.parent =3D
> '/org/freedesktop/Hal/devices/ide_host_0_scsi_host_scsi_device_lun0'
> (string)
>=20
> udi =3D '/org/freedesktop/Hal/devices/storage_model_LITE_ON_LTR_40125W'
>   info.ignore =3D true  (bool)
>   block.freebsd.cam_path =3D '1,0,0'  (string)
>   block.freebsd.atapi_cam_device =3D '/dev/cd0'  (string)
>   block.storage_device =3D
> '/org/freedesktop/Hal/devices/storage_model_LITE_ON_LTR_40125W'  (string)
>   info.udi =3D '/org/freedesktop/Hal/devices/ignored-device'  (string)
>   block.is_volume =3D false  (bool)
>   storage.firmware_revision =3D 'WS03'  (string)
>   storage.cdrom.write_speed =3D 0  (0x0)  (int)
>   storage.cdrom.read_speed =3D 0  (0x0)  (int)
>   storage.cdrom.support_media_changed =3D false  (bool)
>   storage.cdrom.hddvdrw =3D false  (bool)
>   storage.cdrom.hddvdr =3D false  (bool)
>   storage.cdrom.hddvd =3D false  (bool)
>   storage.cdrom.bdre =3D false  (bool)
>   storage.cdrom.bdr =3D false  (bool)
>   storage.cdrom.bd =3D false  (bool)
>   storage.cdrom.dvdplusrwdl =3D false  (bool)
>   storage.cdrom.dvdplusrdl =3D false  (bool)
>   storage.cdrom.dvdplusrw =3D false  (bool)
>   storage.cdrom.dvdplusr =3D false  (bool)
>   storage.cdrom.dvdram =3D false  (bool)
>   storage.cdrom.dvdrw =3D false  (bool)
>   storage.cdrom.dvdr =3D false  (bool)
>   storage.cdrom.dvd =3D false  (bool)
>   storage.cdrom.cdrw =3D false  (bool)
>   storage.cdrom.cdr =3D false  (bool)
>   info.vendor =3D 'LITE'  (string)
>   info.product =3D 'Ignored Device'  (string)
>   storage.vendor =3D 'LITE'  (string)
>   storage.model =3D 'LITE-ON LTR-40125W'  (string)
>   storage.physical_device =3D '/org/freedesktop/Hal/devices/ide_0_0'  (st=
ring)
>   storage.no_partitions_hint =3D true  (bool)
>   storage.automount_enabled_hint =3D true  (bool)
>   storage.media_check_enabled =3D true  (bool)
>   storage.hotpluggable =3D false  (bool)
>   storage.requires_eject =3D true  (bool)
>   storage.removable =3D true  (bool)
>   storage.drive_type =3D 'cdrom'  (string)
>   storage.bus =3D 'ide'  (string)
>   block.minor =3D 80  (0x50)  (int)
>   block.major =3D 0  (0x0)  (int)
>   block.device =3D '/dev/acd0'  (string)
>   info.bus =3D 'block'  (string)
>   freebsd.unit =3D 0  (0x0)  (int)
>   freebsd.driver =3D 'acd'  (string)
>   info.parent =3D '/org/freedesktop/Hal/devices/ide_0_0'  (string)
>=20
>=20
> udi =3D '/org/freedesktop/Hal/devices/storage_model_DVDRAM_GSA_4163B'
>   info.addons =3D {'hald-addon-storage'} (string list)
>   storage.cdrom.write_speeds =3D {'4155'} (string list)
>   block.storage_device =3D
> '/org/freedesktop/Hal/devices/storage_model_DVDRAM_GSA_4163B'  (string)
>   info.udi =3D
> '/org/freedesktop/Hal/devices/storage_model_DVDRAM_GSA_4163B'  (string)
>   block.is_volume =3D false  (bool)
>   block.freebsd.cam_path =3D '1,0,0'  (string)
>   storage.lun =3D 0  (0x0)  (int)
>   storage.firmware_revision =3D 'A105'  (string)
>   info.product =3D 'DVDRAM GSA-4163B'  (string)
>   info.vendor =3D 'HL-DT-ST'  (string)
>   storage.cdrom.write_speed =3D 4155  (0x103b)  (int)
>   storage.cdrom.read_speed =3D 4155  (0x103b)  (int)
>   storage.cdrom.support_media_changed =3D false  (bool)
>   storage.cdrom.hddvdrw =3D false  (bool)
>   storage.cdrom.hddvdr =3D false  (bool)
>   storage.cdrom.hddvd =3D false  (bool)
>   storage.cdrom.bdre =3D false  (bool)
>   storage.cdrom.bdr =3D false  (bool)
>   storage.cdrom.bd =3D false  (bool)
>   storage.cdrom.dvdplusrwdl =3D false  (bool)
>   storage.cdrom.dvdplusrdl =3D true  (bool)
>   storage.cdrom.dvdplusrw =3D true  (bool)
>   storage.cdrom.dvdplusr =3D true  (bool)
>   storage.cdrom.dvdram =3D true  (bool)
>   storage.cdrom.dvdrw =3D false  (bool)
>   storage.cdrom.dvdr =3D true  (bool)
>   storage.cdrom.dvd =3D true  (bool)
>   storage.cdrom.cdrw =3D true  (bool)
>   storage.cdrom.cdr =3D true  (bool)
>   storage.vendor =3D 'HL-DT-ST'  (string)
>   storage.model =3D 'DVDRAM GSA-4163B'  (string)
>   storage.physical_device =3D
> '/org/freedesktop/Hal/devices/ide_host_1_scsi_host_scsi_device_lun0'
> (string)
>   storage.no_partitions_hint =3D true  (bool)
>   storage.automount_enabled_hint =3D true  (bool)
>   storage.media_check_enabled =3D true  (bool)
>   storage.hotpluggable =3D false  (bool)
>   storage.requires_eject =3D true  (bool)
>   storage.removable =3D true  (bool)
>   storage.drive_type =3D 'cdrom'  (string)
>   storage.bus =3D 'scsi'  (string)
>   block.minor =3D 117  (0x75)  (int)
>   block.major =3D 0  (0x0)  (int)
>   block.device =3D '/dev/cd0'  (string)
>   info.category =3D 'storage.cdrom'  (string)
>   info.bus =3D 'block'  (string)
>   info.capabilities =3D {'block', 'storage', 'storage.cdrom'} (string lis=
t)
>   freebsd.unit =3D 0  (0x0)  (int)
>   freebsd.driver =3D 'cd'  (string)
>   info.parent =3D
> '/org/freedesktop/Hal/devices/ide_host_1_scsi_host_scsi_device_lun0'
> (string)
>=20
> udi =3D '/org/freedesktop/Hal/devices/storage_serial_K5E4BMF5437'
>   info.addons =3D {'hald-addon-storage'} (string list)
>   storage.cdrom.write_speeds =3D {'4155'} (string list)
>   block.storage_device =3D
> '/org/freedesktop/Hal/devices/storage_serial_K5E4BMF5437'  (string)
>   info.udi =3D '/org/freedesktop/Hal/devices/storage_serial_K5E4BMF5437'
> (string)
>   block.is_volume =3D false  (bool)
>   storage.firmware_revision =3D 'A105'  (string)
>   storage.serial =3D 'K5E4BMF5437'  (string)
>   storage.cdrom.write_speed =3D 4155  (0x103b)  (int)
>   storage.cdrom.read_speed =3D 4155  (0x103b)  (int)
>   storage.cdrom.support_media_changed =3D false  (bool)
>   storage.cdrom.hddvdrw =3D false  (bool)
>   storage.cdrom.hddvdr =3D false  (bool)
>   storage.cdrom.hddvd =3D false  (bool)
>   storage.cdrom.bdre =3D false  (bool)
>   storage.cdrom.bdr =3D false  (bool)
>   storage.cdrom.bd =3D false  (bool)
>   storage.cdrom.dvdplusrwdl =3D false  (bool)
>   storage.cdrom.dvdplusrdl =3D true  (bool)
>   storage.cdrom.dvdplusrw =3D true  (bool)
>   storage.cdrom.dvdplusr =3D true  (bool)
>   storage.cdrom.dvdram =3D true  (bool)
>   storage.cdrom.dvdrw =3D false  (bool)
>   storage.cdrom.dvdr =3D true  (bool)
>   storage.cdrom.dvd =3D true  (bool)
>   storage.cdrom.cdrw =3D true  (bool)
>   storage.cdrom.cdr =3D true  (bool)
>   info.vendor =3D 'HL'  (string)
>   info.product =3D 'HL-DT-ST DVDRAM GSA-4163B'  (string)
>   storage.vendor =3D 'HL'  (string)
>   storage.model =3D 'HL-DT-ST DVDRAM GSA-4163B'  (string)
>   storage.physical_device =3D '/org/freedesktop/Hal/devices/ide_1_0'  (st=
ring)
>   storage.no_partitions_hint =3D true  (bool)
>   storage.automount_enabled_hint =3D true  (bool)
>   storage.media_check_enabled =3D true  (bool)
>   storage.hotpluggable =3D false  (bool)
>   storage.requires_eject =3D true  (bool)
>   storage.removable =3D true  (bool)
>   storage.drive_type =3D 'cdrom'  (string)
>   storage.bus =3D 'ide'  (string)
>   block.minor =3D 81  (0x51)  (int)
>   block.major =3D 0  (0x0)  (int)
>   block.device =3D '/dev/acd1'  (string)
>   info.category =3D 'storage.cdrom'  (string)
>   info.bus =3D 'block'  (string)
>   info.capabilities =3D {'block', 'storage', 'storage.cdrom'} (string lis=
t)
>   freebsd.unit =3D 1  (0x1)  (int)
>   freebsd.driver =3D 'acd'  (string)
>   info.parent =3D '/org/freedesktop/Hal/devices/ide_1_0'  (string)
>=20
>=20
--=20
PGP Key : http://www.marcuscom.com/pgp.asc

--=-VL9mtbPjdaauYakoYbme
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (FreeBSD)

iEYEABECAAYFAke4nGEACgkQb2iPiv4Uz4dkwwCdHxLIiE+bAQ5Ythic2qA3DDKa
gmQAnRbKxhijS+e1+0/5CfcHsyxIgqb4
=3ogd
-----END PGP SIGNATURE-----

--=-VL9mtbPjdaauYakoYbme--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1203280995.33462.4.camel>