Lines Matching full:file

56 	local file=$efivarfs_mount/$FUNCNAME-$test_guid
58 printf "$attrs\x00" > $file
60 if [ ! -e $file ]; then
61 echo "$file couldn't be created" >&2
65 if [ $(stat -c %s $file) -ne 5 ]; then
66 echo "$file has invalid size" >&2
67 file_cleanup $file
70 file_cleanup $file
75 local file=$efivarfs_mount/$FUNCNAME-$test_guid
77 : > $file
79 if [ -e $file ]; then
80 echo "$file can be created without writing" >&2
81 file_cleanup $file
88 local file=$efivarfs_mount/$FUNCNAME-$test_guid
89 ./create-read $file
91 echo "create and read $file failed"
94 if [ -e $file ]; then
95 echo "file still exists and should not"
96 file_cleanup $file
104 local file=$efivarfs_mount/$FUNCNAME-$test_guid
106 printf "$attrs\x00" > $file
108 if [ ! -e $file ]; then
109 echo "$file couldn't be created" >&2
113 file_cleanup $file
115 if [ -e $file ]; then
116 echo "$file couldn't be deleted" >&2
127 local file=$efivarfs_mount/$FUNCNAME-$test_guid
129 printf "$attrs\x00" > $file
131 if [ ! -e $file ]; then
132 echo "$file does not exist" >&2
136 chattr -i $file
137 printf "$attrs" > $file
139 if [ -e $file ]; then
140 echo "$file should have been deleted" >&2
147 local file=$efivarfs_mount/$FUNCNAME-$test_guid
148 ./open-unlink $file
159 local file=$efivarfs_mount/$f-$test_guid
161 printf "$attrs\x00" > $file
163 if [ ! -e $file ]; then
164 echo "$file could not be created" >&2
167 file_cleanup $file
194 local file=$efivarfs_mount/$f
196 printf "$attrs\x00" 2>/dev/null > $file
198 if [ -e $file ]; then
199 echo "Creating $file should have failed" >&2
200 file_cleanup $file
211 local file=$efivarfs_mount/$FUNCNAME-$test_guid
214 printf "$attrs\x00" > $file
215 [ -e $file -a -s $file ] || exit 1
216 chattr -i $file
217 : > $file
219 echo "variable file failed to accept truncation"
221 elif [ -e $file -a ! -s $file ]; then
222 echo "file can be truncated to zero size"
225 rm $file || exit 1
288 # zero length file should exist
302 # file should go on last close