Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Aug 2000 02:29:51 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        nbm@FreeBSD.ORG
Cc:        howard@ee.elen.utah.edu, freebsd-bugs@FreeBSD.ORG
Subject:   Re: i386/14027: "disklabel -r -w" on new disk reports "No space left on device"
Message-ID:  <Pine.BSF.4.21.0008080219050.9081-100000@besplex.bde.org>
In-Reply-To: <200008052309.QAA73732@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 5 Aug 2000 nbm@FreeBSD.ORG wrote:

> Synopsis: "disklabel -r -w" on new disk reports "No space left on device"
> 
> State-Changed-From-To: feedback->closed
> State-Changed-By: nbm
> State-Changed-When: Sat Aug 5 16:09:05 PDT 2000
> State-Changed-Why: 
> Feedback not possible - mail bounces.

Pilot error.  This message is caused by attempting to apply a label that
specifies a device larger than the actual device.  From subr_disklabel.c:

			if (lp->d_secperunit > sp->ds_size)
			    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sectors/unit in new label must be smaller than actual sectors/unit.
				error = ENOSPC;
			for (part = 0; part < lp->d_npartitions; part++)
				if (lp->d_partitions[part].p_size > sp->ds_size)
				    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Size of each partition in new label must be smaller than actual sectors/unit.
					error = ENOSPC;

Bruce



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0008080219050.9081-100000>