Up to [local] / src / sbin / pdisk
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.31 / (download) - annotate - [select for diffs], Mon Feb 1 18:55:00 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6,
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,
OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9,
HEAD
Changes since 1.30: +7 -7 lines
Diff to previous 1.30 (colored)
Use printf("%s",prompt) rather than printf(prompt) just for paranoia's sake.
Revision 1.30 / (download) - annotate - [select for diffs], Sat Jan 30 17:21:10 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.29: +4 -2 lines
Diff to previous 1.29 (colored)
Move last three lines (#define's) from dpme.h to partition_map.h and tweak #include's as necessary.
Revision 1.29 / (download) - annotate - [select for diffs], Fri Jan 29 18:40:08 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.28: +21 -37 lines
Diff to previous 1.28 (colored)
Base 10 should be enough for anybody! Allowing hex and octal number input for partition id's, partition starting points and partition sizes is silly, especially since we never display anything but base 10 numbers. Also ensure that numbers end with a space, tab or newline.
Revision 1.28 / (download) - annotate - [select for diffs], Thu Jan 28 13:01:33 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.27: +5 -5 lines
Diff to previous 1.27 (colored)
Use consistent 'return' idiom -- no parenthesis since that was the style of the existing code.
Revision 1.27 / (download) - annotate - [select for diffs], Wed Jan 27 16:38:37 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)
On-disk partition name/types/processorid may or may not be NUL terminated after all. So add an extra byte for a NUL in the in-memory struct's.
Revision 1.26 / (download) - annotate - [select for diffs], Wed Jan 27 00:26:33 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.25: +5 -8 lines
Diff to previous 1.25 (colored)
Nope. Missed a couple of '{}' that could go.
Revision 1.25 / (download) - annotate - [select for diffs], Wed Jan 27 00:03:52 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.24: +6 -8 lines
Diff to previous 1.24 (colored)
Nuke another (and I hope final) batch of superfluous '{}' around single statements.
Revision 1.24 / (download) - annotate - [select for diffs], Tue Jan 26 23:41:48 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.23: +22 -45 lines
Diff to previous 1.23 (colored)
Rework and simplify string argument parsing. All string arguments are at most DPISTRLEN (32) characters so there is no need for fancy dynamic growing strings. Use a DPISTRLEN long buffer and bail if it fills up. Rename get_string() to get_dpistr() and get_string_argument() to get_dpstr_argument() to emphasize they will return strings that fit in DPISTRLEN. Rework & simplify a pair of their consumers - do_rename_partition() and do_change_type() - to be more obviously identitical to each other bar the displayed verbiage.
Revision 1.23 / (download) - annotate - [select for diffs], Tue Jan 26 16:39:00 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.22: +13 -16 lines
Diff to previous 1.22 (colored)
Whitespace, line wrapping fixes. Nuke many superfluous '{}' around single statements. 0 -> NULL for pointer checks.
Revision 1.22 / (download) - annotate - [select for diffs], Sun Jan 24 01:38:32 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.21: +6 -6 lines
Diff to previous 1.21 (colored)
Whitespace fixes.
Revision 1.21 / (download) - annotate - [select for diffs], Sat Jan 23 22:55:23 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.20: +3 -12 lines
Diff to previous 1.20 (colored)
No need for 'default_value' parameter for get_number_argument() since we always pass kDefault. a.k.a. -1. Nuke kDefault since it is now unused. Nuke unused #define MAXIOSIZE in passing.
Revision 1.20 / (download) - annotate - [select for diffs], Sat Jan 23 19:14:04 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.19: +3 -9 lines
Diff to previous 1.19 (colored)
No need for get_string_argument() parameter 'reprompt' since we always pass it '1'.
Revision 1.19 / (download) - annotate - [select for diffs], Thu Jan 21 15:33:21 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.18: +1 -4 lines
Diff to previous 1.18 (colored)
Hoist all file opening and ioctl calls into main(), passing a pointer to a valid map to edit(). Should enable pledging a la fdisk at some point. Since edit() always gets a valid map (and maintains its validity even when 'I'nitializing a new one) many checks for (map == NULL) are junked. Remove some dances around block sizes by using DEV_BSIZE everywhere since we don't support non-DEV_BSIZE (a.k.a. 512-byte) sectors. Remove many superfluous #include statements.
Revision 1.18 / (download) - annotate - [select for diffs], Tue Jan 19 17:55:19 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (colored)
Remove unused global 'io_buffer'.
Revision 1.17 / (download) - annotate - [select for diffs], Mon Jan 18 15:03:18 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.16: +262 -270 lines
Diff to previous 1.16 (colored)
Run indent(1) over it and tweak the results a bit manually to look more KNF'ish.
Revision 1.16 / (download) - annotate - [select for diffs], Sun Jan 17 23:18:19 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.15: +19 -17 lines
Diff to previous 1.15 (colored)
Change "//" comments to "/**/". Nuke really stupid ones.
Revision 1.15 / (download) - annotate - [select for diffs], Sun Jan 17 19:39:20 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored)
Reduce namespace pollution by eliminating parameter names from forward declarations.
Revision 1.14 / (download) - annotate - [select for diffs], Sun Jan 17 19:15:55 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)
Kill leading, imbedded, trailing whitespace.
Revision 1.13 / (download) - annotate - [select for diffs], Sun Jan 17 18:57:52 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.12: +1 -32 lines
Diff to previous 1.12 (colored)
Remove a bunch of ridiculous and uninformative comments like "// Defines".
Revision 1.12 / (download) - annotate - [select for diffs], Tue Jan 12 23:48:42 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.11: +1 -3 lines
Diff to previous 1.11 (colored)
#define LOFF_T off_t #define llseek lseek #define LOFF_T_MAX LLONG_MAX I mean, really? Nuke'em and use off_t, lseek and LLONG_MAX. Also make a couple of checks for overflow of off_t value more likely to work. ok millert@
Revision 1.11 / (download) - annotate - [select for diffs], Tue Jan 12 20:09:39 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.10: +6 -5 lines
Diff to previous 1.10 (colored)
Use normal err/errx/warn/warnx rather than handrolling new ones. Move usage() to pdisk.c and nuke do_help() and '-h'. ok jasper@ deraadt@
Revision 1.10 / (download) - annotate - [select for diffs], Mon Jan 11 07:57:54 2016 UTC (8 years, 4 months ago) by jasper
Branch: MAIN
Changes since 1.9: +2 -6 lines
Diff to previous 1.9 (colored)
trailing whitespace
Revision 1.9 / (download) - annotate - [select for diffs], Mon Jan 11 07:54:07 2016 UTC (8 years, 4 months ago) by jasper
Branch: MAIN
Changes since 1.8: +2 -0 lines
Diff to previous 1.8 (colored)
add rcs ids
Revision 1.8 / (download) - annotate - [select for diffs], Thu Aug 20 22:02:21 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)
<stdlib.h> is included, so do not need to cast result from malloc, calloc, realloc* ok krw millert
Revision 1.7 / (download) - annotate - [select for diffs], Thu May 11 17:20:40 2006 UTC (18 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7,
OPENBSD_5_6_BASE,
OPENBSD_5_6,
OPENBSD_5_5_BASE,
OPENBSD_5_5,
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,
OPENBSD_4_8_BASE,
OPENBSD_4_8,
OPENBSD_4_7_BASE,
OPENBSD_4_7,
OPENBSD_4_6_BASE,
OPENBSD_4_6,
OPENBSD_4_5_BASE,
OPENBSD_4_5,
OPENBSD_4_4_BASE,
OPENBSD_4_4,
OPENBSD_4_3_BASE,
OPENBSD_4_3,
OPENBSD_4_2_BASE,
OPENBSD_4_2,
OPENBSD_4_1_BASE,
OPENBSD_4_1,
OPENBSD_4_0_BASE,
OPENBSD_4_0
Changes since 1.6: +0 -8 lines
Diff to previous 1.6 (colored)
remove a bunch of linux and NeXT defines and, in turn, -D__unix__
Revision 1.6 / (download) - annotate - [select for diffs], Sat Apr 29 00:43:41 2006 UTC (18 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.5: +0 -6 lines
Diff to previous 1.5 (colored)
With last pdisk and full functionality for mac68k now in place, start cleaning the maze of ifdef's not relevant for us. This round wipes most linux and/or MacOS-only bits, more to come.
Revision 1.5 / (download) - annotate - [select for diffs], Thu Apr 27 19:52:21 2006 UTC (18 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.4: +8 -8 lines
Diff to previous 1.4 (colored)
update for pdisk 0.8a2, from NetBSD, retaining our local changes; summing it up: - Clean up sources - fix naming, delete old email addresses - Added support for display of Mac volume names - Fix block 0 display to show logical offset of drivers - Require confirmation of quit without write - Fix iteration to not complain about missing devices - Warn when creating/writing a map with more than 15 entries and, most important, add do_update_dpme() which allows us to partition OpenBSD slices without previous MacOS setup. Tested with shared MacOS install on macppc, procedure there remains the same. grammer and spelling help and ok jmc@ ok miod@
Revision 1.4 / (download) - annotate - [select for diffs], Sun Jun 9 08:13:08 2002 UTC (22 years ago) by todd
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE,
OPENBSD_3_9,
OPENBSD_3_8_BASE,
OPENBSD_3_8,
OPENBSD_3_7_BASE,
OPENBSD_3_7,
OPENBSD_3_6_BASE,
OPENBSD_3_6,
OPENBSD_3_5_BASE,
OPENBSD_3_5,
OPENBSD_3_4_BASE,
OPENBSD_3_4,
OPENBSD_3_3_BASE,
OPENBSD_3_3,
OPENBSD_3_2_BASE,
OPENBSD_3_2
Changes since 1.3: +17 -17 lines
Diff to previous 1.3 (colored)
rm trailing whitespace
Revision 1.3 / (download) - annotate - [select for diffs], Mon Nov 5 07:39:17 2001 UTC (22 years, 7 months ago) by mpech
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE,
OPENBSD_3_1
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)
kill more registers; millert@ ok
Revision 1.2 / (download) - annotate - [select for diffs], Sat Mar 24 00:20:59 2001 UTC (23 years, 2 months ago) by drahn
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE,
OPENBSD_3_0,
OPENBSD_2_9_BASE,
OPENBSD_2_9
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)
Make the apple code compile for OpenBSD. These changes are mostly from maja.
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sat Mar 24 00:14:06 2001 UTC (23 years, 2 months ago) by drahn
Branch: apple19980218
CVS Tags: ver1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)
Import of pdisk from apple, BSD licensed code. Archive dated Feb 18 1998 This is a HFS partition editing tool.
Revision 1.1 / (download) - annotate - [select for diffs], Sat Mar 24 00:14:06 2001 UTC (23 years, 2 months ago) by drahn
Branch: MAIN
Initial revision