summaryrefslogtreecommitdiffstats
path: root/sbin/disklabel
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-10-17 09:56:32 +0000
committerbde <bde@FreeBSD.org>1998-10-17 09:56:32 +0000
commit77c4345dcb5ffb2aa969d99d08f70fa9a1ef4a5c (patch)
treec1ac83b1d89020cce9e99b592bf4e1e02d4b80c4 /sbin/disklabel
parent638a858945053dcef51905111b8c694e24477f0d (diff)
downloadFreeBSD-src-77c4345dcb5ffb2aa969d99d08f70fa9a1ef4a5c.zip
FreeBSD-src-77c4345dcb5ffb2aa969d99d08f70fa9a1ef4a5c.tar.gz
Updated the error message for EXDEV to match recent kernel fixes.
Fixed nearby indentation. Use RAW_PART instead of RAWPARTITION.
Diffstat (limited to 'sbin/disklabel')
-rw-r--r--sbin/disklabel/disklabel.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c
index be60d54..046daac 100644
--- a/sbin/disklabel/disklabel.c
+++ b/sbin/disklabel/disklabel.c
@@ -46,7 +46,7 @@ static char sccsid[] = "@(#)disklabel.c 8.2 (Berkeley) 1/7/94";
/* from static char sccsid[] = "@(#)disklabel.c 1.2 (Symmetric) 11/28/85"; */
#endif
static const char rcsid[] =
- "$Id: disklabel.c,v 1.20 1998/08/21 23:44:16 gpalmer Exp $";
+ "$Id: disklabel.c,v 1.21 1998/08/23 07:32:37 bde Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -76,12 +76,6 @@ static const char rcsid[] =
* for the label on such machines.
*/
-#ifdef tahoe
-#define RAWPARTITION 'a'
-#else
-#define RAWPARTITION 'c'
-#endif
-
#ifndef BBSIZE
#define BBSIZE 8192 /* size of boot area, with label */
#endif
@@ -232,7 +226,7 @@ main(argc, argv)
dkname = argv[0];
if (dkname[0] != '/') {
- (void)sprintf(np, "%sr%s%c", _PATH_DEV, dkname, RAWPARTITION);
+ (void)sprintf(np, "%sr%s%c", _PATH_DEV, dkname, RAW_PART);
specname = np;
np += strlen(specname) + 1;
} else
@@ -483,7 +477,7 @@ l_perror(s)
case ESRCH:
warnx("%s: no disk label on disk;", s);
fprintf(stderr,
- "use \"disklabel -r\" to install initial label\n");
+ "use \"disklabel -r\" to install initial label\n");
break;
case EINVAL:
@@ -496,8 +490,8 @@ l_perror(s)
break;
case EXDEV:
- warnx(
- "%s: labeled partition or 'a' partition must start at beginning of disk", s);
+ warnx("%s: '%c' partition must start at beginning of disk",
+ s, 'a' + RAW_PART);
break;
default:
OpenPOWER on IntegriCloud