Subject: Re: Increasing the number of inodes in the ramdisk images
To: Juan RP <juan@xtraeme.nopcode.org>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-userlevel
Date: 03/15/2005 15:18:40
On Mar 15, 2005, at 2:57 PM, Juan RP wrote:

>
> Hi, to install NetBSD/Xen in domUs via CDROM or unmounted FS in the 
> sysinst
> menu, the number of inodes has to be increased, currently it's 896,
> I want to increase it to 1024 to create the xbd1* devices in the 
> ramdisk.
>
> (I want to commit this patch).

I think this is OK, but I want a sanity check from whoever picked 896 
(Christos?)

>
> Index: sbin/init/init.c
> ===================================================================
> RCS file: /cvsroot/src/sbin/init/init.c,v
> retrieving revision 1.68
> diff -b -u -r1.68 init.c
> --- sbin/init/init.c    12 Oct 2004 10:08:09 -0000      1.68
> +++ sbin/init/init.c    15 Mar 2005 22:03:29 -0000
> @@ -186,7 +186,7 @@
>
>  #ifdef MFS_DEV_IF_NO_CONSOLE
>
> -#define NINODE 896
> +#define NINODE 1024
>  #define FSSIZE ((8192          /* boot area */                        
>  \
>         + 2 * 8192              /* two copies of superblock */         
>  \
>         + 4096                  /* cylinder group info */              
>  \
> Index: etc/etc.i386/MAKEDEV.conf
> ===================================================================
> RCS file: /cvsroot/src/etc/etc.i386/MAKEDEV.conf,v
> retrieving revision 1.4
> diff -b -u -r1.4 MAKEDEV.conf
> --- etc/etc.i386/MAKEDEV.conf   11 Mar 2005 20:55:10 -0000      1.4
> +++ etc/etc.i386/MAKEDEV.conf   15 Mar 2005 22:03:29 -0000
> @@ -12,7 +12,7 @@
>         makedev ed0 ed1
>         makedev raid0
>         makedev ld0 ld1 ld2 ld3
> -       makedev xbd0
> +       makedev xbd0 xbd1
>         makedev usbs
>         makedev ipty
>         makedev local
>
> Comments?
>
-- thorpej