diff options
author | jkh <jkh@FreeBSD.org> | 1998-10-17 04:19:29 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1998-10-17 04:19:29 +0000 |
commit | a2bcaf5139f10b70e064bfccebc04348b41dd177 (patch) | |
tree | 28a2d3f88f8b71d8abe0ce4c41b27f7a13c9b46a /sbin/newfs | |
parent | 37e9ac76099c024b948c6bd506330dbeda2acb8e (diff) | |
download | FreeBSD-src-a2bcaf5139f10b70e064bfccebc04348b41dd177.zip FreeBSD-src-a2bcaf5139f10b70e064bfccebc04348b41dd177.tar.gz |
Don't rewrite the disk label. The type field is already set correctly
and we don't use the frags info, so why bother? More to the point, it
seems to result in an EXDEV error when the label is written out and we
lose because of it (don't know why though). This is a work-around and
is marked as such.
Diffstat (limited to 'sbin/newfs')
-rw-r--r-- | sbin/newfs/newfs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c index f485d9f..71688e8 100644 --- a/sbin/newfs/newfs.c +++ b/sbin/newfs/newfs.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)newfs.c 8.13 (Berkeley) 5/1/95"; #endif static const char rcsid[] = - "$Id: newfs.c,v 1.24 1998/09/29 23:20:04 grog Exp $"; + "$Id: newfs.c,v 1.25 1998/09/30 07:53:52 grog Exp $"; #endif /* not lint */ /* @@ -601,8 +601,10 @@ havelabel: if (realsectorsize != DEV_BSIZE) pp->p_size /= realsectorsize /DEV_BSIZE; #endif +#if 0 /* XXX this shouldn't fail, but it returns ENXDEV right now - pure workaround, this */ if (!Nflag && bcmp(pp, &oldpartition, sizeof(oldpartition))) rewritelabel(special, fso, lp); +#endif if (!Nflag) close(fso); close(fsi); |