Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.12 |
|
26-Jan-2016 |
krw |
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.
|
#
1.11 |
|
24-Jan-2016 |
krw |
Whitespace fixes.
|
#
1.10 |
|
23-Jan-2016 |
krw |
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.
|
#
1.9 |
|
23-Jan-2016 |
krw |
No need for get_string_argument() parameter 'reprompt' since we always pass it '1'.
|
#
1.8 |
|
21-Jan-2016 |
krw |
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.
|
#
1.7 |
|
17-Jan-2016 |
krw |
Change "//" comments to "/**/". Nuke really stupid ones.
|
#
1.6 |
|
17-Jan-2016 |
krw |
Reduce namespace pollution by eliminating parameter names from forward declarations.
|
#
1.5 |
|
17-Jan-2016 |
krw |
Remove a bunch of ridiculous and uninformative comments like "// Defines".
|
#
1.4 |
|
11-Jan-2016 |
jasper |
add rcs ids
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.3 |
|
27-Apr-2006 |
martin |
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 tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
|
#
1.2 |
|
09-Jun-2002 |
todd |
rm trailing whitespace
|
#
1.1 |
|
24-Mar-2001 |
drahn |
branches: 1.1.1; Initial revision
|