From owner-freebsd-fs Sun Aug 12 9: 6:58 2001 Delivered-To: freebsd-fs@freebsd.org Received: from gull.mail.pas.earthlink.net (gull.mail.pas.earthlink.net [207.217.121.85]) by hub.freebsd.org (Postfix) with ESMTP id 51C3537B40C for ; Sun, 12 Aug 2001 09:06:55 -0700 (PDT) (envelope-from shmukler@mail.ru) Received: from tp600e (user-2ive7la.dialup.mindspring.com [165.247.30.170]) by gull.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with SMTP id JAA10595; Sun, 12 Aug 2001 09:06:50 -0700 (PDT) Message-ID: <003901c12348$cac65ea0$7b02a8c0@tp600e> From: "Igor Shmukler" To: "Ian Dowse" Cc: References: <200108121233.aa95748@salmon.maths.tcd.ie> Subject: Re: another FFS question Date: Sun, 12 Aug 2001 12:06:45 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > >However dump of showed that 17th (starting count from 1st partition = > >sector) and following two sectors > >are 0x00 filled. > > You obviously didn't compile this with compiler warnings turned on > (gcc -Wall) or you would have spotted the bugs yourself: > ... > Ian I agree that normally error checking is a good thing, however: Since it was only intended to run once, so I didn't check whether malloc would fail. Regarding inappropriate cast, I did get warning, but for cylinder 0 head 1 sector 1 int and long long should yield same results. I actually dumped partition and came up with following: I got 2 versions of FreeBSD installed on 2 different boxes. On FBSD 2.2 sectors 17,18 and 19 are 0x00 filled. On FBSD 4.3 same sectors seem to contain the FS structure, but still no FS_MAGIC present. While one can assume the mount does not check for 0x011954 signature in fs->fs_magic. I cannot even come to comprehend how does FreeBSD 2.2 boot without FS following BBLOCK. *** Is FS_MAGIC signature mandatory for FFS? Any logical reason for 0x00 filled 17-19th sectors? *** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message