summaryrefslogtreecommitdiffstats
path: root/sbin/sunlabel/sunlabel.c
Commit message (Collapse)AuthorAgeFilesLines
* Simplify the GEOM OAM api: Drop the request type, and let everythingphk2003-06-011-4/+4
| | | | | | | | hinge on the "verb" parameter which the class gets to interpret as it sees fit. Move the entire request into the kernel and move changed parameters back when done.
* If we cannot open the parent device for writing, use GEOM::CONFIG_GEOMphk2003-04-231-24/+58
| | | | | | | | requests to write label and bootcode. The -r argument is ignored (with a warning). With a lot of help from: jake
* Use explicit encoding/decoding funtions for sunlabel data structures.phk2003-04-211-34/+23
| | | | | | | | Use #defines for various magic numbers. Attach test-case to makefile. Reviewed by: jake
* Solve printf/cast issues to make this compile in i386 as well.phk2003-04-181-5/+5
|
* - Use read(2) to get the existing sunlabel on a disk, instead of parsingjake2003-04-151-77/+81
| | | | | | | | | | | | | | kern.geom.conftxt, which md disks don't show up in. If the magic and the checksum are right assume its a valid sunlabel, otherwise use the DIOC ioctls to get the disk parameters and whip up a label out of thin air. - Don't just silently create or correct invalid c partitions, warn about invalid ones in label proto files. - Split checksumming into a function since we do it a couple times. Also don't include the sl_cksum field in the checksum, which avoids needing to clear it first. This is makes sunlabel a suitable replacement for disklabel in make release.
* Add sunlabel, a more or less drop in replacement for bsd^H^H^Hdisklabel(8)jake2003-01-311-0/+578
which works on sun labels. Due to the lack of an interface other than write(2) to update labels, it cannot modify an open partition.
OpenPOWER on IntegriCloud