[ostree/wip/fsync: 10/11] deploy: fsync() kernel/initramfs and bootloader config parent directories



commit b76bd48a70461150bff0953d084aab561172df01
Author: Colin Walters <walters verbum org>
Date:   Tue Apr 8 18:40:33 2014 -0400

    deploy: fsync() kernel/initramfs and bootloader config parent directories
    
    Ensure they've hit disk.

 src/libostree/ostree-sysroot-deploy.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/libostree/ostree-sysroot-deploy.c b/src/libostree/ostree-sysroot-deploy.c
index 2188cde..9efec1a 100644
--- a/src/libostree/ostree-sysroot-deploy.c
+++ b/src/libostree/ostree-sysroot-deploy.c
@@ -965,6 +965,12 @@ install_deployment_kernel (OstreeSysroot   *sysroot,
                                cancellable, error))
       goto out;
 
+  /* Now sync out parent directories */
+  if (!ot_util_fsync_directory (bootcsumdir, cancellable, error))
+    goto out;
+  if (!ot_util_fsync_directory (bootconfpath_parent, cancellable, error))
+    goto out;
+
   ret = TRUE;
  out:
   return ret;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]