summaryrefslogtreecommitdiff
path: root/sbin/disklabel
AgeCommit message (Collapse)Author
2004-01-05Homogenize usage messages: make the 'usage' word all lowercase, as this seemsjmmv
to be the most common practice in our tree.
2003-12-29Add missing ' in prompt text.jdc
Pointed out by Allen Briggs.
2003-12-29If a partition is adjusted so that it falls off the end of the disk, displayjdc
a '+' character (aka the '*'). OK'ed by Christos.
2003-12-29Add the ability to define a partition as starting after another partition.jdc
If chaining is on, display all changed partitions (not just this one). OK'ed by Christos.
2003-12-11fix spelling, s/extented/extended/dyoung
2003-11-15Commit changes proposed on tech-kern Thu, 6 Nov 2003bouyer
- factor out disksubr.c between sun3, sparc and sparc64. Keep the sun3 groveling code to find a NetBSD disklabel in the first sector (so that it can find a label at the old sun3 LABELOFFSET) as a fallback is not label at LABELOFFSET, or sun label is present. - Fix the sun3 LABELOFFSET (was 64, but the kernel wrote the NetBSD label at 128) - Make next68k disksubr.c always write a next-compatible disklabel. - remove #ifdef __sparc__ hack from disklabel(8), and change it to issue a DIOCWDINFO after writing the disklabel to the raw partition in the -r/-I case (so that the kernel can convert the label if needed).
2003-11-10Bring back disklabel -B for now, since hp300 installboot isn't readyfvdl
for prime time yet.
2003-11-08Rip out all the '-B bootblock' support, everything should use installboot(8).dsl
(can only affect arm32, hp300 and vax ports, and doesn't affect sysinst).
2003-11-02playstation2 needs MBR support in disklabel(8).shin
2003-10-20Handle partition offset and size as unsigned entities.pooka
2003-10-20Partition size and offset inside the disklabel are unsigned. Printpooka
them as unsigned so that we don't print negative values when we're halfway through.
2003-10-08Overhaul MBR handling (part 1):lukem
<sys/bootblock.h>: * Added definitions for the Master Boot Record (MBR) used by a variety of systems (primarily i386), including the format of the BIOS Parameter Block (BPB). This information was cribbed from a variety of sources including <sys/disklabel_mbr.h> which this is a superset of. As part of this, some data structure elements and #defines were renamed to be more "namespace friendly" and consistent with other bootblocks and MBR documentation. Update all uses of the old names to the new names. <sys/disklabel_mbr.h>: * Deprecated in favor of <sys/bootblock.h> (the latter is more "host tool" friendly). amd64 & i386: * Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to be consistent with the naming convention of the msdosfs tools. * Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1 and it's confusing to have two functionally equivalent bootblocks, especially given that "ufs" has multiple meanings (it could be a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems). * Rework pbr.S (the first sector of bootxx_*): + Ensure that BPB (bytes 11..89) and the partition table (bytes 446..509) do not contain code. + Add support for booting from FAT partitions if BOOT_FROM_FAT is defined. (Only set for bootxx_msdos). + Remove "dummy" partition 3; if people want to installboot(8) these to the start of the disk they can use fdisk(8) to create a real MBR partition table... + Compile with TERSE_ERROR so it fits because of the above. Whilst this is less user friendly, I feel it's important to have a valid partition table and BPB in the MBR/PBR. * Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent with other platforms. * Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that we can boot off FAT partitions. * Crank version of /usr/mdec/boot to 3.1, and fix some of the other entries in the version file. installboot(8) (i386): * Read the existing MBR of the filesystem and retain the BIOS Parameter Block (BPB) in bytes 11..89 and the MBR partition table in bytes 446..509. (Previously installboot(8) would trash those two sections of the MBR.) mbrlabel(8): * Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code to map the MBR partition type to the NetBSD disklabel type. Test built "make release" for i386, and new bootblocks verified to work (even off FAT!).
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-08-04Make output fit into 80 columns when a partition doesn't end on a cylinderdsl
boundary.
2003-08-04Read correct sector when following extended partition chain.dsl
Require extended partition chain to be through increasing sector numbers in order to abort loops.
2003-07-13xref dkctl(8)lukem
2003-07-13use bounded copy (a few unbounded copy remains - need work)itojun
2003-07-07Allow for the netbsd partition being in the extended partition list.dsl
2003-07-01Line up the cylinder numbers in the printlabel output a bit better.simonb
2003-05-06Bump date for last.wiz
2003-05-02Document -I option. From Richard Rauch <rauch@math.rice.edu>gmcgarry
in PR#11890.
2003-04-26x86_64 -> amd64fvdl
2003-04-16Usewiz
.In header.h instead of .Fd #include \*[Lt]header.h\*[Gt] Much easier to read and write, and supported by groff for ages. Okayed by ross.
2003-04-02Add support for UFS2. UFS2 is an enhanced FFS, adding support forfvdl
64 bit block pointers, extended attribute storage, and a few other things. This commit does not yet include the code to manipulate the extended storage (for e.g. ACLs), this will be done later. Originally written by Kirk McKusick and Network Associates Laboratories for FreeBSD.
2003-02-25.Nm does not need a dummy argument ("") before punctuation orwiz
for correct formatting of the SYNOPSIS any longer.
2003-01-16Rename `sigset' locals to avoid symbol shadowing warning.kleink
2003-01-06writable, not writeable.wiz
2002-12-12Use getlabel{sector,offset}() instead of LABEL{SECTOR,OFFSET}.scw
2002-12-11Handle MBRs for x86_64.fvdl
2002-12-05While cleaning up other places that invoked $EDITOR, noticed thatjonb
this one had all the infrastructure of fork/exec/wait, like the others, but called system instead of exec creating an extra PID and associated memory usage during the edit.
2002-11-18Fix bug causing segmentation fault when no fs type specifiedrtr
2002-10-21Removed "disklabel -I [-r] [-C] disk" from SYNOPSIS.rtr
The code does not permit usage of the -I flag without either -e or -i.
2002-10-02partition, not parition (by Adrian Mrva). file system instead of filesystem.wiz
2002-09-28add FS_APPLEUFSdbj
part of PR #17345
2002-09-28tweak indentation on FS_JFS2 commentdbj
2002-09-28add DTYPE_JFS2 and FS_JFS2 for IBM Journaled File Systemdbj
this is to match FreeBSD's disklabel.h revision 1.73 FreeBSD change was requested by Hiten Pandya <hiten@uk.FreeBSD.org>
2002-09-28mdoc nits. New sentence, new line. Remove a comment about tahoe.wiz
2002-09-28fix DTYPE_LD commentdbj
2002-09-28add DTYPE_LD to match disklabel.hdbj
2002-08-19Fix an argument to -width option of .Bl macro.enami
2002-07-28Enable USE_MBR for all arm ports.manu
2002-06-29disallow creation of partitions which start beyond (or extend beyond)grant
the end of the disk.
2002-06-18USE_MBR on macppc tooitojun
2002-06-18need disklabel_mbr.h for USE_MBR builditojun
2002-05-27display / read the p_cdsession field in the FS_ISO9660 casedrochner
2002-05-14Alpha boot block stuff has moved to <sys/bootblock.h>thorpej
2002-04-09Make this build again after the alpha/disklabel.h and dev/dec/dec_boot.hmycroft
changes.
2002-03-24Rename arm26 -> acorn26.bjh21
2002-02-14When accessing the MBR magic as a 16-bit value, consider its on-diskkleink
layout would be little-endian, too.
2002-02-08Generate <>& symbolically. I'm avoiding .../dist/... directories for now.ross