Lines Matching refs:file
50 local file=$efivarfs_mount/$FUNCNAME-$test_guid
52 printf "$attrs\x00" > $file
54 if [ ! -e $file ]; then
55 echo "$file couldn't be created" >&2
59 if [ $(stat -c %s $file) -ne 5 ]; then
60 echo "$file has invalid size" >&2
67 local file=$efivarfs_mount/$FUNCNAME-$test_guid
69 : > $file
71 if [ ! -e $file ]; then
72 echo "$file can not be created without writing" >&2
79 local file=$efivarfs_mount/$FUNCNAME-$test_guid
80 ./create-read $file
86 local file=$efivarfs_mount/$FUNCNAME-$test_guid
88 printf "$attrs\x00" > $file
90 if [ ! -e $file ]; then
91 echo "$file couldn't be created" >&2
95 rm $file 2>/dev/null
97 chattr -i $file
98 rm $file
101 if [ -e $file ]; then
102 echo "$file couldn't be deleted" >&2
113 local file=$efivarfs_mount/$FUNCNAME-$test_guid
115 printf "$attrs\x00" > $file
117 if [ ! -e $file ]; then
118 echo "$file does not exist" >&2
122 chattr -i $file
123 printf "$attrs" > $file
125 if [ -e $file ]; then
126 echo "$file should have been deleted" >&2
133 local file=$efivarfs_mount/$FUNCNAME-$test_guid
134 ./open-unlink $file
145 local file=$efivarfs_mount/$f-$test_guid
147 printf "$attrs\x00" > $file
149 if [ ! -e $file ]; then
150 echo "$file could not be created" >&2
153 rm $file 2>/dev/null
155 chattr -i $file
156 rm $file
184 local file=$efivarfs_mount/$f
186 printf "$attrs\x00" 2>/dev/null > $file
188 if [ -e $file ]; then
189 echo "Creating $file should have failed" >&2
190 rm $file 2>/dev/null
192 chattr -i $file
193 rm $file