mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
growfs(8): use gpart(8) instead of bsdlabel(8) in test
bsdlabel(8) is deprecated Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D50865
This commit is contained in:
parent
46023d54c7
commit
690f642fab
1 changed files with 3 additions and 3 deletions
|
|
@ -30,9 +30,9 @@ sub fsck_md {
|
|||
sub setsize {
|
||||
my ($partszMB, $unitszMB) = @_;
|
||||
|
||||
open my $fd, "|-", "bsdlabel -R md$unit /dev/stdin" or die;
|
||||
print $fd "a: ", ($partszMB * BLKS_PER_MB), " 0 4.2BSD 1024 8192\n";
|
||||
print $fd "c: ", ($unitszMB * BLKS_PER_MB), " 0 unused 0 0\n";
|
||||
open my $fd, "|-", "gpart restore -F md$unit" or die;
|
||||
print $fd "BSD 8\n";
|
||||
print $fd "1 freebsd-ufs 0 ", ($partszMB * BLKS_PER_MB), "\n";
|
||||
close $fd;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue