CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2016/01/21 08:33:21
Modified files:
sbin/pdisk : dump.c file_media.c file_media.h io.c io.h
partition_map.c partition_map.h pdisk.c
validate.c
Log message:
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.