summaryrefslogtreecommitdiffstats
path: root/sbin/sunlabel
Commit message (Collapse)AuthorAgeFilesLines
* Spell "disklabel" correctly.ceri2004-02-011-1/+1
| | | | Approved by: ru
* Install a 'disklable' alias.obrien2004-01-311-0/+5
| | | | Technical Reviewed by: ru
* Sync with bsdlabel/Makefile.obrien2004-01-291-5/+9
|
* Add a very basic manpage.obrien2004-01-292-1/+71
|
* Use (char *)NULL to terminate the argument list for execlp().harti2003-10-301-1/+1
| | | | | Without this cast the compiler cannot know that it has to convert the null pointer constant NULL to a null pointer.
* 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.
* Moved libgeom.so dependencies to where they belong.ru2003-05-171-2/+2
| | | | | Reviewed by: phk Approved by: re (scottl)
* Fix the misspelling of DPADD, then fix "make checkdpadd".ru2003-05-031-1/+1
|
* Fix for dynamic linking.jake2003-04-271-1/+1
| | | | Submitted by: Alex Deiter <tiamat@komi.mts.ru>
* Add testcases to ensure that overwriting bootcode does not trash label.phk2003-04-231-0/+26
|
* If we cannot open the parent device for writing, use GEOM::CONFIG_GEOMphk2003-04-232-24/+61
| | | | | | | | requests to write label and bootcode. The -r argument is ignored (with a warning). With a lot of help from: jake
* Do not link sunlabel to disklabel.phk2003-04-231-1/+0
|
* Add "-r" when we initialize the label first time.phk2003-04-221-1/+18
| | | | Add two more tests.
* Use explicit encoding/decoding funtions for sunlabel data structures.phk2003-04-212-34/+29
| | | | | | | | Use #defines for various magic numbers. Attach test-case to makefile. Reviewed by: jake
* Add minimal regression test for hotspot handling of the sunlabel.phk2003-04-211-0/+114
|
* Solve printf/cast issues to make this compile in i386 as well.phk2003-04-181-5/+5
|
* Hardlink sunlabel to disklabel so make release is happy. (This only affectsjake2003-04-151-0/+1
| | | | sparc64, where bsd^H^H^Hdisklabel isn't built.)
* - 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-312-0/+585
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