From 900c085f216cd11eb1249fe7b657089a1f0d09a4 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 31 May 2016 11:27:19 -0400 Subject: [PATCH] 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 --- src/libostree/ostree-repo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c index 2332d2bb..0d7ba116 100644 --- a/src/libostree/ostree-repo.c +++ b/src/libostree/ostree-repo.c @@ -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);