Lines Matching refs:file
46 local file=$efivarfs_mount/$FUNCNAME-$test_guid
48 printf "$attrs\x00" > $file
50 if [ ! -e $file ]; then
51 echo "$file couldn't be created" >&2
55 if [ $(stat -c %s $file) -ne 5 ]; then
56 echo "$file has invalid size" >&2
63 local file=$efivarfs_mount/$FUNCNAME-$test_guid
65 : > $file
67 if [ ! -e $file ]; then
68 echo "$file can not be created without writing" >&2
75 local file=$efivarfs_mount/$FUNCNAME-$test_guid
76 ./create-read $file
82 local file=$efivarfs_mount/$FUNCNAME-$test_guid
84 printf "$attrs\x00" > $file
86 if [ ! -e $file ]; then
87 echo "$file couldn't be created" >&2
91 rm $file 2>/dev/null
93 chattr -i $file
94 rm $file
97 if [ -e $file ]; then
98 echo "$file couldn't be deleted" >&2
109 local file=$efivarfs_mount/$FUNCNAME-$test_guid
111 printf "$attrs\x00" > $file
113 if [ ! -e $file ]; then
114 echo "$file does not exist" >&2
118 chattr -i $file
119 printf "$attrs" > $file
121 if [ -e $file ]; then
122 echo "$file should have been deleted" >&2
129 local file=$efivarfs_mount/$FUNCNAME-$test_guid
130 ./open-unlink $file
141 local file=$efivarfs_mount/$f-$test_guid
143 printf "$attrs\x00" > $file
145 if [ ! -e $file ]; then
146 echo "$file could not be created" >&2
149 rm $file 2>/dev/null
151 chattr -i $file
152 rm $file
180 local file=$efivarfs_mount/$f
182 printf "$attrs\x00" 2>/dev/null > $file
184 if [ -e $file ]; then
185 echo "Creating $file should have failed" >&2
186 rm $file 2>/dev/null
188 chattr -i $file
189 rm $file