Lines Matching +full:512 +full:- +full:bytes
13 [ -c /dev/mdctl ] || atf_skip "no /dev/mdctl to create md devices"
14 _md=$(mdconfig -a "$@") || atf_fail "failed to allocate md(4)"
28 # geli needs 512B for the label.
29 bytes=`expr $osecsize \* $sectors + 512`b
31 if [ -n "$backing_filename" ]; then
32 # Use a file-backed md(4) device, so we can deliberatly corrupt
34 truncate -s $bytes backing_file
35 attach_md md -t vnode -f backing_file
37 attach_md md -t malloc -s $bytes
40 for cipher in aes-xts:128 aes-xts:256 \
41 aes-cbc:128 aes-cbc:192 aes-cbc:256 \
42 camellia-cbc:128 camellia-cbc:192 camellia-cbc:256; do
47 for secsize in 512 1024 2048 4096 $MAX_SECSIZE; do
61 # geli needs 512B for the label.
62 bytes=`expr $MAX_SECSIZE \* $sectors + 512`b
63 attach_md md -t malloc -s $bytes
64 for cipher in aes-xts:128 aes-xts:256 \
65 aes-cbc:128 aes-cbc:192 aes-cbc:256 \
66 camellia-cbc:128 camellia-cbc:192 camellia-cbc:256; do
69 for secsize in 512 1024 2048 4096 $MAX_SECSIZE; do
78 if [ -f "$TEST_MDS_FILE" ]; then
80 [ -c /dev/${md}.eli ] && \
82 mdconfig -d -u $md 2>/dev/null