Up to [local] / src / sbin / pdisk
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.24 / (download) - annotate - [select for diffs], Thu Jan 17 06:24:15 2019 UTC (5 years, 4 months ago) by tedu
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,
HEAD
Changes since 1.23: +1 -1 lines
Diff to previous 1.23 (colored)
use $OpenBSD marker
Revision 1.23 / (download) - annotate - [select for diffs], Wed Jan 27 14:19:59 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
CVS Tags: 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
Changes since 1.22: +2 -4 lines
Diff to previous 1.22 (colored)
Check block 0 signature, physical block size and physical block count when reading partition map. Check for unmapped physical blocks and overlapping partitions when reading partition map. No need for duplicate checks in validate_map(), so remove validate.c from build and 'v' command from code and docs.
Revision 1.22 / (download) - annotate - [select for diffs], Mon Jan 25 23:43:20 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)
Use new read/write_block0 and read/write_dpme which handle any endian or alignment issues forcefully. Removes need for convert_* functions so unhook convert.c from build. read/write_block become static functions inside file_media.c. Tweak struct block0 to stop trying to handle alignment issues by clever declaration. Rely on the new functions to accurately translate between on-disk and in-memory layouts. Enables pdisk to work on amd64 and likely other architectures if it's ever desirable. Does bring back DEV_BSIZE to pdisk.c since the in-memory structure will *not* be 512 bytes on other archs.
Revision 1.21 / (download) - annotate - [select for diffs], Sun Jan 17 14:13:57 2016 UTC (8 years, 4 months ago) by jasper
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)
oops
Revision 1.20 / (download) - annotate - [select for diffs], Sun Jan 17 14:13:42 2016 UTC (8 years, 4 months ago) by jasper
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)
- tidy up a bunch of #if's for code that has been either enabled or disabled since forever, or not relevant at all (e.g. some bits for A/UX support) - remove commented code that has never been compiled, etc ok krw@
Revision 1.19 / (download) - annotate - [select for diffs], Sat Jan 16 21:59:30 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)
No need to abstract malloc(), so replace new_file_media() with malloc(). Removes last use of last used function in media.c, so unhook that from the Makefile and remove forward declarations from media.h. No functional change.
Revision 1.18 / (download) - annotate - [select for diffs], Sat Jan 16 14:49:28 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)
Nuke support for 1024- and 2048-byte sector devices. Error out if anything other than 512-byte sectors are encountered. Unlink deblock_media.c from the build. ok jasper@
Revision 1.17 / (download) - annotate - [select for diffs], Fri Jan 15 16:39:20 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)
Replace bitfield_get() and bitfield_set() abstraction with simple masking operations since all the uses but 1 are for 1 bit fields. No functional change intended. Unhook bitfield.c from build.
Revision 1.16 / (download) - annotate - [select for diffs], Thu Jan 14 04:17:40 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)
Nuke 'HFS_name' field which was not referenced now other than setting it and freeing it. Unhook hfs_misc.c from build since it now longer contains anything being used.
Revision 1.15 / (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.14: +2 -2 lines
Diff to previous 1.14 (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.14 / (download) - annotate - [select for diffs], Mon Jan 11 23:31:27 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)
open_pathname_as_media() simply called open_file_as_media() which takes the same parameters and returns the same value. Nuke open_pathname_as_media() and call open_file_as_media() directly. Nothing else from pathname.[ch] is used so remove them from build in preparation for moving them to the attic. ok deraadt@
Revision 1.13 / (download) - annotate - [select for diffs], Mon Jan 11 18:43:06 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)
Remove '-v' and related version handling. Use strncasecmp() instead of handrolled local istrncmp(). No need to compile util.c anymore. ok deraadt@ jasper@
Revision 1.12 / (download) - annotate - [select for diffs], Wed Jul 16 20:05:03 2014 UTC (9 years, 10 months ago) by okan
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
Changes since 1.11: +1 -2 lines
Diff to previous 1.11 (colored)
zap trailing newlines; "go for it" deraadt
Revision 1.11 / (download) - annotate - [select for diffs], Wed Jun 20 18:45:44 2012 UTC (11 years, 11 months ago) by matthew
Branch: MAIN
CVS Tags: 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
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)
more mac68k bits for the attic
Revision 1.10 / (download) - annotate - [select for diffs], Wed Jun 20 18:33:59 2012 UTC (11 years, 11 months ago) by matthew
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)
Delete some more SUBDIR += mac68k.
Revision 1.9 / (download) - annotate - [select for diffs], Tue May 25 19:01:32 2010 UTC (14 years ago) by deraadt
Branch: MAIN
CVS Tags: 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
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored)
use opendev(), as requested in 6373. document this using text borrowed from disklabel(8), and while at it, fix the usage code to not be utterly distasteful ok drahn
Revision 1.8 / (download) - annotate - [select for diffs], Thu May 11 17:20:40 2006 UTC (18 years ago) by martin
Branch: MAIN
CVS Tags: 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.7: +2 -2 lines
Diff to previous 1.7 (colored)
remove a bunch of linux and NeXT defines and, in turn, -D__unix__
Revision 1.7 / (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.6: +4 -2 lines
Diff to previous 1.6 (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.6 / (download) - annotate - [select for diffs], Sat Apr 26 02:46:14 2003 UTC (21 years, 1 month ago) by deraadt
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
Changes since 1.5: +6 -3 lines
Diff to previous 1.5 (colored)
remove stuff not needed
Revision 1.5 / (download) - annotate - [select for diffs], Sat Apr 20 22:51:32 2002 UTC (22 years, 1 month ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE,
OPENBSD_3_3,
OPENBSD_3_2_BASE,
OPENBSD_3_2
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)
Build pdisk for mac68k as well.
Revision 1.4 / (download) - annotate - [select for diffs], Sat Sep 1 16:21:16 2001 UTC (22 years, 9 months ago) by drahn
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE,
OPENBSD_3_1,
OPENBSD_3_0_BASE,
OPENBSD_3_0
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)
Changes to build platform specific files properly with the powerpc -> macppc port rename. This adds support for some of these to mvmeppc when it becomes MACHINE_ARCH=powerpc, as MACHINE_ARCH is tested in some instances. ancontrol and wicontrol are MACHINE_ARCH changes.
Revision 1.3 / (download) - annotate - [select for diffs], Tue Apr 17 05:11:10 2001 UTC (23 years, 1 month ago) by drahn
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE,
OPENBSD_2_9
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)
Match quoting on this...
Revision 1.2 / (download) - annotate - [select for diffs], Tue Apr 17 05:09:22 2001 UTC (23 years, 1 month ago) by drahn
Branch: MAIN
Changes since 1.1: +6 -1 lines
Diff to previous 1.1 (colored)
Add pdisk to list of programs to build for powerpc, all other archs will build the manpage, with the proper destination.
Revision 1.1 / (download) - annotate - [select for diffs], Sat Mar 24 00:20:59 2001 UTC (23 years, 2 months ago) by drahn
Branch: MAIN
Make the apple code compile for OpenBSD. These changes are mostly from maja.