From owner-freebsd-hackers Tue Oct 1 9:45:28 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED7DB37B401 for ; Tue, 1 Oct 2002 09:45:26 -0700 (PDT) Received: from ady.warpnet.ro (ady.warpnet.ro [217.156.25.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8596543E3B for ; Tue, 1 Oct 2002 09:45:25 -0700 (PDT) (envelope-from ady@freebsd.ady.ro) Received: from localhost (ady@localhost) by ady.warpnet.ro (8.9.3/8.9.3) with ESMTP id TAA53670 for ; Tue, 1 Oct 2002 19:45:21 +0300 (EEST) (envelope-from ady@freebsd.ady.ro) Date: Tue, 1 Oct 2002 19:45:21 +0300 (EEST) From: Adrian Penisoara X-Sender: ady@ady.warpnet.ro To: freebsd-hackers@freebsd.org Subject: "Impossible" error: fixlabel: invalid magic Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Wehever I try to change the disklabel for da2s2 or try to directy write to /dev/da2s2 if fails and prints this weird error: dscheck(#da/0x30012): fixlabel: invalid magic Grep'ing the error message in the sources it leads to this snipped of code in kern/subr_diskslice.c in function fixlabel() (line 855): /* These errors "can't happen" so don't bother reporting details. */ if (lp->d_magic != DISKMAGIC || lp->d_magic2 != DISKMAGIC) return ("fixlabel: invalid magic"); if (dkcksum(lp) != 0) return ("fixlabel: invalid checksum"); Could someone please reveal the mistery behind this "vodoo" code ? Any cause leading to this ? Thanks, Ady (@freebsd.ady.ro) ____________________________________________________________________ | An age is called Dark not because the light fails to shine, but | | because people refuse to see it. | | -- James Michener, "Space" | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message