/freebsd/tests/sys/geom/class/eli/ |
H A D | attach_test.sh | 14 sectors=100 15 attach_md md -t malloc -s `expr $sectors + 1` 19 atf_check geli init -B none -P -K keyfile ${md} 20 atf_check geli attach -d -p -k keyfile ${md} 23 atf_check dd if=/dev/${md}.eli of=/dev/null status=none 25 if [ ! -c /dev/${md}.eli ]; then 30 true > /dev/${md}.eli 32 if [ -c /dev/${md}.eli ]; then 53 attach_md md -t malloc -s `expr $sectors + 1` 56 atf_check geli init -B none -P -K keyfile ${md} [all …]
|
H A D | onetime_test.sh | 12 geli onetime -e $ealgo -l $keylen -s $secsize ${md} 14 atf_check dd if=rnd of=/dev/${md}.eli bs=${secsize} count=${sectors} status=none 18 md_ddev=`dd if=/dev/${md}.eli bs=${secsize} count=${sectors} status=none | md5` 20 md_edev=`dd if=/dev/${md} bs=${secsize} count=${sectors} status=none | md5` 41 sectors=100 60 geli onetime -a $aalgo -e $ealgo -l $keylen -s $secsize ${md} 62 atf_check dd if=rnd of=/dev/${md}.eli bs=${secsize} count=${sectors} status=none 66 md_ddev=`dd if=/dev/${md}.eli bs=${secsize} count=${sectors} status=none | md5` 105 sectors=100 106 attach_md md -t malloc -s $sectors [all …]
|
H A D | setkey_test.sh | 15 sectors=100 16 attach_md md -t malloc -s `expr $sectors + 1` 27 atf_check geli init -B none -P -K keyfile1 ${md} 28 atf_check geli attach -p -k keyfile1 ${md} 31 dd if=rnd of=/dev/${md}.eli bs=512 count=${sectors} status=none 32 hash2=`dd if=/dev/${md}.eli bs=512 count=${sectors} 2>/dev/null | md5` 36 atf_check -s exit:0 -o ignore geli setkey -P -K keyfile2 ${md} 37 atf_check geli detach ${md} 41 geli attach -p -k keyfile1 ${md} 44 atf_check geli attach -p -k keyfile2 ${md} [all …]
|
H A D | init_test.sh | 14 -s $secsize ${md} 15 atf_check geli attach -p -k keyfile ${md} 17 atf_check dd if=rnd of=/dev/${md}.eli bs=${secsize} count=${sectors} \ 22 md_ddev=`dd if=/dev/${md}.eli bs=${secsize} count=${sectors} status=none | md5` 24 md_edev=`dd if=/dev/${md} bs=${secsize} count=${sectors} status=none | md5` 67 sectors=100 71 attach_md md -t malloc -s $sectors 74 rm -f /var/backups/${md}.eli 75 atf_check -s exit:0 -o ignore geli init -B none -P -K keyfile ${md} 76 if [ -f /var/backups/${md}.eli ]; then [all …]
|
H A D | kill_test.sh | 14 sectors=100 15 attach_md md -t malloc -s `expr $sectors + 1` 20 atf_check geli init -B none -P -K keyfile1 ${md} 21 atf_check geli attach -p -k keyfile1 ${md} 22 atf_check -s exit:0 -o ignore geli setkey -n 1 -P -K keyfile2 ${md} 25 atf_check geli kill ${md} 28 if [ -c /dev/${md}.eli ]; then 34 geli attach -p -k keyfile1 ${md} 38 geli attach -p -k keyfile2 ${md} 40 atf_check geli init -B none -P -K keyfile1 ${md} [all …]
|
H A D | delkey_test.sh | 15 sectors=100 16 attach_md md -t malloc -s `expr $sectors + 1` 23 atf_check geli init -B none -P -K keyfile1 ${md} 24 atf_check geli attach -p -k keyfile1 ${md} 25 atf_check -s exit:0 -o ignore geli setkey -n 1 -P -K keyfile2 ${md} 28 atf_check geli delkey -n 0 ${md} 29 atf_check geli detach ${md} 33 geli attach -p -k keyfile1 ${md} 36 atf_check geli attach -p -k keyfile2 ${md} 40 geli delkey -n 1 ${md} [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | mkfifo.sh | 39 # Run with mkfifo.cfg on a 2g swap backed MD 43 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint 44 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart 49 newfs $opt md$mdstart > /dev/null 50 mount /dev/md$mdstart $mntpoint 68 export creatLOAD=100 69 export ftsLOAD=100 70 export linkLOAD=100 71 export lockfLOAD=100 72 export mkdirLOAD=100 [all …]
|
H A D | mkfifo2c.sh | 33 # Run with mkfifo.cfg on a 2g swap backed MD 44 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint 45 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart 51 newfs $opt md$mdstart > /dev/null 52 mount /dev/md$mdstart $mntpoint 67 export ftsLOAD=100 68 export linkLOAD=100 69 export mkdirLOAD=100 70 export mkfifoLOAD=100 71 export renameLOAD=100 [all …]
|
H A D | mkfifo2d.sh | 38 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint 39 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart 43 newfs $newfs_flags md$mdstart > /dev/null 44 mount -o async /dev/md$mdstart $mntpoint 59 export ftsLOAD=100 60 export linkLOAD=100 61 export mkdirLOAD=100 62 export mkfifoLOAD=100 63 export renameLOAD=100 64 export swapLOAD=100 [all …]
|
H A D | msdos12.sh | 40 mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint 41 [ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart 43 gpart create -s bsd md$mdstart > /dev/null 44 gpart add -t freebsd-ufs md$mdstart > /dev/null 46 newfs_msdos -F 32 -b 8192 /dev/md$mdstart$part > /dev/null 47 mount -t msdosfs /dev/md$mdstart$part $mntpoint 55 export dirnprenameLOAD=100 56 export dirrenameLOAD=100 57 export renameLOAD=100 79 fsck -t msdosfs -y /dev/md$mdstart$part > $log 2>&1 [all …]
|
H A D | rename15.sh | 37 mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint 38 [ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart 43 echo "newfs $fl md$mdstart" 44 newfs $fl md$mdstart > /dev/null 45 mount /dev/md$mdstart $mntpoint 51 export dirnprenameLOAD=100 52 export dirrenameLOAD=100 53 export renameLOAD=100 80 checkfs /dev/md$mdstart; s=$?
|
H A D | suj22.sh | 69 fsck -t ufs -y md$mdstart 70 fsck -t ufs -y md$mdstart 81 mount | grep "$mntpoint" | grep -q md$mdstart && umount $mntpoint 82 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart 86 newfs -j md$mdstart > /dev/null 87 mount /dev/md$mdstart $mntpoint 108 fsck -t ufs -y md$mdstart 109 fsck -t ufs -y md$mdstart 124 #define ND 100 125 #define NF 100 [all …]
|
H A D | fsck3.sh | 48 mount | grep "on $mp1 " | grep -q /dev/md && umount -f $mp1 49 [ -c /dev/md$u1 ] && mdconfig -d -u $u1 51 newfs $newfs_flags /dev/md$u1 > /dev/null 52 mount /dev/md$u1 $mp1 54 [ -c /dev/md$u2 ] && mdconfig -d -u $u2 57 backups=`newfs -N $newfs_flags md$u2 | grep -A1 "super-block backups" | \ 59 newfs $newfs_flags md$u2 > /dev/null 60 sblock=`dumpfs md$u2 | grep -m1 "superblock location" | awk '{print $3}'` 61 mount /dev/md$u2 $mp2 || s=100 67 fsck_ffs -y /dev/md$u2 > $log 2>&1 [all …]
|
H A D | dangling.sh | 41 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint 42 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart 45 newfs $newfs_flags md$mdstart > /dev/null 46 mount /dev/md$mdstart $mntpoint || exit 1 59 export LOAD=100 60 export symlinkLOAD=100 61 export rwLOAD=100 62 export mkdirLOAD=100
|
H A D | gnop6.sh | 42 rprob=`jot -r 1 0 100` # read delay in % 43 wprob=`jot -r 1 0 100` # write delay in % 45 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint 46 [ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart 49 gnop create -d $delay -q $rprob -x $wprob /dev/md$mdstart 50 newfs $newfs_flags /dev/md$mdstart.nop > /dev/null 51 mount /dev/md$mdstart.nop $mntpoint 60 while mount | grep $mntpoint | grep -q /dev/md; do 63 checkfs /dev/md$mdstart.nop || s=1 && s=0 64 gnop destroy /dev/md$mdstart.nop
|
H A D | gnop7.sh | 43 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint 44 [ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart 47 gnop create /dev/md$mdstart 48 newfs $newfs_flags /dev/md$mdstart.nop > /dev/null 49 mount /dev/md$mdstart.nop $mntpoint 61 gnop configure -e 5 -r 100 -w 100 /dev/md$mdstart.nop 63 gnop configure -e 0 -r 0 -w 0 /dev/md$mdstart.nop 75 fsck_ffs -Rfy /dev/md$mdstart.nop || s=2 76 gnop destroy /dev/md$mdstart.nop
|
H A D | symlink3.sh | 37 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint 38 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart 40 newfs $newfs_flags md$mdstart > /dev/null 41 mount /dev/md$mdstart $mntpoint 48 export LOAD=100 49 export symlinkLOAD=100 56 mount /dev/md$mdstart $mntpoint 61 while mount | grep $mntpoint | grep -q /dev/md; do
|
H A D | force12.sh | 39 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint 40 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart 44 echo "newfs $flags md$mdstart" 45 newfs $flags md$mdstart > /dev/null 2>&1 61 mount /dev/md$mdstart $mntpoint 63 export dirnprenameLOAD=100 64 export dirrenameLOAD=100 70 while mdconfig -l | grep -q md$mdstart; do 77 while mount | grep $mntpoint | grep -q /dev/md; do
|
H A D | rw.sh | 39 mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint 40 [ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart 44 newfs $newfs_flags md$mdstart > /dev/null 46 mount /dev/md$mdstart $mntpoint 52 export rwLOAD=100 53 export swapLOAD=100 61 while mount | grep "on $mntpoint " | grep -q /dev/md; do
|
H A D | umount2.sh | 41 [ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart 43 newfs $newfs_flags md$mdstart > /dev/null 44 mount /dev/md$mdstart $mntpoint 65 export ftsLOAD=100 66 export lockfLOAD=100 67 export openatLOAD=100 68 export symlinkLOAD=100
|
H A D | vunref2.sh | 37 mount | grep "$mntpoint" | grep -q md$mdstart && umount -f $mntpoint 38 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart 41 newfs $newfs_flags md$mdstart > /dev/null 42 mount /dev/md$mdstart $mntpoint 46 export LOAD=100 47 export swapLOAD=100 67 mount /dev/md$mdstart $mntpoint
|
H A D | nullfs20.sh | 36 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint 37 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart 41 newfs -n -b 4096 -f 512 -i 1024 md$mdstart > /dev/null 43 mount /dev/md$mdstart $mntpoint 54 export LOAD=100 55 export ftsLOAD=100 68 while mount | grep $mntpoint | grep -q /dev/md; do
|
H A D | swapoff4.sh | 49 swapon /dev/md$md1 52 swapon /dev/md$md2 56 (cd ../testcases/swap; ./swap -t 4m -i 20 -l 100) & 65 for dev in /dev/md$md1 /dev/md$md2; do 73 [ $n -lt 100 ] && { echo "Only performed $n swapoffs"; s=1; } || s=0 75 for dev in /dev/md$md1 /dev/md$md2; do
|
H A D | link2.sh | 41 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint 42 [ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart 45 newfs $newfs_flags md$mdstart > /dev/null 46 mount /dev/md$mdstart $mntpoint 48 daemon sh -c "(cd $here/../testcases/swap; ./swap -t 5m -i 20 -h -l 100)" \ 53 for i in `jot 100`; do 55 mount /dev/md$mdstart $mntpoint 65 while mount | grep $mntpoint | grep -q /dev/md; do
|
/freebsd/sys/geom/raid3/ |
H A D | g_raid3.h | 243 struct g_raid3_metadata *md); 244 int g_raid3_read_metadata(struct g_consumer *cp, struct g_raid3_metadata *md); 246 struct g_raid3_metadata *md); 272 raid3_metadata_encode(struct g_raid3_metadata *md, u_char *data) in raid3_metadata_encode() argument 276 bcopy(md->md_magic, data, 16); in raid3_metadata_encode() 277 le32enc(data + 16, md->md_version); in raid3_metadata_encode() 278 bcopy(md->md_name, data + 20, 16); in raid3_metadata_encode() 279 le32enc(data + 36, md->md_id); in raid3_metadata_encode() 280 le16enc(data + 40, md->md_no); in raid3_metadata_encode() 281 le16enc(data + 42, md->md_all); in raid3_metadata_encode() [all …]
|