OpenBSD CVS

CVS log for src/sbin/disklabel/disklabel.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.254 / (download) - annotate - [select for diffs], Mon Jul 3 15:27:07 2023 UTC (10 months, 4 weeks ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.253: +2 -2 lines
Diff to previous 1.253 (colored)

An empty string indicates there is no NXTNUM().

Fixes segfault in -e if you happen to delete everything after
a partition line's ":".

Revision 1.253 / (download) - annotate - [select for diffs], Mon Jul 3 08:16:36 2023 UTC (10 months, 4 weeks ago) by krw
Branch: MAIN
Changes since 1.252: +1 -3 lines
Diff to previous 1.252 (colored)

Nuke unused label 'next:'.

Revision 1.252 / (download) - annotate - [select for diffs], Mon Jul 3 06:07:40 2023 UTC (11 months ago) by krw
Branch: MAIN
Changes since 1.251: +22 -22 lines
Diff to previous 1.251 (colored)

The only thing worse than treating 'return' as a function call is
randomly mixing 'return (blah)' and 'return blah' idioms.

Nuke the '()'s. No intentional functional change.

Revision 1.251 / (download) - annotate - [select for diffs], Wed Jun 21 12:50:09 2023 UTC (11 months, 1 week ago) by krw
Branch: MAIN
Changes since 1.250: +2 -2 lines
Diff to previous 1.250 (colored)

Add a parameter 'action' to mpfree() so it can optionally discard
or keep the memory pointed at by the char ** parameter.

Allows mpfree() to be used against the global mountpoints[] and
eliminates a couple of manual loops to free the current contents
of mountpoints[].

No intentional functional change.

Revision 1.250 / (download) - annotate - [select for diffs], Mon Jun 19 13:45:19 2023 UTC (11 months, 1 week ago) by krw
Branch: MAIN
Changes since 1.249: +4 -4 lines
Diff to previous 1.249 (colored)

Replace eclectic mix of errx(4, "out of memory"), err(4, NULL)
and err(1, NULL) with consistent err(1, NULL) when responding to
out of memory conditions.

Revision 1.249 / (download) - annotate - [select for diffs], Sat May 13 18:13:42 2023 UTC (12 months, 2 weeks ago) by krw
Branch: MAIN
Changes since 1.248: +4 -20 lines
Diff to previous 1.248 (colored)

In the absence of the 'disktype' command line parameter always
use the d_type value provided by the kernel when creating,
editing or printing a disklabel.

i.e. treat d_type as disk geometry is treated, reflecting
current reality as opposed to historical data.

Revision 1.248 / (download) - annotate - [select for diffs], Sat May 6 15:07:02 2023 UTC (12 months, 3 weeks ago) by krw
Branch: MAIN
Changes since 1.247: +5 -5 lines
Diff to previous 1.247 (colored)

Replace pointless %d formatting of 0 values with
literal '0's.

No functional change.

Revision 1.247 / (download) - annotate - [select for diffs], Wed Jan 4 21:08:08 2023 UTC (16 months, 3 weeks ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.246: +7 -7 lines
Diff to previous 1.246 (colored)

Use 'const struct disklabel *' parameters where the disklabel is
not altered. And 'const struct partition *' for pointers into
newly const disklabels.

No intentional functional change.

Revision 1.246 / (download) - annotate - [select for diffs], Sun Dec 4 23:50:46 2022 UTC (17 months, 3 weeks ago) by cheloha
Branch: MAIN
Changes since 1.245: +1 -2 lines
Diff to previous 1.245 (colored)

userspace: remove vestigial '?' cases from top-level getopt(3) loops

getopt(3) returns '?' when it encounters a flag not present in the in
the optstring or if a flag is missing its option argument.  We can
handle this case with the "default" failure case with no loss of
legibility.  Hence, remove all the redundant "case '?':" lines.

Prompted by dlg@.  With help from dlg@ and millert@.

Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2

ok naddy@ millert@ dlg@

Revision 1.245 / (download) - annotate - [select for diffs], Wed Oct 12 23:11:32 2022 UTC (19 months, 2 weeks ago) by krw
Branch: MAIN
Changes since 1.244: +2 -4 lines
Diff to previous 1.244 (colored)

Nuke D_BADSECT and disktab's 'sf'.

DEC standard 144 bad sector information is no longer a thing. As
evidenced by bad144(8) moving to the attic 16 years ago.

ok miod@, who points out that badsect(8) is now the nail sticking
out.

Revision 1.244 / (download) - annotate - [select for diffs], Tue Sep 6 14:14:44 2022 UTC (20 months, 3 weeks ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.243: +5 -29 lines
Diff to previous 1.243 (colored)

Delete some unreferenced SMD, ST506 and archaic SCSI #define's
that use d_drivedata.

Since nothing else in the tree refers to d_drivedata other than
/etc/disktab parsing and no /etc/disktab entry utilizes the
:d[0-4]: attributes, stop disklabel(8) both printing "drivedata:
0" and paying attention to any "drivedata: ..." lines in ascii
labels being read.

ok jsg@ miod@

Revision 1.243 / (download) - annotate - [select for diffs], Thu Sep 1 13:35:02 2022 UTC (21 months ago) by krw
Branch: MAIN
Changes since 1.242: +1 -15 lines
Diff to previous 1.242 (colored)

d_bbsize and d_sbsize have become write-only fields.

No need to set them or check that they are set.

ok otto@ as part of larger diff

Revision 1.242 / (download) - annotate - [select for diffs], Wed Aug 31 08:35:07 2022 UTC (21 months ago) by krw
Branch: MAIN
Changes since 1.241: +4 -4 lines
Diff to previous 1.241 (colored)

If a partition both starts and ends beyond the end of the unit
only warn about the start.

ok millert@

Revision 1.241 / (download) - annotate - [select for diffs], Sun Jul 31 14:29:19 2022 UTC (22 months ago) by krw
Branch: MAIN
Changes since 1.240: +15 -47 lines
Diff to previous 1.240 (colored)

The geometry information in stuct disklabel is not used for
anything. Allowing modifications to it or displaying whatever
geometry was in use when the label was created leads to needless
inconsistency with the kernel and with the values displayed by,
e.g., fdisk(8).

Always set label fields d_secsize, d_nsectors, d_ntracks,
d_secpercyl, d_ncylinders to the current values used by the
kernel, obtained via DIOCGPDINFO. Ignore any values from the
on-disk label or the file -R uses.

Nuke editor command 'g' and restrict editor command 'e' to
changing d_type and d_packname.

Revision 1.240 / (download) - annotate - [select for diffs], Thu Feb 24 14:44:14 2022 UTC (2 years, 3 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.239: +13 -21 lines
Diff to previous 1.239 (colored)

Rename parselabel() to parsefstab() and makelabel() to
parsedisktab().

Move non-fstab and non-disktab bits to the single points of
invocation for both.

No intentional functional change.

Revision 1.239 / (download) - annotate - [select for diffs], Fri Feb 18 19:26:40 2022 UTC (2 years, 3 months ago) by krw
Branch: MAIN
Changes since 1.238: +1 -2 lines
Diff to previous 1.238 (colored)

writelabel() only needs one prototype.

Revision 1.238 / (download) - annotate - [select for diffs], Fri Feb 18 17:45:43 2022 UTC (2 years, 3 months ago) by krw
Branch: MAIN
Changes since 1.237: +4 -1 lines
Diff to previous 1.237 (colored)

Move prototypes for checklabel(), readlabel() and parselabel()
into disklabel.c since editor.c and dkcksum.c have no need to
know.

Revision 1.237 / (download) - annotate - [select for diffs], Thu Jun 24 21:11:40 2021 UTC (2 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.236: +7 -20 lines
Diff to previous 1.236 (colored)

trim usage to match the man page;
remove -DSEEALSO, as suggested by millert

ok millert

Revision 1.236 / (download) - annotate - [select for diffs], Sat Nov 14 20:53:31 2020 UTC (3 years, 6 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.235: +5 -3 lines
Diff to previous 1.235 (colored)

Constify dktypenames and fstypenames in libc.
Adjust variable declaration in disklabel to match.

ok millert@ deraadt@

Revision 1.235 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:43 2019 UTC (4 years, 11 months ago) by deraadt
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.234: +2 -2 lines
Diff to previous 1.234 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.234 / (download) - annotate - [select for diffs], Tue Apr 2 01:47:49 2019 UTC (5 years, 2 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.233: +13 -13 lines
Diff to previous 1.233 (colored)

Use consistant idiom for checking return value of
ioctl() (i.e. == -1). Don't prepend 'ioctl ' to ioctl
name in error or warning messages. Always put the
ioctl name in emitted messages.

No intentional functional change.

Revision 1.233 / (download) - annotate - [select for diffs], Tue Apr 2 01:10:29 2019 UTC (5 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.232: +2 -7 lines
Diff to previous 1.232 (colored)

No need for RESTORE (-R) to call DIOCGINFO and mpsave() twice in
normal mode.

And not overwriting any -F/-f file when in -n (donothing) mode is
likely less surprising.

Revision 1.232 / (download) - annotate - [select for diffs], Tue Apr 2 00:58:00 2019 UTC (5 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.231: +8 -33 lines
Diff to previous 1.231 (colored)

Remove l_perror() and rely on warn() for failure
messages in writelabel(). Consolidate two
consecutive 'if (!donothing) ...' blocks into
one.

Revision 1.231 / (download) - annotate - [select for diffs], Mon Apr 1 00:12:02 2019 UTC (5 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.230: +2 -10 lines
Diff to previous 1.230 (colored)

No need to save/restore fields across the invocation of
getasciilabel() when getasciilabel() explicitly avoids
changing those fields.

ok otto@

Revision 1.230 / (download) - annotate - [select for diffs], Sat Aug 11 18:37:21 2018 UTC (5 years, 9 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.229: +2 -2 lines
Diff to previous 1.229 (colored)

Nuke stray/pointless 'volatile' for local var.

Revision 1.229 / (download) - annotate - [select for diffs], Tue Jul 3 06:42:13 2018 UTC (5 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.228: +5 -5 lines
Diff to previous 1.228 (colored)

Nuke some leading spaces and mis-indentations that crept in over the
years.

ok otto@

Revision 1.228 / (download) - annotate - [select for diffs], Tue Jul 3 06:37:45 2018 UTC (5 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.227: +3 -3 lines
Diff to previous 1.227 (colored)

No need for print_unit to be a global.

ok otto@

Revision 1.227 / (download) - annotate - [select for diffs], Sun Feb 25 17:24:44 2018 UTC (6 years, 3 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.226: +13 -13 lines
Diff to previous 1.226 (colored)

Bunch of whitespace fixes.

ok otto@

Revision 1.226 / (download) - annotate - [select for diffs], Fri Sep 29 18:32:09 2017 UTC (6 years, 8 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.225: +7 -4 lines
Diff to previous 1.225 (colored)

don't be silent on auto-allocation failure in write mode. ok millert@ krw@

Revision 1.225 / (download) - annotate - [select for diffs], Sat Mar 4 07:26:42 2017 UTC (7 years, 3 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.224: +2 -1 lines
Diff to previous 1.224 (colored)

Allow R (resize auto-partition) after A as well as when started with -A.
This ability was lost in editor.c 1.264; noted by ajacoutot@; ok krw@

Revision 1.224 / (download) - annotate - [select for diffs], Sun Sep 4 11:35:30 2016 UTC (7 years, 8 months ago) by bluhm
Branch: MAIN
Changes since 1.223: +2 -2 lines
Diff to previous 1.223 (colored)

After aligning the cpg field, non ffs partitions were not displayed
aligned anymore.  Put one more space in front of the "# none" mount
point output.
OK otto@

Revision 1.223 / (download) - annotate - [select for diffs], Fri Sep 2 10:47:17 2016 UTC (7 years, 9 months ago) by otto
Branch: MAIN
Changes since 1.222: +3 -3 lines
Diff to previous 1.222 (colored)

Allow editing cpg in expert mode and align the cpg field properly
ok krw@

Revision 1.222 / (download) - annotate - [select for diffs], Sun Jun 19 13:42:56 2016 UTC (7 years, 11 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.221: +35 -20 lines
Diff to previous 1.221 (colored)

Split readlabel() into two functions, readlabel() and parselabel(), and
pledge in-between the two funtion calls.  The new readlabel() only does
a DIOC*DINFO ioctl, making sure the fd points to a disk, while
parselabel() does the scary string manipulations.  In the makelabel()
code path do an early DIOCGDINFO before pledge.  This fixes yet another
pledge problem (disklabel -w /dev/tty floppy576).

Some of this was discussed with beck.

ok semarie, earlier version ok deraadt

Revision 1.221 / (download) - annotate - [select for diffs], Mon Jun 13 09:54:01 2016 UTC (7 years, 11 months ago) by jsg
Branch: MAIN
Changes since 1.220: +4 -1 lines
Diff to previous 1.220 (colored)

correct pledge for disklabel -R -[fF]
ok tb@

Revision 1.220 / (download) - annotate - [select for diffs], Wed Jun 1 16:51:54 2016 UTC (8 years ago) by tb
Branch: MAIN
Changes since 1.219: +4 -4 lines
Diff to previous 1.219 (colored)

Fix automatic disk allocation based on a template which I broke in the
previous commit.  readlabel() calls editor_allocspace() which will use
the default label unless a template was provided beforehand.  Thus,
call parse_autolabel() before redlabel().

Problem found and fix provided by Mark Patruck, thanks!

Fix asap, deraadt@

Revision 1.219 / (download) - annotate - [select for diffs], Sun May 29 17:02:21 2016 UTC (8 years ago) by tb
Branch: MAIN
Changes since 1.218: +17 -20 lines
Diff to previous 1.218 (colored)

Refactor and clean up the logic before pledge a bit and fix pledge
fallout related to pledge disklabel (e.g. 'disklabel /dev/tty').

- Allow 'disklabel sdN' again for non-root users.
- Make sure at least one DIO* ioctl comes before pledge "disklabel"
- Fix the op == WRITE logic that broke 'make release' in -r2.217

Based on -r2.17 from beck.

ok beck

Revision 1.218 / (download) - annotate - [select for diffs], Sat May 28 23:38:30 2016 UTC (8 years ago) by deraadt
Branch: MAIN
Changes since 1.217: +7 -2 lines
Diff to previous 1.217 (colored)

back out previous; -wAT template vnd0 fails

Revision 1.217 / (download) - annotate - [select for diffs], Sat May 28 16:46:44 2016 UTC (8 years ago) by beck
Branch: MAIN
Changes since 1.216: +3 -8 lines
Diff to previous 1.216 (colored)

host readlabel() above the pledge so we can avoid pledge violations
when the provided device is not a disk
ok tb@

Revision 1.216 / (download) - annotate - [select for diffs], Sat May 28 16:00:19 2016 UTC (8 years ago) by beck
Branch: MAIN
Changes since 1.215: +3 -1 lines
Diff to previous 1.215 (colored)

fix crash if filename not provided

Revision 1.215 / (download) - annotate - [select for diffs], Sat May 28 15:46:43 2016 UTC (8 years ago) by beck
Branch: MAIN
Changes since 1.214: +7 -7 lines
Diff to previous 1.214 (colored)

Hoist the opendev() call before the pledge because it can ioctl() when
the provided path is bogus or not a device.
ok deraadt

Revision 1.214 / (download) - annotate - [select for diffs], Wed Nov 25 17:17:38 2015 UTC (8 years, 6 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.213: +2 -2 lines
Diff to previous 1.213 (colored)

-A needs cflag too. Noted by sthen@ during install.

Revision 1.213 / (download) - annotate - [select for diffs], Tue Nov 24 01:17:03 2015 UTC (8 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.212: +3 -7 lines
Diff to previous 1.212 (colored)

Need 'cpath' for op == EDITOR, as '-F' to write out the ascii label in
an arbitrary location is a possibility.

Suggested by & ok deraadt@

Revision 1.212 / (download) - annotate - [select for diffs], Mon Nov 23 19:19:29 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.211: +28 -1 lines
Diff to previous 1.211 (colored)

Use pledge "disklabel" as needed.  The theory here is these tools become more
resistant against memory correctup, if a corrupt filesystem is given to them.
ok krw

Revision 1.211 / (download) - annotate - [select for diffs], Sat Oct 17 13:27:08 2015 UTC (8 years, 7 months ago) by krw
Branch: MAIN
Changes since 1.210: +8 -43 lines
Diff to previous 1.210 (colored)

NUMBOOT is dead! Nuke the variables and abstractions that were used
to build boot blocks.

ok miod@

Revision 1.210 / (download) - annotate - [select for diffs], Thu Oct 15 19:31:15 2015 UTC (8 years, 7 months ago) by miod
Branch: MAIN
Changes since 1.209: +3 -241 lines
Diff to previous 1.209 (colored)

Remove disklabel -B (NUMBOOT) support. All the platforms which used to need
it are now using MI installboot for that purpose.

ok krw@ deraadt@

Revision 1.209 / (download) - annotate - [select for diffs], Sun Oct 11 04:36:22 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.208: +5 -1 lines
Diff to previous 1.208 (colored)

If only displaying the disklabel (the normal thing to do against potentially
unknown disks...), after opening & reading the disklabel, pledge "stdio"
ok doug

Revision 1.208 / (download) - annotate - [select for diffs], Mon Oct 5 12:49:58 2015 UTC (8 years, 7 months ago) by krw
Branch: MAIN
Changes since 1.207: +2 -2 lines
Diff to previous 1.207 (colored)

Remove 'landisk' from the comment about NUMBOOT archs. Only one
NUMBOOT arch is left: Vax.

Revision 1.207 / (download) - annotate - [select for diffs], Thu Sep 24 22:03:53 2015 UTC (8 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.206: +2 -2 lines
Diff to previous 1.206 (colored)

Remove hppa/hppa64 from comment about NUMBOOT > 0 architectures.

Revision 1.206 / (download) - annotate - [select for diffs], Thu Sep 24 19:49:38 2015 UTC (8 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.205: +2 -15 lines
Diff to previous 1.205 (colored)

Expunge VAX SMD special handling that tried to fill up the last
cylinder of the disk with extra copies of the boot blocks and
disklabel. There are no plans to ever support the native SMD
controllers that would find this useful.

ok miod@

Revision 1.205 / (download) - annotate - [select for diffs], Wed Sep 9 13:51:55 2015 UTC (8 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.204: +10 -12 lines
Diff to previous 1.204 (colored)

No need to check !xxboot inside a 'if (!xxboot) ...' block.

ok otto@ deraadt@

Revision 1.204 / (download) - annotate - [select for diffs], Thu Aug 20 22:02:20 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.203: +2 -2 lines
Diff to previous 1.203 (colored)

<stdlib.h> is included, so do not need to cast result from
malloc, calloc, realloc*
ok krw millert

Revision 1.203 / (download) - annotate - [select for diffs], Sat Aug 15 17:16:10 2015 UTC (8 years, 9 months ago) by krw
Branch: MAIN
Changes since 1.202: +3 -3 lines
Diff to previous 1.202 (colored)

Less damned spurious whitespace.

Revision 1.202 / (download) - annotate - [select for diffs], Wed Jun 3 02:24:36 2015 UTC (9 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.201: +7 -3 lines
Diff to previous 1.201 (colored)

Do not assume that asprintf() clears the pointer on failure, which
is non-portable.  Also add missing asprintf() return value checks.
OK deraadt@ guenther@ doug@

Revision 1.201 / (download) - annotate - [select for diffs], Wed Apr 29 16:56:31 2015 UTC (9 years, 1 month ago) by henning
Branch: MAIN
Changes since 1.200: +3 -3 lines
Diff to previous 1.200 (colored)

some fine-tuning in SYNOPSIS, usage, and order of options, with jmc

Revision 1.200 / (download) - annotate - [select for diffs], Wed Apr 29 09:58:16 2015 UTC (9 years, 1 month ago) by henning
Branch: MAIN
Changes since 1.199: +13 -6 lines
Diff to previous 1.199 (colored)

support passing a template file for the auto-allocation to disklabel.
template gives mountpoints, min-max size ranges and percentage of disk
foremost intended for autoinstalls, installer bits to follow soon.
with input from many, ok theo

Revision 1.199 / (download) - annotate - [select for diffs], Sat Feb 7 02:09:13 2015 UTC (9 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.198: +9 -9 lines
Diff to previous 1.198 (colored)

When getopt processing flags, many should be flag=1 instead of flag++
ok tedu miod

Revision 1.198 / (download) - annotate - [select for diffs], Tue Jan 20 18:22:20 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.197: +2 -2 lines
Diff to previous 1.197 (colored)

Adjust <sys/param.h> comments regarding use of use of MAXFRAG, or
delete <sys/param.h> if now possible
ok guenther

Revision 1.197 / (download) - annotate - [select for diffs], Fri Jan 16 06:39:57 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.196: +2 -2 lines
Diff to previous 1.196 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.196 / (download) - annotate - [select for diffs], Sun Jul 20 01:38:40 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.195: +2 -2 lines
Diff to previous 1.195 (colored)

Make sure the correct errno is reported by warn* or err* and not
the errno of an intervening cleanup operation like close/unlink/etc.

Diff from Doug Hogan (doug (at) acyclic.org)

Revision 1.195 / (download) - annotate - [select for diffs], Mon May 5 16:33:34 2014 UTC (10 years ago) by krw
Branch: MAIN
Changes since 1.194: +40 -7 lines
Diff to previous 1.194 (colored)

Enhance reading of saved ascii labels (-R) to process mountpoint
information if present. Can be used with -F/-f options to create
an fstab from the saved label.

ok otto@

Revision 1.194 / (download) - annotate - [select for diffs], Wed Apr 23 11:49:25 2014 UTC (10 years, 1 month ago) by otto
Branch: MAIN
Changes since 1.193: +1 -2 lines
Diff to previous 1.193 (colored)

don't clear label before readasciilabel(), it will not fill in some
required fields like disk size, causing consistency check failures.
with and ok krw@

Revision 1.193 / (download) - annotate - [select for diffs], Tue Mar 18 22:36:30 2014 UTC (10 years, 2 months ago) by miod
Branch: MAIN
Changes since 1.192: +2 -2 lines
Diff to previous 1.192 (colored)

Retire hp300, mvme68k and mvme88k ports. These ports have no users, keeping
this hardware alive is becoming increasingly difficult, and I should heed the
message sent by the three disks which have died on me over the last few days.

Noone sane will mourn these ports anyway. So long, and thanks for the fish.

Revision 1.192 / (download) - annotate - [select for diffs], Fri Feb 14 15:03:43 2014 UTC (10 years, 3 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.191: +1 -11 lines
Diff to previous 1.191 (colored)

Ooops. r1.169 was supposed to add 'total sectors' to the list of
fields that are ignored when reading an ascii disklabel. Actually
remove the parsing of 'total sectors', which was just above the line
trying to skip said parsing.

Spotted when halex@ forced me to read this code again.

Revision 1.191 / (download) - annotate - [select for diffs], Fri Nov 22 04:12:47 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.190: +6 -6 lines
Diff to previous 1.190 (colored)

Whole bunch of (unsigned char) casts carefully added for ctype calls.
Careful second audit by millert

Revision 1.190 / (download) - annotate - [select for diffs], Tue Oct 15 20:13:02 2013 UTC (10 years, 7 months ago) by bluhm
Branch: MAIN
Changes since 1.189: +2 -2 lines
Diff to previous 1.189 (colored)

The disklabel variables aflag and dflag are boolean, use logical
instead of binary operators for comparison.
OK krw@

Revision 1.189 / (download) - annotate - [select for diffs], Thu Oct 3 18:50:30 2013 UTC (10 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.188: +4 -4 lines
Diff to previous 1.188 (colored)

Print u_int64_t variables with %llu.

Revision 1.188 / (download) - annotate - [select for diffs], Tue Sep 10 15:17:46 2013 UTC (10 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.187: +4 -4 lines
Diff to previous 1.187 (colored)

The rule is: daddr_t variables hold counts of 512-byte blocks, a.k.a.
DEV_BSIZE blocks. Counts of possibly other-sized blocks (e.g. disk
sector addresses) are u_int64_t. The values stored in disklabels are
counts of possibly other-sized blocks and hence should be handled with
u_int64_t variables.

Start enforcing this rule. No intended functional change.

Rule strongly suggested by deraadt@

Revision 1.187 / (download) - annotate - [select for diffs], Tue Jun 18 18:24:15 2013 UTC (10 years, 11 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.186: +5 -3 lines
Diff to previous 1.186 (colored)

Initialize duid memory before shifting stuff into elements of it.
No doubt quiets one or more of the fringe compilers out there. Use
variable 'part' rather than recalculating same value in the subsequent
printf().

From dhill. ok otto@

Revision 1.186 / (download) - annotate - [select for diffs], Tue Jun 11 16:42:04 2013 UTC (10 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.185: +3 -3 lines
Diff to previous 1.185 (colored)

final removal of daddr64_t.  daddr_t has been 64 bit for a long enough
test period; i think 3 years ago the last bugs fell out.
ok otto beck others

Revision 1.185 / (download) - annotate - [select for diffs], Fri Apr 6 18:20:35 2012 UTC (12 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.184: +5 -5 lines
Diff to previous 1.184 (colored)

there is no need to cast an unsigned type with (unsigned).
ok jsing

Revision 1.184 / (download) - annotate - [select for diffs], Mon Jan 16 17:32:07 2012 UTC (12 years, 4 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.183: +5 -5 lines
Diff to previous 1.183 (colored)

Nuke unused parameter (f) to makebootarea(). Unused since r1.123
(2008), when '-r' support was removed. Spotted by jsg@ with the
assistance of clang.

Revision 1.183 / (download) - annotate - [select for diffs], Mon Jan 2 03:40:31 2012 UTC (12 years, 5 months ago) by krw
Branch: MAIN
Changes since 1.182: +14 -23 lines
Diff to previous 1.182 (colored)

Tweak usage and man page into agreement.

There's nothing special about -c and -d requiring them to be
separated from other flags or specified as mutually exclusive. So
just show a single block of flags. Some flag combos are silly
but harmless.

Move all -B options inside NUMBOOT #if, eliminating confusing
duplication of -w and -R usage lines. And some string
declaration dancing.

Since we only have NUMBOOT = 1, no need to try and finesse
output for different values of NUMBOOT.

Line shit up.

Revision 1.182 / (download) - annotate - [select for diffs], Mon Jan 2 00:59:33 2012 UTC (12 years, 5 months ago) by krw
Branch: MAIN
Changes since 1.181: +4 -6 lines
Diff to previous 1.181 (colored)

'-s' hasn't done anything for a couple of years. Garbage collect
it and the associated 'bootxx' variable. Update man page accordingly.

Revision 1.181 / (download) - annotate - [select for diffs], Sun Jun 5 11:57:17 2011 UTC (13 years ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.180: +4 -40 lines
Diff to previous 1.180 (colored)

Nuke uses of and references to DIOCWLABEL, and the related 'W' and
'N' command line options.

ok matthew@

Revision 1.180 / (download) - annotate - [select for diffs], Thu Jun 2 17:00:24 2011 UTC (13 years ago) by krw
Branch: MAIN
Changes since 1.179: +12 -1 lines
Diff to previous 1.179 (colored)

Hack to ensure that the in-core labels contain the current bounds
info from the physical disk after 'disklabel -e' writes the label
to disk.  Saves having to reboot or do other contortions to initialize
these fields. Toss in same treatment for total sectors so all fields
forcibly set by kernel have current values.

0'ing of the bounds noted by matthew@.

'lovely' deraadt@

Revision 1.179 / (download) - annotate - [select for diffs], Sun May 22 13:05:47 2011 UTC (13 years ago) by otto
Branch: MAIN
Changes since 1.178: +2 -2 lines
Diff to previous 1.178 (colored)

zap unused var

Revision 1.178 / (download) - annotate - [select for diffs], Tue Apr 19 19:16:18 2011 UTC (13 years, 1 month ago) by halex
Branch: MAIN
Changes since 1.177: +2 -2 lines
Diff to previous 1.177 (colored)

make same changes regarding -f/-F argument (tempfile -> file) as was done
in disklabel(8)

pointed out by jmc@

Revision 1.177 / (download) - annotate - [select for diffs], Sat Apr 16 14:51:00 2011 UTC (13 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.176: +2 -2 lines
Diff to previous 1.176 (colored)

Tweak man page and usage string with jmc@ suggestions.

Revision 1.176 / (download) - annotate - [select for diffs], Sat Apr 16 11:44:41 2011 UTC (13 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.175: +15 -5 lines
Diff to previous 1.175 (colored)

Add '-F'. Same as '-f' but uses DUIDs when writing the mount point
information to the specified file. After every label write, read the
label to get current UID info.

Some internal code cleanup with no intended functional change.

ok deraadt@

Revision 1.175 / (download) - annotate - [select for diffs], Mon Dec 13 01:01:41 2010 UTC (13 years, 5 months ago) by marco
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.174: +3 -3 lines
Diff to previous 1.174 (colored)

stray tabs and spaces

Revision 1.174 / (download) - annotate - [select for diffs], Wed Nov 24 14:15:31 2010 UTC (13 years, 6 months ago) by jsing
Branch: MAIN
Changes since 1.173: +14 -13 lines
Diff to previous 1.173 (colored)

When dealing with disklabel UIDs (DUIDs) be specific and consistent with
naming.

ok krw@

Revision 1.173 / (download) - annotate - [select for diffs], Thu Sep 23 13:59:10 2010 UTC (13 years, 8 months ago) by jsing
Branch: MAIN
Changes since 1.172: +23 -14 lines
Diff to previous 1.172 (colored)

Correctly identify mount points when they are specified in /etc/fstab using
a disklabel UID. Based on a diff from josh@elsasser.org. Resolves PR6471.

ok krw@

Revision 1.172 / (download) - annotate - [select for diffs], Thu Sep 23 13:54:21 2010 UTC (13 years, 8 months ago) by jsing
Branch: MAIN
Changes since 1.171: +3 -14 lines
Diff to previous 1.171 (colored)

Print disklabel UIDs using printf/fprintf instead of using the hand rolled
uid_print() function.

ok krw@

Revision 1.171 / (download) - annotate - [select for diffs], Thu Aug 12 23:32:07 2010 UTC (13 years, 9 months ago) by tedu
Branch: MAIN
Changes since 1.170: +1 -4 lines
Diff to previous 1.170 (colored)

fix a few warnings.  ok jsing

Revision 1.170 / (download) - annotate - [select for diffs], Sun Aug 8 05:24:46 2010 UTC (13 years, 9 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.169: +7 -5 lines
Diff to previous 1.169 (colored)

make disklabel -p slightly nicer by accepting capital letters and printing
a more useful error message for invalid ones.  ok deraadt

Revision 1.169 / (download) - annotate - [select for diffs], Tue Aug 3 00:19:42 2010 UTC (13 years, 10 months ago) by krw
Branch: MAIN
Changes since 1.168: +15 -31 lines
Diff to previous 1.168 (colored)

Group string comparisons and supply more helpful comments. Add
"total sectors" to "boundstart" and "boundend" in the list of fields
that are left alone during a RESTORE operation.

ok deraadt@

Revision 1.168 / (download) - annotate - [select for diffs], Tue Aug 3 00:08:30 2010 UTC (13 years, 10 months ago) by krw
Branch: MAIN
Changes since 1.167: +4 -2 lines
Diff to previous 1.167 (colored)

Start with the default label when RESTORE'ing a saved ascii label.
This ensures that all physical fields are filled in with current
values. Lack of values (boundstart, boundend in particular) noted
by ray@.

ok deraadt@

Revision 1.167 / (download) - annotate - [select for diffs], Tue Jul 27 00:07:26 2010 UTC (13 years, 10 months ago) by krw
Branch: MAIN
Changes since 1.166: +2 -7 lines
Diff to previous 1.166 (colored)

Nuke 'sectoffset'. A stub variable no longer used except to supply
the value 0 to one function call. Use 0 there, eliminate the
variable and the pointless verbose verbiage that always displayed
the same value.

ok deraadt@ matthew@

Revision 1.166 / (download) - annotate - [select for diffs], Wed Jun 30 23:44:06 2010 UTC (13 years, 11 months ago) by halex
Branch: MAIN
Changes since 1.165: +3 -1 lines
Diff to previous 1.165 (colored)

allow uppercase A-F in the uid input

ok krw@ jsing@

Revision 1.165 / (download) - annotate - [select for diffs], Tue May 18 04:41:14 2010 UTC (14 years ago) by dlg
Branch: MAIN
Changes since 1.164: +2 -1 lines
Diff to previous 1.164 (colored)

dont let sys/ioctl.h imply that you get the ioctls in dkio.h. this
gets rid of #include <sys/dkio.h> in sys/ioctl.h and adds #include
<sys/dkio.h> to the places that actually want and use the disk
ioctls.

this became an issue when krw@'s X build failed when he was testing
a change to dkio.h.
tested by krw@
help from and ok miod@

Revision 1.164 / (download) - annotate - [select for diffs], Wed Apr 28 17:12:52 2010 UTC (14 years, 1 month ago) by jsing
Branch: MAIN
Changes since 1.163: +45 -10 lines
Diff to previous 1.163 (colored)

Move the UID printing/parsing code into separate functions and avoid using
sscanf().

ok marco@

Revision 1.163 / (download) - annotate - [select for diffs], Wed Apr 28 16:56:01 2010 UTC (14 years, 1 month ago) by jsing
Branch: MAIN
Changes since 1.162: +2 -1 lines
Diff to previous 1.162 (colored)

When restoring a disklabel do not restore the uid. Let the kernel allocate
a new uid instead.

ok krw@ marco@

Revision 1.162 / (download) - annotate - [select for diffs], Wed Apr 28 12:55:55 2010 UTC (14 years, 1 month ago) by jsing
Branch: MAIN
Changes since 1.161: +19 -3 lines
Diff to previous 1.161 (colored)

Teach disklabel how to print and parse UIDs.

ok deraadt@ krw@

Revision 1.161 / (download) - annotate - [select for diffs], Fri Apr 23 15:25:21 2010 UTC (14 years, 1 month ago) by jsing
Branch: MAIN
Changes since 1.160: +2 -24 lines
Diff to previous 1.160 (colored)

Recycle unused disklabel fields in order to create a disklabel unique
identifier, allowing the disk to be identified without relying on the
device name.

ok deraadt@ krw@ beck@ marco@ todd@

Revision 1.160 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:32 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.159: +1 -11 lines
Diff to previous 1.159 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.159 / (download) - annotate - [select for diffs], Tue Sep 15 21:51:51 2009 UTC (14 years, 8 months ago) by fgsch
Branch: MAIN
Changes since 1.158: +6 -2 lines
Diff to previous 1.158 (colored)

also ignore boundaries when checking if the disklabel was modified when -e
is used. discussed and ok krw@

Revision 1.158 / (download) - annotate - [select for diffs], Thu Jun 4 21:13:03 2009 UTC (15 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.157: +20 -275 lines
Diff to previous 1.157 (colored)

Recycle four ancient fields in the disklabel structure, replacing them with
bounds information, ie. the zone of the disk that OpenBSD can use.  Have each
pre-disklabel parser (MBR, DPME, or per-arch MD disklabel parsers) figure out
this area and pass it up to userland.  Then, delete all the same disk parsing
code from disklabel(8) since the kernel passes it up.  Lots and lots of - signs
in the disklabel(8) code.
Tested on as many platforms as possible, the fallout will be repaired as time
goes on.  To test, use disklabel -d <drive> and validate that the bounds do not
overlap any boot blocks.  This same information is used by disklabel -A...
OK for the concept from krw, miod, and drahn

Revision 1.157 / (download) - annotate - [select for diffs], Tue Jun 2 16:23:45 2009 UTC (15 years ago) by krw
Branch: MAIN
Changes since 1.156: +36 -5 lines
Diff to previous 1.156 (colored)

Add '-h' flag, and '*' as a unit specifier for 'p' Editor command.
Both cause partition sizes to be displayed using a human readable
format with the units automatically chosen by looking at the smallest
partition in the disk label. Remove forceable humanization in 'A'
code and use '-h' in install scripts.

Prodded & ok deraadt@, verbiage tweaks from jmc@

Revision 1.156 / (download) - annotate - [select for diffs], Sun May 31 00:05:03 2009 UTC (15 years ago) by krw
Branch: MAIN
Changes since 1.155: +9 -10 lines
Diff to previous 1.155 (colored)

Never 'humanize' the sector offsets of partitions or 'total sectors'.
If we are humanizing then add a comment to 'total sectors' line
rather than replacing 'total sectors' with a new header.

Suggestion and ok deraadt@

Revision 1.155 / (download) - annotate - [select for diffs], Fri May 29 01:49:56 2009 UTC (15 years ago) by krw
Branch: MAIN
Changes since 1.154: +13 -11 lines
Diff to previous 1.154 (colored)

Clean up logic around exit values. Make getasciilabel() return 0
for success. Fix a couple of bugs where errors in checklabel() got
lost.

Make Editor 'q' and 'x' commands exit with 0 (ok) rather than 1.
i.e. non-zero exit value now reserved for failure, not a decision
to leave the disklabel unchanged. This allows the install script
to use the exit value to catch failures to write a disklabel.

Revision 1.154 / (download) - annotate - [select for diffs], Sun May 17 01:17:12 2009 UTC (15 years ago) by krw
Branch: MAIN
Changes since 1.153: +6 -2 lines
Diff to previous 1.153 (colored)

Write out mountpoint info in writelabel() after label successfully
written, rather than every time editor_alloc() is called. Respect
'-n' for mountpoint info. Reduces surprise appearance of files when
you 'x' out of Editor.

"my sunglasses did not go dark" deraadt@

Revision 1.153 / (download) - annotate - [select for diffs], Tue May 5 12:24:19 2009 UTC (15 years, 1 month ago) by otto
Branch: MAIN
Changes since 1.152: +3 -3 lines
Diff to previous 1.152 (colored)

use logical or when it's intended to be a logical or; ok krw@

Revision 1.152 / (download) - annotate - [select for diffs], Thu Apr 30 00:45:00 2009 UTC (15 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.151: +17 -3 lines
Diff to previous 1.151 (colored)

Prime mountpoint info with any fstab info that is available, with
or without the '-f' option being present. Now you can see in Editor
mode or 'disklabel <dev>' where the partitions that exist will be
mounted in the current configuration.

Tweaks (and libc fixes) from, and ok deraadt@

Revision 1.151 / (download) - annotate - [select for diffs], Sun Apr 12 01:01:24 2009 UTC (15 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.150: +3 -3 lines
Diff to previous 1.150 (colored)

When auto-allocating, check the size of the disk and display
offset/size information in MB if the disk is <10G, and in GB
otherwise. '-p' will override this default.

Revision 1.150 / (download) - annotate - [select for diffs], Sat Apr 11 23:57:56 2009 UTC (15 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.149: +4 -6 lines
Diff to previous 1.149 (colored)

Always display any mountpoint info available. Thus a simple -A will
now show the planned mountpoint layout.

ok deraadt@

Revision 1.149 / (download) - annotate - [select for diffs], Sat Apr 11 16:54:28 2009 UTC (15 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.148: +18 -29 lines
Diff to previous 1.148 (colored)

readlabel() either errored out or returned a pointer to the global
'lab'. So there is no need for the return value. Just use &lab
wherever it was used. No functional change.

Slightly different version read ok to blambert@

Revision 1.148 / (download) - annotate - [select for diffs], Fri Apr 10 20:54:08 2009 UTC (15 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.147: +28 -24 lines
Diff to previous 1.147 (colored)

Re-work '-A' so that it sets a flag that -E and -w use, and which will
just display the auto-allocation plan otherwise. Don't overwrite any
spoofed partitions, insert auto allocated partitions where we can.

This is much more install script and weird architecture friendly. I'm
talking about you, macppc.

Many suggestions and code from otto@, feedback from many, cattle
prod applied by deraadt@.

ok deraadt@
"if it works for >8GB ... put it in" miod@
"to be clear, ok" todd@

Revision 1.147 / (download) - annotate - [select for diffs], Tue Mar 31 23:58:36 2009 UTC (15 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.146: +3 -3 lines
Diff to previous 1.146 (colored)

When warning about a non-zero partition offset, show DL_GETPOFFSET()
and not DL_GETPSIZE().

Revision 1.146 / (download) - annotate - [select for diffs], Tue Mar 31 01:22:41 2009 UTC (15 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.145: +5 -10 lines
Diff to previous 1.145 (colored)

Tweak comment to remove discussion of now non-existant 2 stage
boot loaders and update list of NUMBOOT>0 archs.

ok deraadt@

Revision 1.145 / (download) - annotate - [select for diffs], Mon Mar 30 00:39:26 2009 UTC (15 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.144: +6 -4 lines
Diff to previous 1.144 (colored)

lint; mostly unused variables, carefully checked against all platforms

Revision 1.144 / (download) - annotate - [select for diffs], Sun Mar 29 19:58:27 2009 UTC (15 years, 2 months ago) by weingart
Branch: MAIN
Changes since 1.143: +2 -49 lines
Diff to previous 1.143 (colored)

No more NUMBOOT==2 stuff around, nuke it for sake of clarity.

ok krw@

Revision 1.143 / (download) - annotate - [select for diffs], Sun Mar 29 05:37:13 2009 UTC (15 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.142: +53 -64 lines
Diff to previous 1.142 (colored)

otto points out that the -v printing changes are incompatible with the
expectation that -R will read the output of disklabel.  I suspect we
will find another way to do this; ok otto

Revision 1.142 / (download) - annotate - [select for diffs], Sat Mar 28 16:27:24 2009 UTC (15 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.141: +66 -55 lines
Diff to previous 1.141 (colored)

Move some output under the control of the '-v' flag. In particular only
display the partition info by default as is done in the E(ditor). The
physical info is now only displayed if '-v' is specified.

ok deraadt@

Revision 1.141 / (download) - annotate - [select for diffs], Sat Mar 28 14:03:42 2009 UTC (15 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.140: +11 -6 lines
Diff to previous 1.140 (colored)

make -B not even show up in usage on non-NUMBOOT systems; ok jmc krw

Revision 1.140 / (download) - annotate - [select for diffs], Sun Mar 22 20:51:58 2009 UTC (15 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.139: +3 -3 lines
Diff to previous 1.139 (colored)

tweak previous;

Revision 1.139 / (download) - annotate - [select for diffs], Sun Mar 22 19:01:32 2009 UTC (15 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.138: +9 -5 lines
Diff to previous 1.138 (colored)

Add 'A' command to Editor mode, and -A flag to automatically execute it
on disks without an existing label. The 'A' command allocates all space
on the disk into a reasonable partition scheme for a root disk.

Feedback from several, time to work on it in-tree.

Prodded (repeatedly) by and ok deraadt@

Revision 1.138 / (download) - annotate - [select for diffs], Sun Feb 15 21:07:00 2009 UTC (15 years, 3 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.137: +4 -9 lines
Diff to previous 1.137 (colored)

Don't display, or save via the editor 's' command, the fsize and
bsize fields for UNUSED partitions. '-R' already skipped processing
these fields for such partitions. Eliminates an XXX.

ok deraadt, "makes sense" miod@

Revision 1.137 / (download) - annotate - [select for diffs], Sun Jan 11 19:44:57 2009 UTC (15 years, 4 months ago) by miod
Branch: MAIN
Changes since 1.136: +70 -2 lines
Diff to previous 1.136 (colored)

On *ppc disks shared with MacOS, walk the Apple partition map to find out
the bounds of the OpenBSD area. Should prevent users from shooting themselves
in the feet.

ok krw@

Revision 1.136 / (download) - annotate - [select for diffs], Mon Aug 11 19:03:05 2008 UTC (15 years, 9 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.135: +12 -8 lines
Diff to previous 1.135 (colored)

fix a6 partition lookup where a static variable was incorrectly used in
the recursive findopenbsd() function.  reported by PR 5905.

tested by many
ok deraadt@

Revision 1.135 / (download) - annotate - [select for diffs], Sun Aug 10 13:00:25 2008 UTC (15 years, 9 months ago) by sobrado
Branch: MAIN
Changes since 1.134: +4 -4 lines
Diff to previous 1.134 (colored)

spacing; remove non-existent flag from synopsis.

Revision 1.134 / (download) - annotate - [select for diffs], Mon Aug 4 15:58:13 2008 UTC (15 years, 10 months ago) by reyk
Branch: MAIN
Changes since 1.133: +7 -7 lines
Diff to previous 1.133 (colored)

fix extended partition support by handling chained EBRs correctly
(using a recursion limit).  now OpenBSD can be installed in a
subsequent DOS/Linux-compatible extended partition.

ok krw@ deraadt@

Revision 1.133 / (download) - annotate - [select for diffs], Thu Jul 10 00:21:39 2008 UTC (15 years, 10 months ago) by krw
Branch: MAIN
Changes since 1.132: +3 -3 lines
Diff to previous 1.132 (colored)

Die -r, die! Eliminate stray -r in usage text. Spotted by James Hartley.

Revision 1.132 / (download) - annotate - [select for diffs], Wed Jul 9 23:59:44 2008 UTC (15 years, 10 months ago) by krw
Branch: MAIN
Changes since 1.131: +4 -2 lines
Diff to previous 1.131 (colored)

Read 'vendor' flag from ASCII disklabel since we print it. Fixes
PR #5872.

ok millert@ deraadt@

Revision 1.131 / (download) - annotate - [select for diffs], Tue Jul 1 04:08:53 2008 UTC (15 years, 11 months ago) by ray
Branch: MAIN
Changes since 1.130: +3 -3 lines
Diff to previous 1.130 (colored)

Initialize variable before checking against NULL.

OK deraadt, otto, krw.

Revision 1.130 / (download) - annotate - [select for diffs], Wed Jun 25 18:31:07 2008 UTC (15 years, 11 months ago) by otto
Branch: MAIN
Changes since 1.129: +63 -64 lines
Diff to previous 1.129 (colored)

In interactive mode, always suggest offsets and sizes inside the
OpenBSD area and change the 'p' command to only print the boundaries
and size of the OpenBSD area and the free space within that area.
Introduce a 'l' command to print the header only. With krw@; ok krw@
deraadt@; jmc@ for the man page bits

Revision 1.129 / (download) - annotate - [select for diffs], Wed Jun 25 15:26:43 2008 UTC (15 years, 11 months ago) by reyk
Branch: MAIN
Changes since 1.128: +57 -21 lines
Diff to previous 1.128 (colored)

allow to install and boot the OpenBSD A6 partition and disklabel in an
extended DOS partition.  the concept of extended partitions is very
simple, it is just another mbr at the partition offset (well, the
standard "EBR" is a linked list with a few limitations, but this diff
works with both variants).

this diff has been in the snapshots for a while.

with input from weingart@ and krw@
ok deraadt@

Revision 1.128 / (download) - annotate - [select for diffs], Wed Jun 4 01:27:54 2008 UTC (16 years ago) by deraadt
Branch: MAIN
Changes since 1.127: +5 -3 lines
Diff to previous 1.127 (colored)

setbootflag() must be done before checksum'ing the label.  Bug introduced
in 1.126, found by nick during a test install;  ok krw

Revision 1.127 / (download) - annotate - [select for diffs], Mon Apr 7 23:37:14 2008 UTC (16 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.126: +2 -18 lines
Diff to previous 1.126 (colored)

Since Alpha is NUMBOOT=0, no need for #ifdef __alpha__ code inside a
#if NUMBOOT > 0 section.

Revision 1.126 / (download) - annotate - [select for diffs], Mon Apr 7 23:27:21 2008 UTC (16 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.125: +100 -5 lines
Diff to previous 1.125 (colored)

Restore boot block (-B) support that was incorrectly deleted during
the -r removal. Found by drahn@ when attempting a landisk install.

ok deraadt@ drahn@

Revision 1.125 / (download) - annotate - [select for diffs], Sun Apr 6 21:36:24 2008 UTC (16 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.124: +2 -12 lines
Diff to previous 1.124 (colored)

nwflag is never set now that '-r' is no more, so remove it and the warning
that was contingent on it being set.

Revision 1.124 / (download) - annotate - [select for diffs], Sun Apr 6 13:10:43 2008 UTC (16 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.123: +3 -4 lines
Diff to previous 1.123 (colored)

Fix logic botch I introduced with r1.123 which effectively disabled
the '-c' and '-d` commands.

With the removal of 'rflag' (logically making it always false), (a ||
(rflag && cflag + dflag) || b) should be (a || b), not (a || (cflag +
dflag) || b).

This fixes 'disklabel -w -d <disk>' as used in the install scripts.

Reported by Peter Kun on misc@. Thanks!

Revision 1.123 / (download) - annotate - [select for diffs], Sun Mar 23 19:42:17 2008 UTC (16 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.122: +25 -241 lines
Diff to previous 1.122 (colored)

Nuke disklabel -r. All labels come from the kernel via ioctl.

"make sense" miod@ ok deraadt@

Revision 1.122 / (download) - annotate - [select for diffs], Thu Jan 24 12:23:35 2008 UTC (16 years, 4 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.121: +6 -6 lines
Diff to previous 1.121 (colored)

"read(..., ..., sizeof Y) < sizeof Y" is a dangerous idiom because it
does an unsigned comparison and read() can return -1. Use '!=' instead
of '<' since read() can't return more than 'sizeof Y'. Not perfect
(that would require a separate test for -1) but a very common usage.
Do the same for a write(), and a couple of read() calls which are
probably ok but why be inconsistant?

This, as the last couple of commits, found by ian@ as a result of
poking around in fsck_msdos() when his new iPod had problems vs
OpenBSD.

Concept reviewed by miod@, beck@, otto@ and ian@.

Revision 1.121 / (download) - annotate - [select for diffs], Mon Jan 21 20:07:11 2008 UTC (16 years, 4 months ago) by sobrado
Branch: MAIN
Changes since 1.120: +16 -17 lines
Diff to previous 1.120 (colored)

changes to disklabel's usage:

  - align usages and their descriptions (text enclosed in brackets);
  - blank[], used for padding prior to r1.86, can improve readability
    of usage on 80-column displays if NUMBOOT == 2

ok jsing@, krw@

Revision 1.120 / (download) - annotate - [select for diffs], Wed Oct 17 20:02:30 2007 UTC (16 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.119: +10 -13 lines
Diff to previous 1.119 (colored)

- Be more careful about pre-existing SIGCHLD handlers (or SIG_IGN) by
  temporarily restoring default behaviour.  This is not 100% ideal.
  But this fixes editor handling in mail... bah, it is really unfortunate
  that got broken
- refactor the restoration code as well, to make it simpler
ok ray

Revision 1.119 / (download) - annotate - [select for diffs], Mon Oct 15 02:16:35 2007 UTC (16 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.118: +3 -3 lines
Diff to previous 1.118 (colored)

specifying int instead of just unsigned is better style

Revision 1.118 / (download) - annotate - [select for diffs], Mon Jun 25 22:53:45 2007 UTC (16 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.117: +12 -11 lines
Diff to previous 1.117 (colored)

some trivial delinting

Revision 1.117 / (download) - annotate - [select for diffs], Sat Jun 23 19:14:20 2007 UTC (16 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.116: +5 -20 lines
Diff to previous 1.116 (colored)

expand size/offset to 16 characters, and drop the Cyl comments which
noone cares to see anymore (for those architectures where this is
important, disklabel(8) continues to enfoce the cyl-locked policy)
ok otto

Revision 1.116 / (download) - annotate - [select for diffs], Mon Jun 18 22:07:43 2007 UTC (16 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.115: +4 -4 lines
Diff to previous 1.115 (colored)

If disklabel(8) is run against unreadable media (e.g. a blank cd)
don't say "can't read master boot record". Just display an empty
disklabel. Really yucky code that needs a lot of tough love, but
marginally less confusing until then.

ok deraadt@

Revision 1.115 / (download) - annotate - [select for diffs], Mon Jun 18 21:06:51 2007 UTC (16 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.114: +6 -3 lines
Diff to previous 1.114 (colored)

-r will die. Until then, make sure any labels it dredges up are
converted to v1 format before being used.

ok deraadt@ otto@

Revision 1.114 / (download) - annotate - [select for diffs], Sun Jun 17 00:32:21 2007 UTC (16 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.113: +16 -11 lines
Diff to previous 1.113 (colored)

On Sun machines, disklabels coming from the kernel will now have a d_flags
bit D_VENDOR if they face the Sun cylinder / start-at-zero semantics.  Other
disklabels found on these architectures do not have these issues, and do
not need to be constrained.  checked by otto

Revision 1.113 / (download) - annotate - [select for diffs], Fri Jun 8 19:08:35 2007 UTC (16 years, 11 months ago) by otto
Branch: MAIN
Changes since 1.112: +7 -7 lines
Diff to previous 1.112 (colored)

second pass, some fields slipped through the first time around

Revision 1.112 / (download) - annotate - [select for diffs], Fri Jun 8 18:42:17 2007 UTC (16 years, 11 months ago) by otto
Branch: MAIN
Changes since 1.111: +62 -55 lines
Diff to previous 1.111 (colored)

Make disklabel(8) aware of the new fields, allowing for larger than
2T disks, partitions and offsets. ok deraadt@

Revision 1.111 / (download) - annotate - [select for diffs], Thu Jun 7 19:51:08 2007 UTC (16 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.110: +4 -4 lines
Diff to previous 1.110 (colored)

do not complain about c not being a multiple of lp->d_secpercyl; ok millert

Revision 1.110 / (download) - annotate - [select for diffs], Tue May 29 06:28:15 2007 UTC (17 years ago) by otto
Branch: MAIN
Changes since 1.109: +46 -13 lines
Diff to previous 1.109 (colored)

Updated disklabel format to support larger disks and partitions. We
free room in struct partition by packing fragment size and
fragments/block more tighlty and use the resulting space to make
offset and size 48 bits.  For the disk part we use spare fields in
struct disklabel.  Kernel converts in-mem copy of the on-disk
label if needed, disklabel(8) writes new version.
We are careful to only change fields not used by bootloaders.
Conception of basic scheme by deraadt.
ok deraadt@ krw@

Revision 1.109 / (download) - annotate - [select for diffs], Thu May 24 13:01:23 2007 UTC (17 years ago) by krw
Branch: MAIN
Changes since 1.108: +8 -4 lines
Diff to previous 1.108 (colored)

Make 'disklabel -w -d <disk>' work. i.e. write the default disklabel
onto disk.  More elegant than "dd if=/dev/zero of= ..." to clear out
an old disklabel.  Think of it as treating the spoofed disklabel
created by readdisklabel() like an automatically generated disktab
entry. Makes some install scripts (macppc to start) easier.

Revision 1.108 / (download) - annotate - [select for diffs], Sun May 13 14:19:18 2007 UTC (17 years ago) by ray
Branch: MAIN
Changes since 1.107: +26 -28 lines
Diff to previous 1.107 (colored)

Sync editit() with sendbug.

OK krw@.

Revision 1.107 / (download) - annotate - [select for diffs], Thu Apr 26 22:42:11 2007 UTC (17 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.106: +4 -6 lines
Diff to previous 1.106 (colored)

Eliminate CPU_BIOS from userland and wd(4) by always using the BIOS
geometry in the disklabel when there is a BIOS geometry to provide.
This removes the option to set a disklabel to 'BIOS' geometry via the
'g b' command in the editor.

Makes reported geometry more consistant and moves MD code to MD land
where it should be.

Doc help from jmc@, Feedback from millert@, marco@, weingart@,
kettenis@.

ok deraadt@

Revision 1.106 / (download) - annotate - [select for diffs], Thu Apr 26 02:43:29 2007 UTC (17 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.105: +45 -42 lines
Diff to previous 1.105 (colored)

Copy sendbug's editit() to disklabel.

OK krw@.

Revision 1.105 / (download) - annotate - [select for diffs], Sat Feb 24 03:33:27 2007 UTC (17 years, 3 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.104: +1 -1 lines
Diff to previous 1.104 (colored)

Correct comment calling FILE *f a file descriptor.

OK krw@.

Revision 1.104 / (download) - annotate - [select for diffs], Tue Feb 20 01:50:01 2007 UTC (17 years, 3 months ago) by ray
Branch: MAIN
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (colored)

Change hard coded numbers to sizeof(buf).  Also change some
sizeof(buf) - 1 to sizeof(buf), since fgets takes the whole buffer size.

Based on diff from Charles Longeau <chl at tuxfamily dot org> long ago.

OK millert@.

Revision 1.103 / (download) - annotate - [select for diffs], Sat Oct 14 19:16:39 2006 UTC (17 years, 7 months ago) by krw
Branch: MAIN
Changes since 1.102: +4 -8 lines
Diff to previous 1.102 (colored)

Friends don't let friends look for disklabels in Free/NetBSD MBR
partitions since the kernel doesn't put them or look for them there
anymore.

Revision 1.102 / (download) - annotate - [select for diffs], Sat Oct 14 18:26:55 2006 UTC (17 years, 7 months ago) by krw
Branch: MAIN
Changes since 1.101: +3 -24 lines
Diff to previous 1.101 (colored)

Friends don't let friends look for disklabels in Free/NetBSD MBR
partitions since the kernel doesn't put them or look for them there
anymore.

Revision 1.101 / (download) - annotate - [select for diffs], Wed Sep 27 00:40:43 2006 UTC (17 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.100: +3 -3 lines
Diff to previous 1.100 (colored)

Oops. Missed a line. Fix so disklabel(8) compiles again.

Revision 1.100 / (download) - annotate - [select for diffs], Tue Sep 26 23:33:04 2006 UTC (17 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.99: +2 -6 lines
Diff to previous 1.99 (colored)

Zap D_REMOVABLE flag from disklabel. If you didn't already know that
floppies and cd's were removable, displaying that fact in disklabel
output was unlikely to help. And the display in disklabel was the only
use of D_REMOVABLE in the tree.

ok marco@

Revision 1.99 / (download) - annotate - [select for diffs], Sun Sep 24 20:29:52 2006 UTC (17 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.98: +2 -6 lines
Diff to previous 1.98 (colored)

Eliminate D_CHAIN, D_ECC and D_RAMDISK flags from disklabel. They were
not being used in the tree for anything obviously useful. Get it done
early so we can find if there are non-obvious uses out there.

ok deraadt@ beck@

Revision 1.98 / (download) - annotate - [select for diffs], Sat Jul 1 16:50:33 2006 UTC (17 years, 11 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.97: +12 -12 lines
Diff to previous 1.97 (colored)

Eliminate redundant get_le() in favour of letoh32(). Add letoh32()
calls in alpha, hppa, hppa64 and mips63 when accessing the two DOS MBR
u_int32_t fields dp_size and dp_start.

No functional change.

Revision 1.97 / (download) - annotate - [select for diffs], Sun Nov 13 20:27:10 2005 UTC (18 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.96: +3 -2 lines
Diff to previous 1.96 (colored)

missing fclose(); from dhill@mindcry.org

Revision 1.96 / (download) - annotate - [select for diffs], Sat Nov 12 13:27:59 2005 UTC (18 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.95: +4 -7 lines
Diff to previous 1.95 (colored)

use snprintf; ok cloder dhill@mindcry.org

Revision 1.95 / (download) - annotate - [select for diffs], Sat Apr 30 07:09:37 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.94: +14 -17 lines
Diff to previous 1.94 (colored)

Better header at the top:
 # Inside MBR partition 3: type A6 start 2570463 size 75569697

Revision 1.94 / (download) - annotate - [select for diffs], Fri Jan 7 21:58:14 2005 UTC (19 years, 4 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.93: +83 -61 lines
Diff to previous 1.93 (colored)

Print disk size and free space in requested unit. Some refactoring to
avoid code duplication as well. ok marco@ deraadt@

Revision 1.93 / (download) - annotate - [select for diffs], Mon Oct 4 15:09:41 2004 UTC (19 years, 8 months ago) by otto
Branch: MAIN
Changes since 1.92: +8 -8 lines
Diff to previous 1.92 (colored)

Allow one more char for fstype, to avoid truncation of ISO9660 fstype.
spotted by and ok krw@

Revision 1.92 / (download) - annotate - [select for diffs], Tue Sep 28 17:57:46 2004 UTC (19 years, 8 months ago) by otto
Branch: MAIN
Changes since 1.91: +22 -43 lines
Diff to previous 1.91 (colored)

Tidy disklabel output for todays big disks. Based on a diff from f
at obiit dot org in PR 3847. ok tedu@ deraadt@ millert@

Revision 1.91 / (download) - annotate - [select for diffs], Sat Sep 18 23:23:17 2004 UTC (19 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.90: +11 -5 lines
Diff to previous 1.90 (colored)

remove unused var, and then fix the code to watch for waitpid() errors
ok otto millert

Revision 1.90 / (download) - annotate - [select for diffs], Sun Aug 8 19:04:25 2004 UTC (19 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored)

spacing

Revision 1.89 / (download) - annotate - [select for diffs], Tue Aug 3 09:30:11 2004 UTC (19 years, 10 months ago) by otto
Branch: MAIN
Changes since 1.88: +98 -69 lines
Diff to previous 1.88 (colored)

Handle geometry parameters as unsigned quantities, getting rid of
negative number of sectors on large disks and other similar problems.
Also make reading of ASCII disk labels more robust by using strtonum(3)
instead of atoi(3).

ok millert@ deraadt@

Revision 1.88 / (download) - annotate - [select for diffs], Thu May 20 23:23:46 2004 UTC (20 years ago) by marco
Branch: MAIN
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored)

Typo from Jared Yanovich phirerunner@comcast.net

Revision 1.87 / (download) - annotate - [select for diffs], Wed Apr 7 14:09:35 2004 UTC (20 years, 1 month ago) by aaron
Branch: MAIN
Changes since 1.86: +3 -3 lines
Diff to previous 1.86 (colored)

Remove those option letters from the getopt string which do not have a case
handler below. millert@ ok

Revision 1.86 / (download) - annotate - [select for diffs], Sat Dec 20 09:29:27 2003 UTC (20 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.85: +22 -16 lines
Diff to previous 1.85 (colored)

make disklabel docs more readable: more logical SYNOPSIS; sort options;
make internal editor help and usage() match the docs; make sure all the
forms described in SYNOPSIS are explained; various other tweaks.

input from millert@; ok deraadt;

Revision 1.85 / (download) - annotate - [select for diffs], Tue Jul 29 18:38:35 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.84: +4 -4 lines
Diff to previous 1.84 (colored)

spaces

Revision 1.84 / (download) - annotate - [select for diffs], Wed Jul 16 18:03:44 2003 UTC (20 years, 10 months ago) by tedu
Branch: MAIN
Changes since 1.83: +3 -3 lines
Diff to previous 1.83 (colored)

new default frag/block sizes.
reminded by millert@

Revision 1.83 / (download) - annotate - [select for diffs], Wed Jul 2 21:22:10 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.82: +3 -2 lines
Diff to previous 1.82 (colored)

missing protos

Revision 1.82 / (download) - annotate - [select for diffs], Wed Jun 25 21:11:48 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.81: +2 -3 lines
Diff to previous 1.81 (colored)

remove junk protos

Revision 1.81 / (download) - annotate - [select for diffs], Wed Jun 11 06:22:12 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.80: +23 -57 lines
Diff to previous 1.80 (colored)

ansification

Revision 1.80 / (download) - annotate - [select for diffs], Mon Jun 2 20:06:14 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.79: +3 -7 lines
Diff to previous 1.79 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.79 / (download) - annotate - [select for diffs], Sun Apr 6 00:45:12 2003 UTC (21 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.78: +11 -10 lines
Diff to previous 1.78 (colored)

string handling; ok millert

Revision 1.78 / (download) - annotate - [select for diffs], Thu Feb 13 00:10:39 2003 UTC (21 years, 3 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.77: +17 -9 lines
Diff to previous 1.77 (colored)

add support for printing disklabels in units other than sectors from
the cmdline
based on a patch by mho at mho.nu
ok and input by millert@

Revision 1.77 / (download) - annotate - [select for diffs], Wed Feb 5 19:13:58 2003 UTC (21 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored)

WORKAROUND: use a volatile to get around a compiler or fp emulation bug
(jason says he will look into this later)

Revision 1.76 / (download) - annotate - [select for diffs], Tue Dec 31 16:22:25 2002 UTC (21 years, 5 months ago) by miod
Branch: MAIN
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored)

Prepare for the removal of amiga and sun3 platforms from the tree.
There has not been enough activity and interest towards these platform
to keep them lying in the tree.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Jun 9 08:13:05 2002 UTC (21 years, 11 months ago) by todd
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.74: +5 -5 lines
Diff to previous 1.74 (colored)

rm trailing whitespace

Revision 1.74 / (download) - annotate - [select for diffs], Wed May 22 08:21:01 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.73: +16 -15 lines
Diff to previous 1.73 (colored)

strcpy, sprintf death; mpech ok

Revision 1.73 / (download) - annotate - [select for diffs], Sun Mar 24 22:51:54 2002 UTC (22 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.72: +4 -7 lines
Diff to previous 1.72 (colored)

Work around a compiler bug on sparc64; deraadt@ OK

Revision 1.72 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:33 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.71: +23 -23 lines
Diff to previous 1.71 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.71 / (download) - annotate - [select for diffs], Mon Sep 3 16:14:27 2001 UTC (22 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.70: +17 -16 lines
Diff to previous 1.70 (colored)

Include su# in generated disktab.  Because modern disks have a variable
number of sectors/track we need to specify the total number of sectors
per unit explicitly.  Closes PR #2042.

Revision 1.70 / (download) - annotate - [select for diffs], Sat Jul 7 18:26:10 2001 UTC (22 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.69: +17 -14 lines
Diff to previous 1.69 (colored)

major -Wall cleanup, almost complete

Revision 1.68.4.1 / (download) - annotate - [select for diffs], Fri Oct 6 20:40:26 2000 UTC (23 years, 8 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored) next main 1.69 (colored)

Pull in patch from current (more to come...):
Fix (millert):
warnx?/errx? paranoia (use "%s" not a bare string unless it is a
constant).  These are not security holes but it is worth fixing
them anyway both for robustness and so folks looking for examples
in the tree are not misled into doing something potentially dangerous.
Furthermore, it is a bad idea to assume that pathnames will not
include '%' in them and that error routines don't return strings
with '%' in them (especially in light of the possibility of locales).

Revision 1.69 / (download) - annotate - [select for diffs], Fri Jun 30 16:00:08 2000 UTC (23 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)

warnx?/errx? paranoia (use "%s" not a bare string unless it is a
constant).  These are not security holes but it is worth fixing
them anyway both for robustness and so folks looking for examples
in the tree are not misled into doing something potentially dangerous.
Furthermore, it is a bad idea to assume that pathnames will not
include '%' in them and that error routines don't return strings
with '%' in them (especially in light of the possibility of locales).

Revision 1.68 / (download) - annotate - [select for diffs], Tue Aug 17 09:13:14 1999 UTC (24 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_6_BASE, OPENBSD_2_6
Branch point for: OPENBSD_2_7
Changes since 1.67: +3 -4 lines
Diff to previous 1.67 (colored)

More <sys/file.h> vs. <fcntl.h> and open() flags fixes.

Revision 1.67 / (download) - annotate - [select for diffs], Sat Aug 14 15:11:11 1999 UTC (24 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.66: +24 -15 lines
Diff to previous 1.66 (colored)

Add -c flag that uses DIOCRLDINFO to clear (and update) the in-core label.

Revision 1.66 / (download) - annotate - [select for diffs], Fri Aug 13 02:06:58 1999 UTC (24 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.65: +4 -4 lines
Diff to previous 1.65 (colored)

microseconds; vax@linkdead.paranoia.com

Revision 1.65 / (download) - annotate - [select for diffs], Wed Jul 14 23:16:26 1999 UTC (24 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.64: +9 -2 lines
Diff to previous 1.64 (colored)

put in a check for architectures that demand that partition A start at sector 0

Revision 1.64 / (download) - annotate - [select for diffs], Wed Jun 16 10:12:38 1999 UTC (24 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.63: +4 -4 lines
Diff to previous 1.63 (colored)

missed i386 -> __i386__

Revision 1.63 / (download) - annotate - [select for diffs], Wed Apr 7 22:57:25 1999 UTC (25 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.62: +6 -10 lines
Diff to previous 1.62 (colored)

Kill -F option, it is not needed and just plain wrong anyway

Revision 1.62 / (download) - annotate - [select for diffs], Tue Mar 23 05:18:49 1999 UTC (25 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.61: +23 -10 lines
Diff to previous 1.61 (colored)

Rename -F option to -f and add a new -F (full disk) option to use in -E mode.
When checking for an MBR, only say we have an mbr if there is a signature *or*
there is an fdisk partition with an {Open,Free,Net}BSD ID.
When setting the bounds in -E mode add hueristics to deal with disks
bigger than the BIOS geometry would indicate.

Revision 1.61 / (download) - annotate - [select for diffs], Tue Mar 16 04:47:16 1999 UTC (25 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.60: +23 -15 lines
Diff to previous 1.60 (colored)

Add -F flag to cause editor to prompt for mount points and save the resulting info in fstab format.  To be used by the install script.

Revision 1.60 / (download) - annotate - [select for diffs], Sun Mar 14 19:31:19 1999 UTC (25 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored)

Fix check for partition ending on a cylinder boundary.  Previously it
checked for size being a mulitple of sectors/cylinder when you really
want size+offset to be a mulitple of sectors/cylinder.

Revision 1.59 / (download) - annotate - [select for diffs], Sun Mar 7 03:05:31 1999 UTC (25 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.58: +3 -2 lines
Diff to previous 1.58 (colored)

dkcksum() requires d_checksum cleared

Revision 1.58 / (download) - annotate - [select for diffs], Mon Mar 1 01:50:45 1999 UTC (25 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.57: +41 -17 lines
Diff to previous 1.57 (colored)

Change undocumented '-p' flag to '-d' and document.  Also document '-v'.
Make 'disklabel -ed' not overwrite your label if you make no changes
in the editor (added a cmplabel function to compare two labels).

Revision 1.57 / (download) - annotate - [select for diffs], Tue Jan 12 04:48:25 1999 UTC (25 years, 4 months ago) by aaron
Branch: MAIN
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored)

use pid_t

Revision 1.56 / (download) - annotate - [select for diffs], Sat Oct 3 22:01:47 1998 UTC (25 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.55: +11 -3 lines
Diff to previous 1.55 (colored)

Add DIOCGPDINFO ioctl and use it in disklabel's new -p mode

Revision 1.55 / (download) - annotate - [select for diffs], Fri Sep 11 04:02:27 1998 UTC (25 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

Pass specname in to editor(), missing part of a commit a while ago.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Sep 10 06:56:47 1998 UTC (25 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.53: +4 -4 lines
Diff to previous 1.53 (colored)

pass correct args to editor()

Revision 1.53 / (download) - annotate - [select for diffs], Sun Jun 7 05:00:23 1998 UTC (26 years ago) by deraadt
Branch: MAIN
Changes since 1.52: +12 -10 lines
Diff to previous 1.52 (colored)

off_t cleanup

Revision 1.52 / (download) - annotate - [select for diffs], Thu May 7 16:39:35 1998 UTC (26 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.51: +5 -4 lines
Diff to previous 1.51 (colored)

In -v mode print label offset in addition to the block number.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Apr 25 07:17:12 1998 UTC (26 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

DOSBBSECTOR is in sectors

Revision 1.50 / (download) - annotate - [select for diffs], Thu Mar 12 19:35:55 1998 UTC (26 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.49: +5 -3 lines
Diff to previous 1.49 (colored)

Treat IDE as ESDI in -e mode just like we do in -E mode.

Revision 1.49 / (download) - annotate - [select for diffs], Fri Feb 20 01:55:29 1998 UTC (26 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

oops

Revision 1.48 / (download) - annotate - [select for diffs], Thu Feb 19 20:43:36 1998 UTC (26 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.47: +22 -8 lines
Diff to previous 1.47 (colored)

deal with partition type renamed

Revision 1.47 / (download) - annotate - [select for diffs], Tue Nov 25 00:36:22 1997 UTC (26 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.46: +103 -5 lines
Diff to previous 1.46 (colored)

Add -t flag to output in disktab format.  From Christos Zoulas
<christos@deshaw.com> plus correct code for outputing d_drivedata.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Oct 24 00:18:55 1997 UTC (26 years, 7 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

%f not %lf [%f is already a double]

Revision 1.45 / (download) - annotate - [select for diffs], Mon Oct 20 07:09:41 1997 UTC (26 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.44: +45 -17 lines
Diff to previous 1.44 (colored)

format the "print" units better, in all cases

Revision 1.44 / (download) - annotate - [select for diffs], Fri Oct 17 07:30:03 1997 UTC (26 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.43: +4 -4 lines
Diff to previous 1.43 (colored)

oops; spotted by millert

Revision 1.43 / (download) - annotate - [select for diffs], Fri Oct 17 04:33:05 1997 UTC (26 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.42: +4 -6 lines
Diff to previous 1.42 (colored)

shrink an output line

Revision 1.42 / (download) - annotate - [select for diffs], Mon Oct 13 15:02:15 1997 UTC (26 years, 7 months ago) by pefo
Branch: MAIN
Changes since 1.41: +12 -12 lines
Diff to previous 1.41 (colored)

Well, ppc has to work....

Revision 1.41 / (download) - annotate - [select for diffs], Thu Oct 2 01:16:02 1997 UTC (26 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.40: +2 -3 lines
Diff to previous 1.40 (colored)

Deal with ^D sanely and kill unused get_yn().

Revision 1.40 / (download) - annotate - [select for diffs], Thu Oct 2 00:49:11 1997 UTC (26 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.39: +5 -43 lines
Diff to previous 1.39 (colored)

Kill newlabel() stuff.  The kernel should never fail to write a
label just because none exists on the disk.  i386 has been fixed
in the respect and others may need fixing as well.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Sep 30 17:54:15 1997 UTC (26 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.38: +101 -13 lines
Diff to previous 1.38 (colored)

Implement "disklabel -E" -- a simple interactive label editor for
installs and new labels.  Documentation to follow :-) Also, give
the user the option of writing the fictitious label if no on-disk
label exists with the -e, -E, and -w options.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Sep 26 04:10:28 1997 UTC (26 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.37: +64 -51 lines
Diff to previous 1.37 (colored)

Some -Wall.  Add display_partition() for use with upcoming editor mode.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Sep 14 10:37:40 1997 UTC (26 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

some -Wall

Revision 1.36 / (download) - annotate - [select for diffs], Wed Sep 3 22:39:12 1997 UTC (26 years, 9 months ago) by mickey
Branch: MAIN
Changes since 1.35: +3 -4 lines
Diff to previous 1.35 (colored)

add xr installboot for i386
change msg to accomodate multiple man pages in SEEALSO

Revision 1.35 / (download) - annotate - [select for diffs], Fri Aug 29 18:05:40 1997 UTC (26 years, 9 months ago) by mickey
Branch: MAIN
Changes since 1.34: +8 -8 lines
Diff to previous 1.34 (colored)

move _PATH_BOOTDIR w/ trailing slash into paths.h for other progs...
disklabel changed to use it that way

Revision 1.34 / (download) - annotate - [select for diffs], Mon Jul 28 08:26:58 1997 UTC (26 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.33: +4 -2 lines
Diff to previous 1.33 (colored)

boot1[] only needed if NUMBOOT > 1; frueauf@ira.uka.de

Revision 1.33 / (download) - annotate - [select for diffs], Sat Jul 19 20:35:37 1997 UTC (26 years, 10 months ago) by niklas
Branch: MAIN
Changes since 1.32: +15 -15 lines
Diff to previous 1.32 (colored)

some KNF I had lying around

Revision 1.32 / (download) - annotate - [select for diffs], Wed Jun 25 18:06:42 1997 UTC (26 years, 11 months ago) by kstailey
Branch: MAIN
Changes since 1.31: +6 -6 lines
Diff to previous 1.31 (colored)

(foo *)0 -> NULL

Revision 1.31 / (download) - annotate - [select for diffs], Wed May 21 16:02:33 1997 UTC (27 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.30: +12 -2 lines
Diff to previous 1.30 (colored)

better disklabel -e messaging

Revision 1.30 / (download) - annotate - [select for diffs], Sun Apr 20 08:59:40 1997 UTC (27 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

sparc/sun3 labels want cyl-alignment; grr

Revision 1.29 / (download) - annotate - [select for diffs], Thu Apr 10 22:26:13 1997 UTC (27 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.28: +6 -2 lines
Diff to previous 1.28 (colored)

Error if bsize < fsize.  Problem noted by Dieter Dworkin Muller
<dworkin@village.org>

Revision 1.28 / (download) - annotate - [select for diffs], Mon Feb 17 16:30:25 1997 UTC (27 years, 3 months ago) by imp
Branch: MAIN
Changes since 1.27: +2 -3 lines
Diff to previous 1.27 (colored)

Trivial change.  Restored from backup

Revision 1.27 / (download) - annotate - [select for diffs], Sun Feb 16 07:42:52 1997 UTC (27 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.26: +12 -14 lines
Diff to previous 1.26 (colored)

when spawning editor child, use signal() instead of sigprocmask(SIG_BLOCK...
this appears to prevent the intermediate shell from playing with the signals
such that it gets a tty signal inside an editor such as emacs.
this was very annoying

Revision 1.26 / (download) - annotate - [select for diffs], Fri Dec 13 16:58:25 1996 UTC (27 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.25: +11 -7 lines
Diff to previous 1.25 (colored)

If max number of partitions in the label is < highest partition defined,
increase d_npartitions as long as we don't go above MAXPARTITIONS.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Dec 7 10:09:24 1996 UTC (27 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.24: +8 -2 lines
Diff to previous 1.24 (colored)

correct a sigsegv during parsing of garbled input; netbsd pr#2659, dgilbert@jaywon.pci.on.ca

Revision 1.24 / (download) - annotate - [select for diffs], Tue Nov 12 07:04:49 1996 UTC (27 years, 6 months ago) by downsj
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

Match fs type case-insensetively.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Oct 4 07:24:58 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

-n fix, one more DOSPTYP_OPENBSD change

Revision 1.22 / (download) - annotate - [select for diffs], Tue Oct 1 09:23:38 1996 UTC (27 years, 8 months ago) by maja
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

Make it compilable even if NUMBOOT=1 (vax). -moj

Revision 1.21 / (download) - annotate - [select for diffs], Mon Sep 30 11:28:35 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.20: +19 -13 lines
Diff to previous 1.20 (colored)

# using message; more donothing stuff

Revision 1.20 / (download) - annotate - [select for diffs], Tue Sep 24 11:36:55 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.19: +26 -7 lines
Diff to previous 1.19 (colored)

use DOSPTYP_386BSD only if no DOSPTYP_OPENBSD part on disk

Revision 1.19 / (download) - annotate - [select for diffs], Tue Sep 24 04:35:18 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +135 -142 lines
Diff to previous 1.18 (colored)

flags: add -n: do nothing, -v: verbose; delete -d flag.  on DOSLABEL systems,
ensure the OpenBSD disklabel/bootblocks are written inside 165 partition
(RAW_PART must start at block 0 of unit) -- this makes the kernel algorithm
and userland algorithms the same. unify & pretty the usage message

Revision 1.18 / (download) - annotate - [select for diffs], Sun Sep 22 10:17:10 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored)

warnx does not take a \\n

Revision 1.17 / (download) - annotate - [select for diffs], Sat Sep 21 13:19:03 1996 UTC (27 years, 8 months ago) by pefo
Branch: MAIN
Changes since 1.16: +34 -10 lines
Diff to previous 1.16 (colored)

When reading label -r first try the correct label location.
Don't allow updates when original disklabel is found by scanning.
NetBSD -> OpenBSD in printouts.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Sep 16 02:21:59 1996 UTC (27 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

_PATH_TMP -> _PATH_TMPFILE

Revision 1.15 / (download) - annotate - [select for diffs], Sat Aug 10 12:14:19 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +18 -15 lines
Diff to previous 1.14 (colored)

avoid division by zero (avoid printing the incalculateable); netbsd pr#2683; nathanw@MIT.EDU

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jun 25 01:21:57 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +13 -14 lines
Diff to previous 1.13 (colored)

mkstemp & fdopen; fix FILE * leak

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jun 19 13:24:27 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +6 -7 lines
Diff to previous 1.12 (colored)

pstat == stat

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jun 19 13:22:57 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +15 -9 lines
Diff to previous 1.11 (colored)

do not use system() to start $EDITOR, but fake system() ourselves

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jun 17 07:55:59 1996 UTC (27 years, 11 months ago) by downsj
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

opendev.h -> util.h

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jun 17 06:57:06 1996 UTC (27 years, 11 months ago) by downsj
Branch: MAIN
Changes since 1.9: +5 -20 lines
Diff to previous 1.9 (colored)

Switch over to generic opendev(3).

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jun 12 08:02:44 1996 UTC (27 years, 11 months ago) by downsj
Branch: MAIN
Changes since 1.8: +2 -6 lines
Diff to previous 1.8 (colored)

kill RAWPARTITION, use RAW_PART

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jun 8 03:54:56 1996 UTC (28 years ago) by dm
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

missing brace

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jun 6 12:10:01 1996 UTC (28 years ago) by deraadt
Branch: MAIN
Changes since 1.6: +15 -7 lines
Diff to previous 1.6 (colored)

system() $EDITOR safely

Revision 1.6 / (download) - annotate - [select for diffs], Sat May 18 19:06:38 1996 UTC (28 years ago) by pefo
Branch: MAIN
Changes since 1.5: +3 -0 lines
Diff to previous 1.5 (colored)

Minor glitch when no boot is used fixed.

Revision 1.5 / (download) - annotate - [select for diffs], Fri May 17 15:32:58 1996 UTC (28 years ago) by mickey
Branch: MAIN
Changes since 1.4: +21 -0 lines
Diff to previous 1.4 (colored)

from Hiroyuki Ito:
there is a race condition exists when disklabel
trashes boot blocks (writing label w/o -B).
fix this.

Revision 1.4 / (download) - annotate - [select for diffs], Thu May 16 11:08:54 1996 UTC (28 years ago) by pefo
Branch: MAIN
Changes since 1.3: +16 -9 lines
Diff to previous 1.3 (colored)

Introduced DOSLABEL to control Dos label handling instead of associate with i386.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Mar 21 00:15:31 1996 UTC (28 years, 2 months ago) by niklas
Branch: MAIN
Changes since 1.2: +26 -13 lines
Diff to previous 1.2 (colored)

From NetBSD: Merge of 960317

Revision 1.2 / (download) - annotate - [select for diffs], Fri Oct 27 15:25:41 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +6 -0 lines
Diff to previous 1.1 (colored)

attempt to open name as given incase it is a relative pathname

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:43:27 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:27 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.