Skip to content

Commit 977e999

Browse files
committed
fixup! [LibOS] Make handling of corruption more consistent (WIP)
Signed-off-by: g2flyer <[email protected]>
1 parent 62543cd commit 977e999

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

libos/src/fs/libos_fs_encrypted.c

+3-4
Original file line numberDiff line numberDiff line change
@@ -365,15 +365,14 @@ static int encrypted_file_internal_open(struct libos_encrypted_file* enc, PAL_HA
365365
norm_path = NULL; /* to prevent freeing it */
366366
HASH_ADD_KEYPTR(hh, enc->volume->files_state_map, file_state->norm_path,
367367
strlen(file_state->norm_path), file_state);
368-
log_debug(
369-
"updated file protection map with file '%s', state '%s' and MAC=" MAC_PRINTF_PATTERN,
370-
file_state->norm_path, file_state_to_string(file_state->state),
371-
MAC_PRINTF_ARGS(file_state->last_seen_root_mac));
372368
}
373369
/* we do below unconditionally as we might recreate a deleted file or overwrite an existing
374370
* one */
375371
memcpy(file_state->last_seen_root_mac, opening_root_mac, sizeof(pf_mac_t));
376372
file_state->state = new_state_in_map;
373+
log_debug("updated file protection map with file '%s', state '%s' and MAC=" MAC_PRINTF_PATTERN,
374+
file_state->norm_path, file_state_to_string(file_state->state),
375+
MAC_PRINTF_ARGS(file_state->last_seen_root_mac));
377376

378377
if (ret == 0) {
379378
enc->pf = pf;

0 commit comments

Comments
 (0)