 |
Index for Section 9 |
|
 |
Alphabetical listing for W |
|
 |
Bottom of page |
|
writedisklabel(9r)
NAME
writedisklabel - Disk: Writes a disk label
SYNOPSIS
int writedisklabel(
dev_t dev,
int (*strategy) (),
register struct disklabel *lp );
ARGUMENTS
dev Specifies the major and minor numbers for this device. Device driver
writers use the dev_t data type to represent a device's major and minor
numbers. This data type is an abstraction of the internal
representations of the major and minor numbers. Driver writers do not
need to know how the system internally represents the major and minor
numbers.
strategy
Specifies the device driver's strategy interface.
lp Specifies a pointer to the disklabel structure to be written.
DESCRIPTION
The writedisklabel interface writes a disklabel to a device, using the
device driver's strategy interface.
The DIOCWDINFO ioctl command calls writedisklabel to write the disk label
to disk. The device driver should first call setdisklabel to validate the
new settings.
RETURN VALUES
Upon successful completion, writedisklabel returns the value zero (0).
Otherwise, it returns one of the following values:
EXDEV The interface tries to write the disklabel to any partition other
than partition zero.
ESRCH
EINVAL An error occurred while writing the disklabel.
SEE ALSO
Data Structures: disklabel(9s)
Kernel Interfaces: readdisklabel(9r), setdisklabel(9r)
 |
Index for Section 9 |
|
 |
Alphabetical listing for W |
|
 |
Top of page |
|