mirror of
https://git.FreeBSD.org/src.git
synced 2026-06-02 11:24:32 +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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user