da.4 (56460) | da.4 (57676) |
---|---|
1.\" Copyright (c) 1996 2.\" Julian Elischer <julian@freebsd.org>. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 9 unchanged lines hidden (view full) --- 18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24.\" SUCH DAMAGE. 25.\" | 1.\" Copyright (c) 1996 2.\" Julian Elischer <julian@freebsd.org>. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 9 unchanged lines hidden (view full) --- 18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24.\" SUCH DAMAGE. 25.\" |
26.\" $FreeBSD: head/share/man/man4/da.4 56460 2000-01-23 15:04:20Z asmodai $ | 26.\" $FreeBSD: head/share/man/man4/da.4 57676 2000-03-01 14:50:24Z sheldonh $ |
27.\" 28.Dd October 15, 1998 29.Dt DA 4 30.Os FreeBSD 31.Sh NAME 32.Nm da 33.Nd SCSI Direct Access Device Driver 34.Sh SYNOPSIS --- 124 unchanged lines hidden (view full) --- 159.Bl -tag -width DIOCSDINFO 160.It Dv DIOCSBAD 161Usually used to set up a bad-block mapping system on the disk. 162.Tn SCSI 163drives incorporate their own bad-block mapping so this command is not 164implemented. 165.It Dv DIOCGDINFO 166Read, from the kernel, the in-core copy of the disklabel for the | 27.\" 28.Dd October 15, 1998 29.Dt DA 4 30.Os FreeBSD 31.Sh NAME 32.Nm da 33.Nd SCSI Direct Access Device Driver 34.Sh SYNOPSIS --- 124 unchanged lines hidden (view full) --- 159.Bl -tag -width DIOCSDINFO 160.It Dv DIOCSBAD 161Usually used to set up a bad-block mapping system on the disk. 162.Tn SCSI 163drives incorporate their own bad-block mapping so this command is not 164implemented. 165.It Dv DIOCGDINFO 166Read, from the kernel, the in-core copy of the disklabel for the |
167drive. This may be a fictitious disklabel if the drive has never | 167drive. 168This may be a fictitious disklabel if the drive has never |
168been initialized, in which case it will contain information read 169from the 170.Tn SCSI 171inquiry commands. 172.It Dv DIOCSDINFO | 169been initialized, in which case it will contain information read 170from the 171.Tn SCSI 172inquiry commands. 173.It Dv DIOCSDINFO |
173Give the driver a new disklabel to use. The driver | 174Give the driver a new disklabel to use. 175The driver |
174.Em will not 175write the new 176disklabel to the disk. 177.It Dv DIOCWLABEL 178Enable or disable the driver's software 179write protect of the disklabel on the disk. 180.It Dv DIOCWDINFO | 176.Em will not 177write the new 178disklabel to the disk. 179.It Dv DIOCWLABEL 180Enable or disable the driver's software 181write protect of the disklabel on the disk. 182.It Dv DIOCWDINFO |
181Give the driver a new disklabel to use. The driver | 183Give the driver a new disklabel to use. 184The driver |
182.Em will 183write the new disklabel to the disk. 184.El 185.Sh NOTES 186If a device becomes invalidated (media is removed, device becomes unresponsive) 187the disklabel and information held within the kernel about the device will 188be invalidated. To avoid corruption of a newly inserted piece of media or 189a replacement device, all accesses to the device will be discarded until --- 100 unchanged lines hidden --- | 185.Em will 186write the new disklabel to the disk. 187.El 188.Sh NOTES 189If a device becomes invalidated (media is removed, device becomes unresponsive) 190the disklabel and information held within the kernel about the device will 191be invalidated. To avoid corruption of a newly inserted piece of media or 192a replacement device, all accesses to the device will be discarded until --- 100 unchanged lines hidden --- |