代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/lvm2 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 53db5959233fb8977ff6c9cc0fc743239704f7e9 Mon Sep 17 00:00:00 2001
From: wangjufeng <wangjufeng@huawei.com>
Date: Sat, 16 Nov 2019 15:09:56 +0800
Subject: [PATCH] syslog more when use libdevmapper.so
When docker use function of libdevmapper.so, it don't log to syslog.
This patch make it also log to syslog.
Signed-off-by: wangjufeng<wangjufeng@huawei.com>
---
libdm/libdm-common.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/libdm/libdm-common.c b/libdm/libdm-common.c
index 0b03106..2fd8783 100644
--- a/libdm/libdm-common.c
+++ b/libdm/libdm-common.c
@@ -132,6 +132,7 @@ static void _default_log_line(int level, const char *file,
fprintf(out, "%s:%d ", file, line);
vfprintf(out, f, ap);
+ vsyslog(level, f, ap);
fputc('\n', out);
}
@@ -2586,11 +2587,15 @@ int dm_udev_complete(uint32_t cookie)
{
int semid;
- if (!cookie || !dm_udev_get_sync_support())
+ if (!cookie || !dm_udev_get_sync_support()) {
+ log_print("Do not wait cookie:0x%x", cookie);
return 1;
+ }
- if (!_get_cookie_sem(cookie, &semid))
+ if (!_get_cookie_sem(cookie, &semid)) {
+ log_error("Could not get cookie 0x%x sem %d", cookie, semid);
return_0;
+ }
if (!_udev_notify_sem_dec(cookie, semid)) {
log_error("Could not signal waiting process using notification "
@@ -2598,7 +2603,7 @@ int dm_udev_complete(uint32_t cookie)
cookie, cookie);
return 0;
}
-
+ log_print("Complete cookie 0x%x success.", cookie);
return 1;
}
--
2.19.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。