<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- --> 

<deviceinfo version="0.2">

  <device>
    <!-- Handle weird Dell Laptops that slow down the system if the optical 
	 drive is polled (RH Bug #138148) -->
    <match key="storage.bus" string="ide">
      <match key="storage.model" string="HL-DT-STCD-RW/DVD-ROM GCC-4240N">
	<match key="block.device" string="/dev/hdb">
          <merge key="storage.media_check_enabled" type="bool">false</merge>
	</match>
	<match key="block.device" string="/dev/hdd">
          <merge key="storage.media_check_enabled" type="bool">false</merge>
	</match>
      </match>
    </match>
    
    <!-- Handle weird IDE drives (Jaz and Zip) by matching on the IDE model -->
    <match key="storage.bus" string="ide">
      <match key="storage.drive_type" string="disk">
	<!-- IOMEGA Zip Drive -->
	<match key="storage.model" contains_ncase="ZIP">
          <merge key="storage.drive_type" type="string">zip</merge>
          <merge key="storage.no_partitions_hint" type="bool">true</merge>
          <merge key="storage.requires_eject" type="bool">true</merge>
          <!-- treat as floppy and data at partition 4; adjust device file -->
	  <append key="block.device" type="string">4</append>
	</match>
	
	<!-- IOMEGA CLIK! Drive -->
	<match key="storage.model" contains_ncase="CLIK">
          <merge key="storage.drive_type" type="string">zip</merge>
          <merge key="storage.no_partitions_hint" type="bool">true</merge>
          <merge key="storage.requires_eject" type="bool">true</merge>
          <!-- treat as floppy and data at partition 4; adjust device file -->
	  <append key="block.device" type="string">4</append>
	</match>
	
	<!-- Jaz -->
	<match key="storage.model" contains_ncase="JAZ">
          <merge key="storage.drive_type" type="string">jaz</merge>
          <merge key="storage.no_partitions_hint" type="bool">true</merge>
          <merge key="storage.requires_eject" type="bool">true</merge>
          <!-- treat as floppy and data at partition 4; adjust device file -->
	  <append key="block.device" type="string">4</append>
	</match>
      </match>
    </match>

    <match key="storage.bus" string="ide">
      <match key="storage.drive_type" string="floppy">
	<!-- IOMEGA Zip Drive -->
	<match key="storage.model" contains_ncase="ZIP">
          <merge key="storage.drive_type" type="string">zip</merge>
          <merge key="storage.no_partitions_hint" type="bool">true</merge>
          <merge key="storage.requires_eject" type="bool">true</merge>
          <!-- treat as floppy and data at partition 4; adjust device file -->
	  <append key="block.device" type="string">4</append>
	</match>
	
	<!-- IOMEGA CLIK! Drive -->
	<match key="storage.model" contains_ncase="CLIK">
          <merge key="storage.drive_type" type="string">zip</merge>
          <merge key="storage.no_partitions_hint" type="bool">true</merge>
          <merge key="storage.requires_eject" type="bool">true</merge>
          <!-- treat as floppy and data at partition 4; adjust device file -->
	  <append key="block.device" type="string">4</append>
	</match>
	
	<!-- Jaz -->
	<match key="storage.model" contains_ncase="JAZ">
          <merge key="storage.drive_type" type="string">jaz</merge>
          <merge key="storage.no_partitions_hint" type="bool">true</merge>
          <merge key="storage.requires_eject" type="bool">true</merge>
          <!-- treat as floppy and data at partition 4; adjust device file -->
	  <append key="block.device" type="string">4</append>
	</match>
      </match>
    </match>
      
    </device>
</deviceinfo>
