OpenBSD CVS

CVS log for src/sbin/fdisk/fdisk.8


[BACK] Up to [local] / src / sbin / fdisk

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.119 / (download) - annotate - [select for diffs], Fri Nov 10 15:41:11 2023 UTC (6 months, 4 weeks ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.118: +12 -15 lines
Diff to previous 1.118 (colored)

Enhance 'flag' to accept hex values in addition to the current 0
.. INT64_MAX decimal values..

Easier to specify the 64 bits of GPT partition attributes and
0x8000000000000000 (a.k.a.  MS_NOAUTOMOUNT, a.k.a. 1 << 63)
becomes accessable.

Prompted by bug report and testing by Philippe Meunier. Thanks!

ok dlg@

Revision 1.118 / (download) - annotate - [select for diffs], Sun May 7 13:03:03 2023 UTC (13 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.117: +6 -4 lines
Diff to previous 1.117 (colored)

GPT partitions with the 'Required' attribute are not deleted by -A.

Revision 1.117 / (download) - annotate - [select for diffs], Mon Jul 18 15:06:22 2022 UTC (22 months, 3 weeks ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.116: +4 -4 lines
Diff to previous 1.116 (colored)

Synch 'help' command descriptions with man page descriptions.

Put 'setpid' description in correct place in COMMAND MODE
command list. i.e. in same order as ask_cmd() will parse
it.

Simplify ask_cmd() by displaying prompt in edit loop
rather than passing editlevel to ask_cmd().

No intentional functional change.

Revision 1.116 / (download) - annotate - [select for diffs], Mon Jul 18 13:46:19 2022 UTC (22 months, 3 weeks ago) by krw
Branch: MAIN
Changes since 1.115: +7 -8 lines
Diff to previous 1.115 (colored)

'quit' and 'exit' descriptions were reversed.

Tweak 'abort' description to emphasize discarding
of changes.

Revision 1.115 / (download) - annotate - [select for diffs], Sun Jul 17 12:53:19 2022 UTC (22 months, 3 weeks ago) by krw
Branch: MAIN
Changes since 1.114: +218 -313 lines
Diff to previous 1.114 (colored)

Modernize and cleanse fdisk.8, making it more concise and
aligned with the code. Tweak usage() to stay in step.

Usual cogent feedback, tweaks and ok jmc@

Revision 1.114 / (download) - annotate - [select for diffs], Thu May 12 14:10:05 2022 UTC (2 years ago) by krw
Branch: MAIN
Changes since 1.113: +3 -2 lines
Diff to previous 1.113 (colored)

And the man page change too.

Revision 1.113 / (download) - annotate - [select for diffs], Tue May 3 11:48:47 2022 UTC (2 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.112: +4 -4 lines
Diff to previous 1.112 (colored)

Rework display of partition types, removing unnecessary trailing
blanks in the arrays of type names, simplifying the code and
making better use of printf().

Along the way discover that "APFS Recovery" fits, so nuke the
annoying "AFPS Recovry" contraction.

No intentional functional change.

Some "APFS Recovery" nits pointed out by jsg@

Revision 1.112 / (download) - annotate - [select for diffs], Thu Mar 31 17:27:19 2022 UTC (2 years, 2 months ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.111: +6 -6 lines
Diff to previous 1.111 (colored)

man pages: add missing commas between subordinate and main clauses

jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.

ok jmc@

Revision 1.111 / (download) - annotate - [select for diffs], Sun Mar 13 12:57:29 2022 UTC (2 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.110: +3 -2 lines
Diff to previous 1.110 (colored)

Missing 'or'.

Pointed out by jmc@

Revision 1.110 / (download) - annotate - [select for diffs], Fri Mar 11 22:29:55 2022 UTC (2 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.109: +15 -2 lines
Diff to previous 1.109 (colored)

Simple hack to preserve the EFI System partition when
auto-allocating the space on a disk whose GPT contains
any of the magic Apple partitions.

One step towards saving the firmware files on Apple
M1 machines when installing OpenBSD.

Tested & ok kettenis@

Revision 1.109 / (download) - annotate - [select for diffs], Thu Feb 3 13:24:04 2022 UTC (2 years, 4 months ago) by visa
Branch: MAIN
Changes since 1.108: +3 -2 lines
Diff to previous 1.108 (colored)

fdisk(8): Make -A preserve BIOS boot partition

On PolarFire SoC, the HSS firmware loads HSS payload from BIOS boot
partition. Typically the payload carries second-stage low-level boot
code, such as U-Boot. If the payload is missing, the SoC is not able
to boot normally. Hence automatic disk formatting should not delete
the partition.

OK krw@

Revision 1.108 / (download) - annotate - [select for diffs], Fri Nov 26 03:31:38 2021 UTC (2 years, 6 months ago) by jsg
Branch: MAIN
Changes since 1.107: +3 -3 lines
Diff to previous 1.107 (colored)

remaing -> remaining

Revision 1.107 / (download) - annotate - [select for diffs], Thu Oct 21 13:16:49 2021 UTC (2 years, 7 months ago) by krw
Branch: MAIN
Changes since 1.106: +2 -20 lines
Diff to previous 1.106 (colored)

Remove 'disk' editing command. Determining the disk geometry on startup (from
-l, -c/-h/-s or DIOCGPDINFO) should be enough for anyone.

Revision 1.106 / (download) - annotate - [select for diffs], Mon Sep 13 11:44:40 2021 UTC (2 years, 8 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.105: +15 -3 lines
Diff to previous 1.105 (colored)

Document that the editing command 'disk' takes an optional units argument.

Revision 1.105 / (download) - annotate - [select for diffs], Fri Aug 6 10:41:31 2021 UTC (2 years, 10 months ago) by krw
Branch: MAIN
Changes since 1.104: +43 -44 lines
Diff to previous 1.104 (colored)

Cleanup, clarify and generally polish the MBR/GPT initialization
code.

'-g' is promoted to be independant of '-i'. This makes it clearer
that there are four mutually exclusive initialization options.

'-i' puts the default MBR on disk, '-g' puts the default GPT on
disk, '-u' updates the MBR boot code on disk and '-A' puts a new
set of GPT partitions on disk without overwriting 'protected'
partitions.

The last initialization option specified is the one executed, so
existing '-i -g' finger memory, etc. continue to work as before.

man page/usage feedback/tweaks from jmc@

Revision 1.104 / (download) - annotate - [select for diffs], Wed Jun 23 13:07:13 2021 UTC (2 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.103: +2 -3 lines
Diff to previous 1.103 (colored)

The value of -l should be treated as a 512-byte block count.

Tweak man page.

Revision 1.103 / (download) - annotate - [select for diffs], Tue Jun 22 15:01:55 2021 UTC (2 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.102: +2 -3 lines
Diff to previous 1.102 (colored)

Pp not required before list items;

Revision 1.102 / (download) - annotate - [select for diffs], Tue Jun 22 14:01:58 2021 UTC (2 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.101: +13 -6 lines
Diff to previous 1.101 (colored)

The values for blocks and offset in -b should be treated as 512-byte block
counts.

Tweak man page accordingly.

Requested by deraadt@ and kettenis@.

Revision 1.101 / (download) - annotate - [select for diffs], Mon Jun 21 02:05:30 2021 UTC (2 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.100: +25 -36 lines
Diff to previous 1.100 (colored)

Add -A option to "safely" initialize a GPT without removing
special boot partitions needed by some hardware. Make it
difficult to add, delete or modify those partitions with 'fdisk
-e'.

Trim back and correct syntax in usage(). Whack at man page
verbiage.

Suggestions and ok deraadt@

Revision 1.100 / (download) - annotate - [select for diffs], Sun Jun 20 19:40:06 2021 UTC (2 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.99: +2 -6 lines
Diff to previous 1.99 (colored)

replace the Oo/Oc block of -chs in SYNOPSIS with a simple Op: the block
would have been written this way because of the old args limit, but the
extensions to -b expose a nasty line wrap when written that way;

Revision 1.99 / (download) - annotate - [select for diffs], Sun Jun 20 18:47:37 2021 UTC (2 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.98: +4 -4 lines
Diff to previous 1.98 (colored)

few more Ns in the -b option description

Revision 1.98 / (download) - annotate - [select for diffs], Sun Jun 20 18:44:19 2021 UTC (2 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.97: +15 -6 lines
Diff to previous 1.97 (colored)

Make -b available to architectures other than amd64 and i386.

Extend the syntax to allow the boot partition offset and boot
partition type to be specified if needed.

ok deraadt@ kettenis@

Revision 1.97 / (download) - annotate - [select for diffs], Wed Jun 16 15:40:47 2021 UTC (2 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.96: +4 -12 lines
Diff to previous 1.96 (colored)

Ensure that the '-i' command line option and the 'reinit [mbr]'
editing commnd completely remove any existing on-disk GPT header
when writing the MBR.

'-ig'/'reinit gpt' must be used to create GPT format.

Previous interactions between '-i', '-b' and overly clever
'reinit' produced surprising, inconsistent and incorrect
behaviour.

ok deraadt@ kettenis@

Revision 1.96 / (download) - annotate - [select for diffs], Sat Jan 30 15:15:20 2021 UTC (3 years, 4 months ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.95: +10 -6 lines
Diff to previous 1.95 (colored)

document that sizes in fdisk can be input and printed in terabytes

Revision 1.95 / (download) - annotate - [select for diffs], Mon Apr 29 18:54:12 2019 UTC (5 years, 1 month ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.94: +8 -6 lines
Diff to previous 1.94 (colored)

Add '*' to disklabel(8) editor prompt when in-memory copy of disklabel
has been modified. Use name of disk being edited in fdisk(8) editor
prompt.

Idea from tb@.

ok tb@ deraadt@

Revision 1.94 / (download) - annotate - [select for diffs], Sun Mar 26 00:22:49 2017 UTC (7 years, 2 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.93: +11 -11 lines
Diff to previous 1.93 (colored)

cleanup fdisk(8) partition names used by FAT file systems so they are more
consistent and easier to identify, as outlined here:

    - FAT12: FAT12 (01h)
    - FAT16: FAT16S (04h), FAT16B (06h), FAT16L (0Eh)
    - FAT32: FAT32 (0Bh), FAT32L (0Ch)

nothing in our tree is looking to the strings being replaced for anything
but printing them out, only to the numerical ids taken from disklabel.h

ok krw@, jmc@

Revision 1.93 / (download) - annotate - [select for diffs], Sat Sep 3 14:25:05 2016 UTC (7 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.92: +2 -3 lines
Diff to previous 1.92 (colored)

no more boot_zaurus.8;

Revision 1.92 / (download) - annotate - [select for diffs], Tue Feb 23 03:34:17 2016 UTC (8 years, 3 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.91: +7 -7 lines
Diff to previous 1.91 (colored)

A disk name of /dev/wd0c doesn't work. Correct verbiage and example.

Discovered by rpe@. Tweaked by schwarze@.

ok rpe@ schwarze@ jmc@ deraadt@

Revision 1.91 / (download) - annotate - [select for diffs], Sat Jan 9 18:10:56 2016 UTC (8 years, 5 months ago) by krw
Branch: MAIN
Changes since 1.90: +22 -24 lines
Diff to previous 1.90 (colored)

Revamp the display of GPT information, hiding less important
information under the '-v' flag. This brings the GPT display more
into line with the MBR display and simplifies and hardens the parsing
of the partition info in the install scripts.

Original problem with install scripts parsing hand edited GPT
information reported by Valere Monseur via bugs@.

Man page fixes and tweaks from jmc@.
Install script changes tested & ok rpe@.

Revision 1.90 / (download) - annotate - [select for diffs], Fri Dec 11 23:30:23 2015 UTC (8 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.89: +3 -5 lines
Diff to previous 1.89 (colored)

there are no boot_ pages for armish or landisk that i can see,
so remove their references;

while here undo a predefined string (as mandoc_char(7) calls them);

Revision 1.89 / (download) - annotate - [select for diffs], Fri Dec 11 21:57:31 2015 UTC (8 years, 5 months ago) by krw
Branch: MAIN
Changes since 1.88: +10 -3 lines
Diff to previous 1.88 (colored)

Add '-v' flag that forces the display of both GPT's and the MBR.
Useful for seeing exactly what is currently on the disk. Suggested
by a request from kettenis@.

Man page & usage ok jmc@

Revision 1.88 / (download) - annotate - [select for diffs], Tue Nov 17 17:47:49 2015 UTC (8 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.87: +13 -1 lines
Diff to previous 1.87 (colored)

note that -chs and -l are mutually exclusive;
from jan stary

Revision 1.87 / (download) - annotate - [select for diffs], Mon Oct 26 18:05:25 2015 UTC (8 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.86: +19 -15 lines
Diff to previous 1.86 (colored)

tweak previous;

Revision 1.86 / (download) - annotate - [select for diffs], Mon Oct 26 14:37:50 2015 UTC (8 years, 7 months ago) by krw
Branch: MAIN
Changes since 1.85: +97 -44 lines
Diff to previous 1.85 (colored)

Flesh out GPT info and tweak other verbiage to be less MBR specific.

Revision 1.85 / (download) - annotate - [select for diffs], Mon Oct 5 01:48:48 2015 UTC (8 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.84: +12 -4 lines
Diff to previous 1.84 (colored)

Tweak man page to describe newly enhanced '-g' operation.

Revision 1.84 / (download) - annotate - [select for diffs], Wed Sep 9 15:20:22 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.83: +4 -2 lines
Diff to previous 1.83 (colored)

In the flag command description, mention that a bootable partition
is marked with '*'
due to comments from sthen and kettenis

Revision 1.83 / (download) - annotate - [select for diffs], Wed Sep 9 15:13:35 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.82: +17 -32 lines
Diff to previous 1.82 (colored)

remove 3 paragraphs of useless information at the start, and replace
with the simple facts a user needs.
ok kettenis krw

Revision 1.82 / (download) - annotate - [select for diffs], Sun Sep 6 09:06:23 2015 UTC (8 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.81: +2 -2 lines
Diff to previous 1.81 (colored)

correct a mistake in my previous commit;

Revision 1.81 / (download) - annotate - [select for diffs], Fri Sep 4 21:19:45 2015 UTC (8 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.80: +9 -9 lines
Diff to previous 1.80 (colored)

shuffle -b into place; while there, do some general tidy up
of SYNOPSIS and usage();

Revision 1.80 / (download) - annotate - [select for diffs], Fri Sep 4 19:02:49 2015 UTC (8 years, 9 months ago) by kettenis
Branch: MAIN
Changes since 1.79: +8 -2 lines
Diff to previous 1.79 (colored)

Add a -b option, to be used together with -i, that tells fdisk to add a
special boot partition on architectures that need it.

For now those architectures are amd64 and i386, where this option will
create an EFI system partition to store our new UEFI bootloader.

ok deraadt@, krw@

Revision 1.79 / (download) - annotate - [select for diffs], Mon Mar 16 18:45:51 2015 UTC (9 years, 2 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.78: +16 -3 lines
Diff to previous 1.78 (colored)

Document that -i/-u are mutually exclusive and clean up the related
code a bit.

ok deraadt@ igor@ (with suggested tweak that is coming)

Revision 1.78 / (download) - annotate - [select for diffs], Sat Mar 14 15:21:53 2015 UTC (9 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.77: +13 -21 lines
Diff to previous 1.77 (colored)

Switch all the license blocks to the standard OpenBSD/ISC license.

With the permission of Toby.

ok deraadt@

Revision 1.77 / (download) - annotate - [select for diffs], Sat Jan 3 15:50:50 2015 UTC (9 years, 5 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.76: +12 -3 lines
Diff to previous 1.76 (colored)

Add support for creating a protective MBR for GPT.

Part of a diff by Markus Mueller, which was derived from Bitrig during
Google Summer of Code, with further tweaks by me.

ok krw@ miod@

Revision 1.76 / (download) - annotate - [select for diffs], Thu Mar 6 17:39:23 2014 UTC (10 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.75: +5 -5 lines
Diff to previous 1.75 (colored)

tweak previous;

Revision 1.75 / (download) - annotate - [select for diffs], Sun Mar 2 15:41:28 2014 UTC (10 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.74: +6 -2 lines
Diff to previous 1.74 (colored)

-l disksize code, to force LBA mode.  code by chris, after I suggested
wrapping rows of echo's via fdisk was silly.
ok kettenis krw

Revision 1.74 / (download) - annotate - [select for diffs], Fri Dec 3 08:14:56 2010 UTC (13 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored)

disklabel now uses "duid", not "uid";

Revision 1.73 / (download) - annotate - [select for diffs], Mon Nov 22 01:43:43 2010 UTC (13 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.72: +48 -52 lines
Diff to previous 1.72 (colored)

Update example disk partition info to more current reality. Noticed
by and diff from Roberth via tech@.

ok jmc@

Revision 1.72 / (download) - annotate - [select for diffs], Mon Jul 5 21:57:13 2010 UTC (13 years, 11 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.71: +4 -4 lines
Diff to previous 1.71 (colored)

improve description for -i; as a consequence of recent changes,
OpenBSD MBR partition does not span from sector 1 after MBR partition
data is re-initialized.

written with lot of good advice from deraadt@ and jmc@

ok deraadt@

Revision 1.71 / (download) - annotate - [select for diffs], Tue May 25 18:51:02 2010 UTC (14 years ago) by deraadt
Branch: MAIN
Changes since 1.70: +19 -4 lines
Diff to previous 1.70 (colored)

match usage to the manual page, and borrow the description of 'disk'
from disklabel(8), since it describes the effect of using opendev()

Revision 1.70 / (download) - annotate - [select for diffs], Thu May 20 13:29:50 2010 UTC (14 years ago) by jmc
Branch: MAIN
Changes since 1.69: +10 -6 lines
Diff to previous 1.69 (colored)

document the optional arg to "flag", as requested by Thomas Pfaff;
this version after some feedback from krw and otto;

ok otto krw

Revision 1.69 / (download) - annotate - [select for diffs], Sat Mar 27 13:56:49 2010 UTC (14 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)

remainer->remainder; from miod

Revision 1.68 / (download) - annotate - [select for diffs], Sat Mar 27 13:37:44 2010 UTC (14 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.67: +40 -27 lines
Diff to previous 1.67 (colored)

various improvements from Anders Langworthy, with some tweaks
from krw and myself;

ok deraadt krw

Revision 1.67 / (download) - annotate - [select for diffs], Mon Mar 30 04:52:50 2009 UTC (15 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.66: +15 -15 lines
Diff to previous 1.66 (colored)

some improvements inspired by a mail on misc@ from frantisek holop:

- clarify the terms geometry sectors field and start field
- change the fdisk prompt from 0 to 1, and explain its meaning
- temper CAVEATS: the note is "common practice", not mandatory

from nick and myself

Revision 1.66 / (download) - annotate - [select for diffs], Tue May 13 13:28:15 2008 UTC (16 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

fix an error in the example partition table; from Adam Patterson
ok nick

Revision 1.65 / (download) - annotate - [select for diffs], Mon Feb 18 21:33:05 2008 UTC (16 years, 3 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.64: +4 -4 lines
Diff to previous 1.64 (colored)

adjust width of S column to improve printing of the MBR partition table
on modern disk geometries; while here, better alignment of column labels

ok jmc@, jsing@, krw@, and otto@

Revision 1.64 / (download) - annotate - [select for diffs], Sun Dec 30 13:26:03 2007 UTC (16 years, 5 months ago) by sobrado
Branch: MAIN
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored)

sort flags in both synopsis and usage, file not commited in last diff

ok jmc@

Revision 1.63 / (download) - annotate - [select for diffs], Mon Nov 26 11:05:43 2007 UTC (16 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.62: +4 -3 lines
Diff to previous 1.62 (colored)

fix SEE ALSO; from deraadt

Revision 1.62 / (download) - annotate - [select for diffs], Sun Nov 25 17:38:13 2007 UTC (16 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.61: +6 -6 lines
Diff to previous 1.61 (colored)

tweak previous;

Revision 1.61 / (download) - annotate - [select for diffs], Sun Nov 25 15:55:42 2007 UTC (16 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.60: +15 -2 lines
Diff to previous 1.60 (colored)

document MBR spoofing, very minimally

Revision 1.60 / (download) - annotate - [select for diffs], Wed Aug 1 21:34:01 2007 UTC (16 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.59: +2 -3 lines
Diff to previous 1.59 (colored)

cats went away

Revision 1.59 / (download) - annotate - [select for diffs], Thu May 31 19:19:44 2007 UTC (17 years ago) by jmc
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

convert to new .Dd format;

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jan 12 20:16:05 2007 UTC (17 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.57: +4 -3 lines
Diff to previous 1.57 (colored)

make the description match synopsis for -chs;
discussed with nick

Revision 1.57 / (download) - annotate - [select for diffs], Thu Jan 11 08:49:00 2007 UTC (17 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)

avoid an ugly grammar construction;

Revision 1.56 / (download) - annotate - [select for diffs], Thu Jan 11 08:42:27 2007 UTC (17 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.55: +4 -1 lines
Diff to previous 1.55 (colored)

make the description of -e point to the COMMAND MODE section;

Revision 1.55 / (download) - annotate - [select for diffs], Thu Jan 11 07:08:22 2007 UTC (17 years, 5 months ago) by ray
Branch: MAIN
Changes since 1.54: +58 -58 lines
Diff to previous 1.54 (colored)

Move options into DESCRIPTION section.  This conforms with most
other man pages, where the options are near the top of the page for
easy access.

OK jmc@.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Nov 9 13:18:56 2006 UTC (17 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

desireable -> desirable;

Revision 1.53 / (download) - annotate - [select for diffs], Wed Nov 8 23:22:26 2006 UTC (17 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.52: +4 -2 lines
Diff to previous 1.52 (colored)

add a -y flag, for non-interactive use

Revision 1.52 / (download) - annotate - [select for diffs], Fri Oct 20 03:54:24 2006 UTC (17 years, 7 months ago) by dhill
Branch: MAIN
Changes since 1.51: +1 -6 lines
Diff to previous 1.51 (colored)

OpenBSD no longer supports using an older FreeBSD MBR partition.

ok krw@

Revision 1.51 / (download) - annotate - [select for diffs], Sat Aug 5 14:04:00 2006 UTC (17 years, 10 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.50: +12 -2 lines
Diff to previous 1.50 (colored)

Mention that `b', `k', `m', and `g' can be specified after the print
command to print partition sizes in units of bytes, kilobytes,
megabytes, and gigabytes.

Inspired by patch from Hiren Patel <hiren at obsidian dot co dot za>.

OK jmc@ and otto@

Revision 1.50 / (download) - annotate - [select for diffs], Sun May 1 20:53:38 2005 UTC (19 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.49: +17 -13 lines
Diff to previous 1.49 (colored)

- better synopsis
- sync usage()
- add fstab(5) to SEE ALSO
- NOTES -> CAVEATS and improve

bits ok deraadt@
improvements and ok tom@

Revision 1.49 / (download) - annotate - [select for diffs], Sat Apr 30 16:48:56 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

correctly use whole disk, pointed out by toby

Revision 1.48 / (download) - annotate - [select for diffs], Sat Apr 30 09:27:44 2005 UTC (19 years, 1 month ago) by jmc
Branch: MAIN
Changes since 1.47: +74 -75 lines
Diff to previous 1.47 (colored)

various fixes;

Revision 1.47 / (download) - annotate - [select for diffs], Sat Apr 30 07:10:13 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored)

match disklabel change

Revision 1.46 / (download) - annotate - [select for diffs], Sat Apr 30 07:05:31 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.45: +214 -181 lines
Diff to previous 1.45 (colored)

make this useable to people busy installing

Revision 1.45 / (download) - annotate - [select for diffs], Tue Mar 29 19:35:25 2005 UTC (19 years, 2 months ago) by otto
Branch: MAIN
Changes since 1.44: +3 -1 lines
Diff to previous 1.44 (colored)

Allow setting of partition flag with an optional explicit value. PR 4143.
ok weingart@ deraadr@

Revision 1.44 / (download) - annotate - [select for diffs], Wed Jan 19 15:48:20 2005 UTC (19 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.43: +3 -1 lines
Diff to previous 1.43 (colored)

add a swap primitive; ok various, will be polished after by tom

Revision 1.43 / (download) - annotate - [select for diffs], Sat Jun 26 11:45:40 2004 UTC (19 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.42: +5 -4 lines
Diff to previous 1.42 (colored)

new sentence, new line;

Revision 1.42 / (download) - annotate - [select for diffs], Tue Jun 22 23:01:55 2004 UTC (19 years, 11 months ago) by tom
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

Make the interactive "update" command match the command-line "-u"
option by updatng/setting the 0xAA55 signature at the end of the sector.

ok nick@ weingart@

Revision 1.41 / (download) - annotate - [select for diffs], Tue Jun 3 13:16:08 2003 UTC (21 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.40: +4 -3 lines
Diff to previous 1.40 (colored)

- section reorder
- some mdoc fixes

Revision 1.40 / (download) - annotate - [select for diffs], Tue Jun 3 01:13:19 2003 UTC (21 years ago) by weingart
Branch: MAIN
Changes since 1.39: +1 -6 lines
Diff to previous 1.39 (colored)

Nuke terms 3 & 4.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Jan 31 21:54:40 2003 UTC (21 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.38: +7 -6 lines
Diff to previous 1.38 (colored)

typos;
eeprom(8): added .Ar to fields, removed references to sun3
sshd(8): help and ok markus@

help and ok millert@

Revision 1.38 / (download) - annotate - [select for diffs], Fri Jan 4 21:20:56 2002 UTC (22 years, 5 months ago) by kjell
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.37: +12 -7 lines
Diff to previous 1.37 (colored)

sync to reality.
Note that the NT serial number is now whacked with an update, or -u
Fix signature in example.
Explicitly state the MBR signature (0xAA55)

Revision 1.37 / (download) - annotate - [select for diffs], Fri Dec 21 11:41:50 2001 UTC (22 years, 5 months ago) by mpech
Branch: MAIN
Changes since 1.36: +1 -2 lines
Diff to previous 1.36 (colored)

Initial patch for a new mdoc issue.
Powered by @mantoya:
o) kill extra line in the end of file;
o) kill extra space in the end of line;
o) replace blank lines with .Pp;

millert@ ok

Revision 1.36 / (download) - annotate - [select for diffs], Sat Dec 15 02:12:26 2001 UTC (22 years, 5 months ago) by kjell
Branch: MAIN
Changes since 1.35: +17 -8 lines
Diff to previous 1.35 (colored)

Get this damn diff out of my tree. ok from weingart@, deraadt@ and others.
Add a -u flag to fdisk which updates MBR code, but leaves the partition
table intact. There are still issues with 'update' having different behavior,
but I'll resolve those shortly

Revision 1.35 / (download) - annotate - [select for diffs], Fri Aug 17 11:13:57 2001 UTC (22 years, 9 months ago) by mpech
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.34: +4 -3 lines
Diff to previous 1.34 (colored)

o) {Open,Net,Free}BSD -> .{O,N,F}x;
o) "start sentence on new line" issues;
o) minimal -mdoc improvements;

millert@ ok

Revision 1.34 / (download) - annotate - [select for diffs], Mon Jan 1 21:05:34 2001 UTC (23 years, 5 months ago) by angelos
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.33: +6 -1 lines
Diff to previous 1.33 (colored)

New command "setpid", just changes the ID of a partition (no other
parameters editing) -- vassilip@dsl.cis.upenn.edu

Revision 1.33 / (download) - annotate - [select for diffs], Thu Nov 9 17:52:54 2000 UTC (23 years, 7 months ago) by aaron
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

Change all option list specifications to ".Bl -tag -width Ds". Most man
pages just needed their -width parameter tweaked to "Ds", which provides
a nice width of 6 constant characters. For consistency more than anything.

Revision 1.32 / (download) - annotate - [select for diffs], Tue May 2 00:18:19 2000 UTC (24 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (colored)

Oxify; aaron

Revision 1.31 / (download) - annotate - [select for diffs], Sat Mar 18 22:55:55 2000 UTC (24 years, 2 months ago) by aaron
Branch: MAIN
Changes since 1.30: +40 -26 lines
Diff to previous 1.30 (colored)

Remove hard sentence breaks, and some other cleanup along the way.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Mar 5 00:28:49 2000 UTC (24 years, 3 months ago) by aaron
Branch: MAIN
Changes since 1.29: +7 -10 lines
Diff to previous 1.29 (colored)

Finish standardizing options list introduction.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Jan 22 02:17:53 2000 UTC (24 years, 4 months ago) by aaron
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

ie. -> i.e.,

Revision 1.28 / (download) - annotate - [select for diffs], Thu Sep 23 23:23:30 1999 UTC (24 years, 8 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.27: +8 -4 lines
Diff to previous 1.27 (colored)

Caveat Emperor -> Caveat Emptor; kwesterback@home.com

Revision 1.27 / (download) - annotate - [select for diffs], Wed Jul 21 01:07:53 1999 UTC (24 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.26: +11 -5 lines
Diff to previous 1.26 (colored)

use .Ar on later .It Fl lines

Revision 1.26 / (download) - annotate - [select for diffs], Sun Jul 4 18:59:39 1999 UTC (24 years, 11 months ago) by aaron
Branch: MAIN
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored)

trash some old leftover macros and replace them with -mdoc macros

Revision 1.25 / (download) - annotate - [select for diffs], Sat Jul 3 02:11:07 1999 UTC (24 years, 11 months ago) by aaron
Branch: MAIN
Changes since 1.24: +1 -2 lines
Diff to previous 1.24 (colored)

remove redundant .Pp macros

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jun 6 18:43:10 1999 UTC (25 years ago) by aaron
Branch: MAIN
Changes since 1.23: +3 -1 lines
Diff to previous 1.23 (colored)

mention the `manual' command; mcsmart@engin.umich.edu

Revision 1.23 / (download) - annotate - [select for diffs], Fri Jun 4 02:45:15 1999 UTC (25 years ago) by aaron
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@

Revision 1.22 / (download) - annotate - [select for diffs], Sun May 23 14:11:15 1999 UTC (25 years ago) by aaron
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com

Revision 1.21 / (download) - annotate - [select for diffs], Thu Mar 18 11:04:50 1999 UTC (25 years, 2 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

powerfull -> powerful; garath@ntplx.net

Revision 1.20 / (download) - annotate - [select for diffs], Tue Dec 15 01:20:30 1998 UTC (25 years, 6 months ago) by aaron
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.net

Revision 1.19 / (download) - annotate - [select for diffs], Sat Nov 28 19:56:18 1998 UTC (25 years, 6 months ago) by aaron
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

kill redundant .Nm macro arguments; other misc fixes

Revision 1.18 / (download) - annotate - [select for diffs], Wed Nov 11 22:19:56 1998 UTC (25 years, 7 months ago) by aaron
Branch: MAIN
Changes since 1.17: +16 -7 lines
Diff to previous 1.17 (colored)

more `` '' -> .Dq sillyness; remove redundant .Pp macros; other misc fixes

Revision 1.17 / (download) - annotate - [select for diffs], Wed Sep 23 01:20:23 1998 UTC (25 years, 8 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

alphabetize SEE ALSO entries and order them numerically according to section

Revision 1.16 / (download) - annotate - [select for diffs], Thu Sep 17 04:14:52 1998 UTC (25 years, 8 months ago) by aaron
Branch: MAIN
Changes since 1.15: +36 -26 lines
Diff to previous 1.15 (colored)

sbin/ man page fixes

Revision 1.15 / (download) - annotate - [select for diffs], Tue Sep 1 16:38:16 1998 UTC (25 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

more man page fixes; aaron@ug.cs.dal.ca

Revision 1.14 / (download) - annotate - [select for diffs], Wed Apr 1 18:46:48 1998 UTC (26 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.13: +11 -3 lines
Diff to previous 1.13 (colored)

clarify

Revision 1.13 / (download) - annotate - [select for diffs], Thu Feb 19 20:48:07 1998 UTC (26 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

new netbsd partition type

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jan 19 15:56:33 1998 UTC (26 years, 4 months ago) by weingart
Branch: MAIN
Changes since 1.11: +4 -3 lines
Diff to previous 1.11 (colored)

Fix wording.  Thanks to austin@canuck.com

Revision 1.11 / (download) - annotate - [select for diffs], Tue Dec 23 23:53:02 1997 UTC (26 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

swap exit and quit

Revision 1.10 / (download) - annotate - [select for diffs], Thu Oct 16 10:20:19 1997 UTC (26 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

oops

Revision 1.9 / (download) - annotate - [select for diffs], Thu Oct 16 10:17:53 1997 UTC (26 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +10 -10 lines
Diff to previous 1.8 (colored)

match recent changes

Revision 1.8 / (download) - annotate - [select for diffs], Tue Sep 30 00:10:34 1997 UTC (26 years, 8 months ago) by mickey
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

2nd try

Revision 1.7 / (download) - annotate - [select for diffs], Mon Sep 29 23:12:03 1997 UTC (26 years, 8 months ago) by mickey
Branch: MAIN
Changes since 1.6: +4 -3 lines
Diff to previous 1.6 (colored)

fix Notes:

Revision 1.6 / (download) - annotate - [select for diffs], Mon Sep 29 22:58:20 1997 UTC (26 years, 8 months ago) by weingart
Branch: MAIN
Changes since 1.5: +175 -135 lines
Diff to previous 1.5 (colored)

New fdisk code with interactive (command line type)
editing code.  Rewrite from the ground up, save about
20 lines of code.  Seems to create valid partition
tables on i386 and alphas.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Sep 27 15:27:15 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.4: +45 -29 lines
Diff to previous 1.4 (colored)

first pass at explaining the changes

Revision 1.4 / (download) - annotate - [select for diffs], Wed Sep 25 11:24:11 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +34 -33 lines
Diff to previous 1.3 (colored)

permit loading of a special MBR bootblock -- do not encode a fake MBR
bootblock inside the program. cleanup printed output. do not assume 'd'
partition.  Solves a whole bunch of other interaction problems with
disklabel.  Has been tested a fair bit, but will endure more testing
(at the hands of the users! Hahahaha!)

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jun 23 14:30:24 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +1 -0 lines
Diff to previous 1.2 (colored)

update rcsid

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jun 3 07:54:33 1996 UTC (28 years ago) by deraadt
Branch: MAIN
Changes since 1.1: +12 -6 lines
Diff to previous 1.1 (colored)

openbsd, not netbsd

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:43:31 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:43:31 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.