version 1.145.28.1, 2008/06/02 13:23:51 |
version 1.146, 2008/04/05 15:47:01 |
|
|
* 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; |