Use mdmfs(8) rather than rolling our own RAM-disks.
Sponsored by: DARPA & NAI Labs.
This commit is contained in:
parent
b7e368f7c1
commit
320d99c058
@ -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