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.
This commit is contained in:
parent
3a47a99d78
commit
d440887943
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119510
@ -1377,6 +1377,10 @@ getvirginlabel(void)
|
|||||||
strncpy(loclab.d_typename, "amnesiac",
|
strncpy(loclab.d_typename, "amnesiac",
|
||||||
sizeof(loclab.d_typename));
|
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 = &loclab.d_partitions[RAW_PART];
|
||||||
dp->p_size = loclab.d_secperunit;
|
dp->p_size = loclab.d_secperunit;
|
||||||
loclab.d_checksum = dkcksum(&loclab);
|
loclab.d_checksum = dkcksum(&loclab);
|
||||||
|
Loading…
Reference in New Issue
Block a user