Lines Matching refs:filename
42 char filename[kStorageIdLengthMax], in GetFilenameAndSlot()
57 strcpy(filename, kAvbRollbackFilename); in GetFilenameAndSlot()
61 strcat(filename, postfix); in GetFilenameAndSlot()
70 char filename[kStorageIdLengthMax]; in ReadRollbackIndex() local
71 if (GetFilenameAndSlot(request.get_slot(), filename, &slot) < 0) { in ReadRollbackIndex()
77 int rc = storage_->open(filename); in ReadRollbackIndex()
80 TLOGE("Error: failed to open file %s: %d\n", filename, rc); in ReadRollbackIndex()
87 TLOGE("Error: failed to get size of file %s: %d\n", filename, rc); in ReadRollbackIndex()
122 char filename[kStorageIdLengthMax]; in WriteRollbackIndex() local
123 if (GetFilenameAndSlot(request.get_slot(), filename, &slot) < 0) { in WriteRollbackIndex()
129 int rc = storage_->open(filename); in WriteRollbackIndex()
132 TLOGE("Error: failed to open file %s: %d\n", filename, rc); in WriteRollbackIndex()
139 TLOGE("Error: failed to get size of file %s: %d\n", filename, rc); in WriteRollbackIndex()
321 char filename[kStorageIdLengthMax]; in DeleteRollbackIndexFiles() local
326 strcpy(filename, kAvbRollbackFilename); in DeleteRollbackIndexFiles()
328 strcat(filename, postfix); in DeleteRollbackIndexFiles()
329 int storage_rc = storage_->delete_file(filename); in DeleteRollbackIndexFiles()
332 TLOGE("Error: deleting file %s: %d\n", filename, rc); in DeleteRollbackIndexFiles()