Annotation of lucent/sys/man/3/wren, revision 1.1.1.1

1.1       root        1: .TH WREN 3 
                      2: .SH NAME
                      3: wren, ata \- hard disk interface
                      4: .SH SYNOPSIS
                      5: .B bind
                      6: .BI #H[ drive ]
                      7: .B /dev
                      8: .br
                      9: .B bind
                     10: .BI #w[ target [. lun ]]
                     11: .B /dev
                     12: 
                     13: .nf
                     14: .B /dev/hd0disk
                     15: .B /dev/hd0partition
                     16: .B /dev/sd0disk
                     17: .B /dev/sd0partition
                     18:  ...
                     19: .fi
                     20: .SH DESCRIPTION
                     21: .PP
                     22: The hard disk interfaces
                     23: .RI ( wren ,
                     24: .BR #w ,
                     25: is a SCSI disk;
                     26: .IR ata ,
                     27: .BR #H ,
                     28: is an IDE or ATA disk)
                     29: serve a one-level directory giving access to the
                     30: hard disk partitions.
                     31: The parameter to
                     32: .B attach
                     33: defines the numerical SCSI
                     34: .I target
                     35: and logical unit number
                     36: or the IDE
                     37: .I drive
                     38: number to access.
                     39: Both default to zero.
                     40: .PP
                     41: Each partition name is prefixed by 
                     42: .B hd
                     43: and the numeric drive identifier.
                     44: The partition
                     45: .L disk
                     46: always exists and covers the entire disk.
                     47: The size of each partition as reported by
                     48: .IR stat (2)
                     49: is the number of bytes
                     50: in the partition, so the size of
                     51: .L disk
                     52: is the size of the entire disk.
                     53: .PP
                     54: The partition
                     55: .L partition
                     56: also always exists; it is the last block on the disk for SCSI, second to last
                     57: for IDE.
                     58: If it contains valid partition data, those partitions will be visible as well.
                     59: Every time the device is bound, the partitions are updated to reflect any changes
                     60: in the partition file.
                     61: .PP
                     62: The format of the
                     63: .B partition
                     64: file is the string
                     65: .IP
                     66: .B
                     67: plan9 partitions
                     68: .PP
                     69: on a line,
                     70: followed by partition specifications, one per line, consisting of a name
                     71: and textual strings for the block start and limit for each partition on the disk.
                     72: .PP
                     73: The program
                     74: .IR prep (8)
                     75: writes the
                     76: .B partition
                     77: table for the disk; its use is preferred to writing it by hand.
                     78: .SH SEE ALSO
                     79: .IR prep (8),
                     80: .IR scsi (3)
                     81: .SH SOURCE
                     82: .B /sys/src/9/port/devwren.c
                     83: .br
                     84: .B /sys/src/9/pc/devata.c

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.