Allow the config file to specify a root filesystem filename.

This commit is contained in:
Doug Rabson 2001-03-09 13:45:31 +00:00
parent 60fe99457c
commit 7ea98b2be3

View File

@ -12,6 +12,7 @@
#include "opt_mfs.h" /* We have adopted some tasks from MFS */
#include "opt_md.h"
#include "opt_ski.h"
#include <sys/param.h>
#include <sys/systm.h>
@ -33,6 +34,10 @@
#include <vm/vm_object.h>
#include <vm/vm_pager.h>
#ifndef SKI_ROOT_FILESYSTEM
#define SKI_ROOT_FILESYSTEM "ia64-root.fs"
#endif
#define SSC_OPEN 50
#define SSC_CLOSE 51
#define SSC_READ 52
@ -255,7 +260,7 @@ ssccreate(int unit)
&ssc_cdevsw, &sscdisk_cdevsw);
sc->dev->si_drv1 = sc;
sc->nsect = SSC_NSECT;
sc->fd = ssc(ia64_tpa((u_int64_t) "/vol/v7/dfr/moo.fs"),
sc->fd = ssc(ia64_tpa((u_int64_t) SKI_ROOT_FILESYSTEM),
1, 0, 0, SSC_OPEN);
if (sc->unit == 0)
sscrootready = 1;