From owner-freebsd-hackers Thu Feb 15 22:53:17 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id WAA10240 for hackers-outgoing; Thu, 15 Feb 1996 22:53:17 -0800 (PST) Received: from vcgate1.mei.co.jp (vcgate1.mei.co.jp [202.32.14.51]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id WAA10234 for ; Thu, 15 Feb 1996 22:53:13 -0800 (PST) Received: by vcgate1.mei.co.jp (5.65mei1.2g/5.5:4.6:vcgate0:950406) id AA06809; Fri, 16 Feb 96 15:51:24 +0900 Received: by vcmei.vanc.mei.co.jp (5.65mei1.1/5.9:4.9:vcmei:960215) id AA03630; Fri, 16 Feb 96 15:50:44 +0900 Received: by kmegate.kme.mei.co.jp (4.1/5.5:4.6:kmegate:960117) id AA13666; Fri, 16 Feb 96 15:51:22 JST Date: Fri, 16 Feb 96 15:51:22 JST From: akiyama@kme.mei.co.jp (Shunsuke Akiyama) Message-Id: <9602160651.AA13666@kmegate.kme.mei.co.jp> To: terry@lambert.org Cc: hackers@freebsd.org In-Reply-To: <199602141750.KAA25465@phaeton.artisoft.com> (message from Terry Lambert on Wed, 14 Feb 1996 10:50:54 -0700 (MST)) Subject: Re: Optical disk driver update and enhancement patch. Sender: owner-hackers@freebsd.org Precedence: bulk > Terry Lambert writes: > >> Known problem: >> UFS build on 1024 byte/sector media can not mount as root >> filesystem. > > What are the failure symptoms? Is it the BIOS-based boot blocks, > or does the kernel not recognize the device? It's mostly boot blocks. The PC-BIOS can handle 512 byte/sector size only. Kernel on 1024 byte/sector media never load into memeory, if boot blocks uses the BIOS. And another point, that's my patch. I reviewed my changes, then I found mistake. I made fix patch like bellow. I guess this patch may be fix mounting 1024 byte/sector media on root filesystem, with booting kernel on DOS FS using fbsdboot.exe. -- Shunsuke Akiyama Kyushu Matsushita Electric Co., Ltd. Fukuoka, Japan. akiyama@kme.mei.co.jp ----- Patch Here ----- =================================================================== RCS file: sys/ufs/ffs/RCS/ffs_vfsops.c,v retrieving revision 1.35.0.2 diff -u -r1.35.0.2 sys/ufs/ffs/ffs_vfsops.c --- 1.35.0.2 1996/02/12 07:45:48 +++ sys/ufs/ffs/ffs_vfsops.c 1996/02/15 14:02:35 @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ffs_vfsops.c 8.8 (Berkeley) 4/18/94 - * $Id: ffs_vfsops.c,v 1.35.0.2 1996/02/12 07:45:48 shun Exp $ + * $Id: ffs_vfsops.c,v 1.35.0.3 1996/02/15 14:02:35 shun Exp $ */ #include "opt_quota.h" @@ -327,12 +327,11 @@ (void)VFS_STATFS(mp, &mp->mnt_stat, p); if (fs == NULL) { - /* root mounts, set default sector size */ - mp->mnt_stat.f_spare[0] = 512; - } else { - /* non-root mounts, set sector size */ - mp->mnt_stat.f_spare[0] = fs->fs_fsize / fs->fs_nspf; + ump = VFSTOUFS(mp); + fs = ump->um_fs; } + /* set sector size */ + mp->mnt_stat.f_spare[0] = fs->fs_fsize / fs->fs_nspf; goto success; ----- Patch End -----