Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Updating to a modular kernel



On Wednesday 10 February 2010 11:33:40 Izumi Tsutsui wrote:
> > > Mounting all filesystems...
> > > mount_mfs: /tmp: mount: Unknown error: 252
> > > /etc/rc.d/mountall reported failure status 1
> >
> > Martin just filed PR/42782 about this.
> 
> Probably file system should not depend on device ioctl(2).
> 
> Index: ffs_vfsops.c
> ===================================================================
> RCS file: /cvsroot/src/sys/ufs/ffs/ffs_vfsops.c,v
> retrieving revision 1.257
> diff -u -r1.257 ffs_vfsops.c
> --- ffs_vfsops.c      5 Feb 2010 20:03:36 -0000       1.257
> +++ ffs_vfsops.c      10 Feb 2010 11:31:25 -0000
> @@ -844,7 +844,7 @@
>       ronly = (mp->mnt_flag & MNT_RDONLY) != 0;
>       error = getdisksize(devvp, &numsecs, &secsize);
>       if (error)
> -             return (error);
> +             secsize = DEV_BSIZE;
> 
>       bp = NULL;
>       ump = NULL;

yeah, this fixes mount_mfs for me.

> I guess ffs on md(4) (including RAMDISK root) and all other file systems
> modified to use getdisksize() have the same problem.

I've seem problems with netinstall.lif not being able to find it's RAMDISK 
root.

> ---
> Izumi Tsutsui
> 

Thanks,
Nick


Home | Main Index | Thread Index | Old Index