1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Be sure to not create device which

This commit is contained in:
Pawel Jakub Dawidek 2006-10-10 14:58:21 +00:00
parent 5c35171af3
commit 2e0ca9c4a3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163204

View File

@ -205,6 +205,7 @@ raid3_label(struct gctl_req *req)
}
md.md_mediasize = mediasize * (nargs - 2);
md.md_sectorsize = sectorsize * (nargs - 2);
md.md_mediasize -= (md.md_mediasize % md.md_sectorsize);
/*
* Clear last sector first, to spoil all components if device exists.