From 18513422978cf5164c260a1cece14293c806c4d6 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 22 Sep 2002 09:41:41 +0000 Subject: [PATCH] Failure to rewrite the disklabel should not be fatal. Sponsored by: DARPA & NAI Labs. --- sbin/newfs/newfs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c index 77d0bf829e84..99b9ffb9267e 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