1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-03 09:00:21 +00:00

Use mdmfs(8) rather than rolling our own RAM-disks.

Sponsored by:	DARPA & NAI Labs.
This commit is contained in:
Poul-Henning Kamp 2002-09-22 09:48:02 +00:00
parent b7e368f7c1
commit 320d99c058
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103799
6 changed files with 6 additions and 24 deletions

View File

@ -49,10 +49,7 @@ mount_md()
if [ -n "$4" ]; then
bpi="-i $4"
fi
/sbin/mdconfig -a -t malloc -s $1 -u $3
/sbin/disklabel -r -w md$3 auto
/sbin/newfs $bpi /dev/md$3c
/sbin/mount /dev/md$3c $2
/sbin/mdmfs $bpi -s $1 -M md$3 $2
}
# If there is a global system configuration file, suck it in.

View File

@ -67,10 +67,7 @@ chkerr()
mount_md()
{
/sbin/mdconfig -a -t malloc -s $1 -u $3
/sbin/disklabel -r -w md$3 auto
/sbin/newfs -i 4096 /dev/md$3c
/sbin/mount /dev/md$3c $2
/sbin/mdmfs -i 4096 -s $1 -M md$3 $2
}
# DEBUGGING

View File

@ -49,10 +49,7 @@ mount_md()
if [ -n "$4" ]; then
bpi="-i $4"
fi
/sbin/mdconfig -a -t malloc -s $1 -u $3
/sbin/disklabel -r -w md$3 auto
/sbin/newfs $bpi /dev/md$3c
/sbin/mount /dev/md$3c $2
/sbin/mdmfs $bpi -s $1 -M md$3 $2
}
# If there is a global system configuration file, suck it in.

View File

@ -49,10 +49,7 @@ mount_md()
if [ -n "$4" ]; then
bpi="-i $4"
fi
/sbin/mdconfig -a -t malloc -s $1 -u $3
/sbin/disklabel -r -w md$3 auto
/sbin/newfs $bpi /dev/md$3c
/sbin/mount /dev/md$3c $2
/sbin/mdmfs $bpi -s $1 -M md$3 $2
}
# If there is a global system configuration file, suck it in.

View File

@ -49,10 +49,7 @@ mount_md()
if [ -n "$4" ]; then
bpi="-i $4"
fi
/sbin/mdconfig -a -t malloc -s $1 -u $3
/sbin/disklabel -r -w md$3 auto
/sbin/newfs $bpi /dev/md$3c
/sbin/mount /dev/md$3c $2
/sbin/mdmfs $bpi -s $1 -M md$3 $2
}
# If there is a global system configuration file, suck it in.

View File

@ -67,10 +67,7 @@ chkerr()
mount_md()
{
/sbin/mdconfig -a -t malloc -s $1 -u $3
/sbin/disklabel -r -w md$3 auto
/sbin/newfs -i 4096 /dev/md$3c
/sbin/mount /dev/md$3c $2
/sbin/mdmfs -i 4096 -s $1 -M md$3 $2
}
# DEBUGGING