[ostree] deploy: fsync() kernel/initramfs and bootloader config parent directories
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] deploy: fsync() kernel/initramfs and bootloader config parent directories
- Date: Fri, 11 Apr 2014 22:45:35 +0000 (UTC)
commit b423d9e9cfff2578baa098c757f7ec674a3226cb
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 889342a..96441cf 100644
--- a/src/libostree/ostree-sysroot-deploy.c
+++ b/src/libostree/ostree-sysroot-deploy.c
@@ -964,6 +964,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]