| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Reviewed by: phk
Approved by: re (scottl)
|
| |
|
|
|
|
| |
Submitted by: Alex Deiter <tiamat@komi.mts.ru>
|
| |
|
|
|
|
|
|
|
|
| |
requests to write label and bootcode.
The -r argument is ignored (with a warning).
With a lot of help from: jake
|
| |
|
|
|
|
| |
Add two more tests.
|
|
|
|
|
|
|
|
| |
Use #defines for various magic numbers.
Attach test-case to makefile.
Reviewed by: jake
|
| |
|
| |
|
|
|
|
| |
sparc64, where bsd^H^H^Hdisklabel isn't built.)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
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.
|