summaryrefslogtreecommitdiffstats
path: root/sbin/newfs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-09-22 09:41:41 +0000
committerphk <phk@FreeBSD.org>2002-09-22 09:41:41 +0000
commitc7bade38097bd9c486ed997f7cc45f5f754439bf (patch)
tree4d361fc12f34629f3fa0ce820609e44b9cbdb1b5 /sbin/newfs
parent1ceb27771f19bd8b9157ed86ec2ad78967be12a7 (diff)
downloadFreeBSD-src-c7bade38097bd9c486ed997f7cc45f5f754439bf.zip
FreeBSD-src-c7bade38097bd9c486ed997f7cc45f5f754439bf.tar.gz
Failure to rewrite the disklabel should not be fatal.
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sbin/newfs')
-rw-r--r--sbin/newfs/newfs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c
index 77d0bf8..99b9ffb 100644
--- a/sbin/newfs/newfs.c
+++ b/sbin/newfs/newfs.c
@@ -374,10 +374,8 @@ rewritelabel(char *s, struct disklabel *lp)
return;
lp->d_checksum = 0;
lp->d_checksum = dkcksum(lp);
- if (ioctl(fso, DIOCWDINFO, (char *)lp) < 0) {
- warn("ioctl (WDINFO)");
- errx(1, "%s: can't rewrite disk label", s);
- }
+ if (ioctl(fso, DIOCWDINFO, (char *)lp) < 0)
+ warn("ioctl (WDINFO): %s: can't rewrite disk label", s);
}
static void
OpenPOWER on IntegriCloud