Date: Sun, 12 Aug 2001 12:06:45 -0400 From: "Igor Shmukler" <shmukler@mail.ru> To: "Ian Dowse" <iedowse@maths.tcd.ie> Cc: <freebsd-fs@freebsd.org> Subject: Re: another FFS question Message-ID: <003901c12348$cac65ea0$7b02a8c0@tp600e> References: <200108121233.aa95748@salmon.maths.tcd.ie>
next in thread | previous in thread | raw e-mail | index | archive | help
> >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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003901c12348$cac65ea0$7b02a8c0>
