Lines Matching +full:local +full:- +full:dir

5 set -e -u
11 debugfs -w "$@" image
22 local len=$1
23 local src=$2
24 local target=$(perl -e 'print "A" x '$len)
25 ln -s $target $src
26 stat -c %i $src
31 local ino=$1
32 local len=$2
34 echo "zap_block -f <$ino> -p $((len%256)) -o 0 -l 1 0"
35 echo "zap_block -f <$ino> -p $((len/256)) -o 1 -l 1 0"
39 local dir=$1
40 local encrypted=${2:-false}
41 local overhead=0
42 local ino
48 mkdir -p $dir
51 ino=$(symlink 1 $dir/empty)
55 symlink 1 $dir/fast_min > /dev/null
57 ino=$(symlink 10 $dir/fast_isize_too_small)
60 ino=$(symlink 10 $dir/fast_isize_too_large)
63 symlink $((59 - overhead)) $dir/fast_max > /dev/null
65 symlink $((60 - overhead)) $dir/slow_min > /dev/null
67 ino=$(symlink 100 $dir/slow_isize_too_small)
70 ino=$(symlink 100 $dir/slow_isize_too_large)
73 symlink $((BLOCKSIZE - 1 - overhead)) $dir/slow_max > /dev/null
75 ino=$(symlink $((BLOCKSIZE - 1 - overhead)) $dir/one_too_long)
77 echo "zap_block -f <$ino> -p 65 0"
79 set_encrypted_symlink_len $ino $((BLOCKSIZE - overhead))
82 ino=$(symlink $((BLOCKSIZE - 1 - overhead)) $dir/too_long)
84 echo "zap_block -f <$ino> -p 65 0"
86 set_encrypted_symlink_len $ino $((BLOCKSIZE + 1000 - overhead))
94 local dir=$1 link
96 mkdir $dir
97 echo | e4crypt add_key $dir
98 create_symlinks $dir true
102 mv $dir ${dir}~encrypted
103 mkdir $dir
104 mv ${dir}~encrypted/* $dir
107 mkdir -p mnt
111 mke2fs -O 'encrypt,^extents,^64bit' -b $BLOCKSIZE -I 256 image
117 do_tune2fs -O extents
121 do_debugfs -R 'feature inline_data'
124 rm -rf debugfs_commands mnt/*~encrypted
127 gzip -9 -f image