Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sbin/disklabel



Module Name:    src
Committed By:   dsl
Date:           Wed Oct 19 21:22:21 UTC 2005

Modified Files:
        src/sbin/disklabel: Makefile extern.h interact.c main.c

Log Message:
Rototil the way disklabel -r reads and writes labels.
In particular the 'read' part plays 'hunt the disklabel' in order to get a
label into a local buffer - from where it can be displayed/edited.
The 'write' part makes a separate scan of the disk looking for places to
write the label.
The main changes are:
- It can no longer write the first 8k of the mbr to the pbr (or v.v.)
- All labels on the disk (that it can find) get updated during a write
- With -A all the labels are displayed (inc. those deleted by -D)
- Addition of -D which will delete (by one's complimenting dk_magic{2}) and
  existing labels before writing labels to the expected locations.
- -v gives some verbose output to stderr, -vv more etc
A better basis for processing incorrect endian labels, or labels from other
architectures.


To generate a diff of this commit:
cvs rdiff -r1.57 -r1.58 src/sbin/disklabel/Makefile
cvs rdiff -r1.8 -r1.9 src/sbin/disklabel/extern.h
cvs rdiff -r1.26 -r1.27 src/sbin/disklabel/interact.c
cvs rdiff -r1.5 -r1.6 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index