libglnx porting: Port away from gs_file_map_noatime()

The "no atime" thing was mostly useful only before "relative atime"
updates landed.  Users who care about performance will turn it off
entirely anyways.

Closes: #316
Approved by: jlebon
This commit is contained in:
Colin Walters 2016-05-31 11:27:19 -04:00 committed by Atomic Bot
parent c148631a98
commit 900c085f21

View File

@ -4459,7 +4459,7 @@ sign_data (OstreeRepo *self,
if (!g_output_stream_close (tmp_signature_output, cancellable, error))
goto out;
signature_file = gs_file_map_noatime (tmp_signature_file, cancellable, error);
signature_file = g_mapped_file_new (gs_file_get_path_cached (tmp_signature_file), FALSE, error);
if (!signature_file)
goto out;
ret_signature = g_mapped_file_get_bytes (signature_file);