[BACK]Return to scsipi_base.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev / scsipi

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/scsipi/scsipi_base.c between version 1.145.28.1 and 1.146

version 1.145.28.1, 2008/06/02 13:23:51 version 1.146, 2008/04/05 15:47:01
Line 16 
Line 16 
  * 2. Redistributions in binary form must reproduce the above copyright   * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the   *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.   *    documentation and/or other materials provided with the distribution.
    * 3. All advertising materials mentioning features or use of this software
    *    must display the following acknowledgement:
    *        This product includes software developed by the NetBSD
    *        Foundation, Inc. and its contributors.
    * 4. Neither the name of The NetBSD Foundation nor the names of its
    *    contributors may be used to endorse or promote products derived
    *    from this software without specific prior written permission.
  *   *
  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS   * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED   * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
Line 1150  scsipi_prevent(struct scsipi_periph *per
Line 1157  scsipi_prevent(struct scsipi_periph *per
 {  {
         struct scsi_prevent_allow_medium_removal cmd;          struct scsi_prevent_allow_medium_removal cmd;
   
         if (periph->periph_quirks & PQUIRK_NODOORLOCK)  
                 return 0;  
   
         memset(&cmd, 0, sizeof(cmd));          memset(&cmd, 0, sizeof(cmd));
         cmd.opcode = SCSI_PREVENT_ALLOW_MEDIUM_REMOVAL;          cmd.opcode = SCSI_PREVENT_ALLOW_MEDIUM_REMOVAL;
         cmd.how = type;          cmd.how = type;

Legend:
Removed from v.1.145.28.1  
changed lines
  Added in v.1.146

CVSweb <webmaster@jp.NetBSD.org>