2017-06-16 01:07:31 +00:00
|
|
|
From faad6b96560cc1c7c7e816299e56b3a1ea7098e0 Mon Sep 17 00:00:00 2001
|
2014-04-23 00:34:32 +00:00
|
|
|
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
2014-09-14 01:18:51 +00:00
|
|
|
Date: Sat, 13 Sep 2014 18:58:16 -0600
|
2016-03-12 03:16:56 +00:00
|
|
|
Subject: [PATCH 1/3] Sychronize filesystem
|
2014-04-23 00:34:32 +00:00
|
|
|
|
|
|
|
Since many problems arise from improper flushing of the filesystem,
|
|
|
|
particularly package installations followed by a reboot very shorly after,
|
|
|
|
this will perform a sync() after installations and removals to ensure a
|
|
|
|
consistent filesystem state after package operations.
|
|
|
|
|
|
|
|
Signed-off-by: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
---
|
2014-09-14 01:18:51 +00:00
|
|
|
lib/libalpm/trans.c | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
2014-04-23 00:34:32 +00:00
|
|
|
|
2014-09-14 01:18:51 +00:00
|
|
|
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c
|
2017-06-16 01:07:31 +00:00
|
|
|
index 13984707..82835ee5 100644
|
2014-09-14 01:18:51 +00:00
|
|
|
--- a/lib/libalpm/trans.c
|
|
|
|
+++ b/lib/libalpm/trans.c
|
2016-02-01 13:19:58 +00:00
|
|
|
@@ -230,6 +230,9 @@ int SYMEXPORT alpm_trans_commit(alpm_handle_t *handle, alpm_list_t **data)
|
2014-04-23 00:34:32 +00:00
|
|
|
|
2014-09-14 01:18:51 +00:00
|
|
|
trans->state = STATE_COMMITED;
|
2014-04-23 00:34:32 +00:00
|
|
|
|
2014-09-14 01:18:51 +00:00
|
|
|
+ _alpm_log(handle, ALPM_LOG_DEBUG, "synchronizing filesystem\n");
|
2014-04-23 00:34:32 +00:00
|
|
|
+ sync();
|
|
|
|
+
|
2014-09-14 01:18:51 +00:00
|
|
|
return 0;
|
2014-04-23 00:34:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
--
|
2017-06-16 01:07:31 +00:00
|
|
|
2.13.1
|
2014-04-23 00:34:32 +00:00
|
|
|
|