git: 690f642fab78 - main - growfs(8): use gpart(8) instead of bsdlabel(8) in test
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 18 Jun 2025 07:35:04 UTC
The branch main has been updated by rew:
URL: https://cgit.FreeBSD.org/src/commit/?id=690f642fab783cba25cd4098e9c36a070de53a0d
commit 690f642fab783cba25cd4098e9c36a070de53a0d
Author: Robert Wing <rew@FreeBSD.org>
AuthorDate: 2025-06-18 07:21:20 +0000
Commit: Robert Wing <rew@FreeBSD.org>
CommitDate: 2025-06-18 07:21:20 +0000
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
---
sbin/growfs/tests/legacy_test.pl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sbin/growfs/tests/legacy_test.pl b/sbin/growfs/tests/legacy_test.pl
index 7ae2e59422d8..e2b145fa7f35 100755
--- a/sbin/growfs/tests/legacy_test.pl
+++ b/sbin/growfs/tests/legacy_test.pl
@@ -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;
}