diff options
author | phk <phk@FreeBSD.org> | 2003-08-27 22:34:57 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-08-27 22:34:57 +0000 |
commit | 947bcdc573fcc6b61e2436a1f6cb1957114338c3 (patch) | |
tree | f97ecb3b9d30fb2b6e87d41c6bc78bcb49a77972 /sbin | |
parent | a6edff558778b89807d7ea0cbdeca912d30c0947 (diff) | |
download | FreeBSD-src-947bcdc573fcc6b61e2436a1f6cb1957114338c3.zip FreeBSD-src-947bcdc573fcc6b61e2436a1f6cb1957114338c3.tar.gz |
When we initialize a disk with a virgin label, create also an 'a'
partition which starts after the bootstrap area and fills the entire
disk.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/bsdlabel/bsdlabel.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/bsdlabel/bsdlabel.c b/sbin/bsdlabel/bsdlabel.c index e2c84fe..d167063 100644 --- a/sbin/bsdlabel/bsdlabel.c +++ b/sbin/bsdlabel/bsdlabel.c @@ -1377,6 +1377,10 @@ getvirginlabel(void) strncpy(loclab.d_typename, "amnesiac", sizeof(loclab.d_typename)); + dp = &loclab.d_partitions[0]; + dp->p_offset = BBSIZE / secsize; + dp->p_size = loclab.d_secperunit - dp->p_offset; + dp = &loclab.d_partitions[RAW_PART]; dp->p_size = loclab.d_secperunit; loclab.d_checksum = dkcksum(&loclab); |