repart: fix invalid errno in log
Signed-off-by: zhaoxiaohu <zhaoxiaohu@kuaishou.com>
This commit is contained in:
parent
6d06f252b3
commit
72d8bbac3e
34
backport-repart-fix-invalid-errno-in-log.patch
Normal file
34
backport-repart-fix-invalid-errno-in-log.patch
Normal file
@ -0,0 +1,34 @@
|
||||
From 1a1c880e6f5d907a2e8361ca9b3d486450293581 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
||||
Date: Mon, 6 Feb 2023 10:00:50 +0100
|
||||
Subject: [PATCH] repart: fix invalid errno in log
|
||||
|
||||
(cherry picked from commit 375ffdba43f6dac5f4b1222d4e345f7cdf868f8c)
|
||||
(cherry picked from commit 31b7785814fa9e82a1d48e4b5a6b1f6df1110b03)
|
||||
(cherry picked from commit 828e73a7bb17cf8ec4a0f90004a878fcc839add5)
|
||||
(cherry picked from commit 53be27c44b0e5f6a763ac60108325e5a41864857)
|
||||
|
||||
Reference: https://github.com/systemd/systemd-stable/pull/259/commits/1a1c880e6f5d907a2e8361ca9b3d486450293581
|
||||
|
||||
Signed-off-by: zhaoxiaohu <zhaoxiaohu@kuaishou.com>
|
||||
Signed-off-by: yuwang <yuwang@kuaishou.com>
|
||||
---
|
||||
src/partition/repart.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/partition/repart.c b/src/partition/repart.c
|
||||
index 9f0fe9e..36865ac 100644
|
||||
--- a/src/partition/repart.c
|
||||
+++ b/src/partition/repart.c
|
||||
@@ -3901,7 +3901,7 @@ static int resolve_copy_blocks_auto(
|
||||
continue;
|
||||
}
|
||||
if (major(sl) == 0) {
|
||||
- log_debug_errno(r, "Device backing %s is special, ignoring: %m", q);
|
||||
+ log_debug("Device backing %s is special, ignoring.", q);
|
||||
continue;
|
||||
}
|
||||
|
||||
--
|
||||
2.33.0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user