From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jamie Wellnitz Date: Tue, 28 Aug 2007 13:41:42 +0000 Subject: Re: rule for scsi tape changers? [u] Message-Id: <20070828134142.GM8126@ma.emulex.com> List-Id: References: <200708280831.17841.aj@ciphirelabs.com> In-Reply-To: <200708280831.17841.aj@ciphirelabs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hi Andreas, On Tue, Aug 28, 2007 at 08:31:17AM +0200, Andreas Jellinghaus [c] wrote: > before re-inventing the wheel: does anyone have a rule for scsi device > changers? the typical name would be /dev/changer and the devices are usualy > sg* devices. kernel dmesg tells me: > TID 513 Vendor: HP M Device: MSL6000 Seri Rev: 0507 > Vendor: HP Model: MSL6000 Series Rev: 0507 > Type: Medium Changer ANSI SCSI revision: 02 > 0:0:0:0: Attached scsi generic sg0 type 8 > > udevinfo: > BUS="scsi" > ID="0:0:0:0" > DRIVER="unknown" > SYSFS{device_blocked}="0" > SYSFS{iocounterbits}="32" > SYSFS{iodone_cnt}="0x9f9" > SYSFS{ioerr_cnt}="0xd" > SYSFS{iorequest_cnt}="0x9f9" > SYSFS{model}="MSL6000 Series " > SYSFS{queue_depth}="1" > SYSFS{queue_type}="none" > SYSFS{rev}="0507" > SYSFS{scsi_level}="3" > SYSFS{state}="running" > SYSFS{timeout}="0" > SYSFS{type}="8" > SYSFS{vendor}="HP " > > I see the rules on my ubuntu systems use ENV{ID_CDROM} and friends for cdrom > devices. what creates these? is there a simialr ID_CHANGER information? This rule, from the current udev git tree (it's been there for a while, though): # type 8 devices are "Medium Changers" KERNEL="sg*", SUBSYSTEMS="scsi", ATTRS{type}="8", IMPORT{program}="scsi_id --export --whitelisted --fallback-to-sysfs -s %p -d $tempnode", SYMLINK+="tape/by-id/$env{ID_BUS}-$env{ID_SERIAL}" is intended to create a symlink in /dev/tape/by-id for changer devices. It's in etc/udev/rules.d/60-persistent-storage.rules > > Thanks, Andreas Thanks, Jamie > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net > Linux-hotplug-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel