diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-01-21 02:52:53 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-01-21 02:52:53 +0000 |
commit | ad79220a1f6a61284080bbcf35e395b17d1f205b (patch) | |
tree | ce0fac9eecfe41cc699cc3b6dc00cc54854578ed /sbin/pdisk/partition_map.h | |
parent | 52f25cff94390ba90d00c04f05997fda19c3d7b8 (diff) |
Nuke 'writable' field now that it is always in sync with 'rflag'. Since
(!rflag && writable == 0) can't be true remove those warning blocks and
simply leave the not-writable warning when attempting to write the
map. Always show 'w' in the help and rely on the check and warning
in do_write_partition_map() so the user always gets a message.
Diffstat (limited to 'sbin/pdisk/partition_map.h')
-rw-r--r-- | sbin/pdisk/partition_map.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/pdisk/partition_map.h b/sbin/pdisk/partition_map.h index d8d86b1b6cb..acfabff8991 100644 --- a/sbin/pdisk/partition_map.h +++ b/sbin/pdisk/partition_map.h @@ -1,4 +1,4 @@ -/* $OpenBSD: partition_map.h,v 1.19 2016/01/18 17:57:35 krw Exp $ */ +/* $OpenBSD: partition_map.h,v 1.20 2016/01/21 02:52:52 krw Exp $ */ /* * partition_map.h - partition map routines @@ -39,7 +39,6 @@ struct partition_map_header { struct partition_map * base_order; struct block0 *misc; int fd; - int writable; int changed; int written; int physical_block; /* must be == sbBlockSize */ |