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:
parent
b7e368f7c1
commit
320d99c058
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103799
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user