@@ -1090,7 +1090,7 @@ static bool ipf_close(pf_context_t* pf, pf_mac_t* closing_root_gmac) {
1090
1090
}
1091
1091
1092
1092
if (closing_root_gmac != NULL ) {
1093
- memcpy (* closing_root_gmac , pf -> file_metadata . plain_part . metadata_gmac , sizeof (pf_mac_t ));
1093
+ memcpy (* closing_root_gmac , pf -> metadata_node . plaintext_part . metadata_mac , sizeof (pf_mac_t ));
1094
1094
}
1095
1095
1096
1096
// omeg: fs close is done by Gramine handler
@@ -1138,7 +1138,7 @@ pf_status_t pf_open(pf_handle_t handle, const char* path, uint64_t underlying_si
1138
1138
pf_status_t status ;
1139
1139
* context = ipf_open (path , mode , create , handle , underlying_size , key , & status );
1140
1140
if ((* context != NULL ) && (opening_root_gmac != NULL )) {
1141
- memcpy (* opening_root_gmac , (* context )-> file_metadata . plain_part . metadata_gmac ,
1141
+ memcpy (* opening_root_gmac , (* context )-> metadata_node . plaintext_part . metadata_mac ,
1142
1142
sizeof (pf_mac_t ));
1143
1143
}
1144
1144
return status ;
@@ -1234,7 +1234,7 @@ pf_status_t pf_rename(pf_context_t* pf, const char* new_path, pf_mac_t* new_root
1234
1234
if (!ipf_internal_flush (pf ))
1235
1235
return pf -> last_error ;
1236
1236
if (new_root_gmac != NULL ) {
1237
- memcpy (* new_root_gmac , pf -> file_metadata . plain_part . metadata_gmac , sizeof (pf_mac_t ));
1237
+ memcpy (* new_root_gmac , pf -> metadata_node . plaintext_part . metadata_mac , sizeof (pf_mac_t ));
1238
1238
}
1239
1239
1240
1240
return PF_STATUS_SUCCESS ;
0 commit comments