Lines Matching +full:default +full:- +full:trim
29 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
31 # Run a test on a 128 MB malloc backed MD with UFS SU fs with option trim.
34 . ../default.cfg
36 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
37 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
38 mdconfig -a -t malloc -o reserve -s 128m -u $mdstart || exit 1
39 [ $# -eq 0 ] && trim=-t
40 newfs $trim $newfs_flags md$mdstart > /dev/null
43 echo "This is a Trim (TRIM) test." >> $mntpoint/file
50 while mount | grep $mntpoint | grep -q /dev/md; do
54 grep -a -qm1 Trim /dev/md$mdstart && { echo "Test failed"; s=1; }
57 mdconfig -d -u $mdstart