Failure to rewrite the disklabel should not be fatal.
Sponsored by: DARPA & NAI Labs.
This commit is contained in:
parent
1c4ccf09cd
commit
1851342297
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103797
@ -374,10 +374,8 @@ rewritelabel(char *s, struct disklabel *lp)
|
|||||||
return;
|
return;
|
||||||
lp->d_checksum = 0;
|
lp->d_checksum = 0;
|
||||||
lp->d_checksum = dkcksum(lp);
|
lp->d_checksum = dkcksum(lp);
|
||||||
if (ioctl(fso, DIOCWDINFO, (char *)lp) < 0) {
|
if (ioctl(fso, DIOCWDINFO, (char *)lp) < 0)
|
||||||
warn("ioctl (WDINFO)");
|
warn("ioctl (WDINFO): %s: can't rewrite disk label", s);
|
||||||
errx(1, "%s: can't rewrite disk label", s);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user