tangled
alpha
login
or
join now
jcs.org
/
openbsd-src
0
fork
atom
jcs's openbsd hax
openbsd
0
fork
atom
overview
issues
pulls
pipelines
openbsd-src
/
sbin
/
pdisk
/
at
jcs
11 files
Makefile
use $OpenBSD marker
7 years ago
dump.c
Fix display of pdisk partition sizes by casting the 32-bit number of blocks to (long long) before multiplying by 512 and passing the value to fmt_scaled().
10 years ago
dump.h
Move dump_block() declaration from io.h to io.c since it is not used anywhere else.
10 years ago
file_media.c
Move last three lines (#define's) from dpme.h to partition_map.h and tweak #include's as necessary.
10 years ago
file_media.h
Fold struct dpme into struct entry. Same reasons as for folding struct block0 into struct partition_map. Easier to read code.
10 years ago
io.c
Use printf("%s",prompt) rather than printf(prompt) just for paranoia's sake.
10 years ago
io.h
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.
10 years ago
partition_map.c
Allow sbBlkCount to be less than the number of physical sectors on the disk.
6 years ago
partition_map.h
Nuke pointless map field 'physical_block' and just use 'sbBlkSize' which is set to the same value.
10 years ago
pdisk.8
A disk name of /dev/wd0c doesn't work. Correct verbiage and example.
10 years ago
pdisk.c
Remove all the pledge "disklabel" before ioctl DIOCGPDINFO is called in order to avoid a pledge crash with 'pdisk /dev/tty'. Only the pledge "stdio" right after the ioctl remains.
10 years ago