1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-23 07:31:31 +00:00

bsdlabel: emit deprecation notice when run

Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
Differential Reision: https://reviews.freebsd.org/D43586
This commit is contained in:
Ed Maste 2024-01-24 14:33:35 -05:00
parent b6f3cced15
commit 3661658c76

View File

@ -135,6 +135,10 @@ main(int argc, char *argv[])
error = 0; error = 0;
name = NULL; name = NULL;
fprintf(stderr,
"WARNING: bsdlabel is deprecated and is not available in FreeBSD 15 or later.\n"
"Please use gpart instead.\n\n");
while ((ch = getopt(argc, argv, "ABb:efm:nRrw")) != -1) while ((ch = getopt(argc, argv, "ABb:efm:nRrw")) != -1)
switch (ch) { switch (ch) {
case 'A': case 'A':