libguestfs/0041-daemon-parted-Print-field-we-are-extracting-in-error.patch
Richard W.M. Jones 1574b7d34d Add support for nbd+unix:// URIs
resolves: RHEL-33851
2024-04-24 16:15:12 +01:00

25 lines
826 B
Diff

From fad637f859e89a8110c353fe26029de818d369f1 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Thu, 7 Mar 2024 14:17:45 +0000
Subject: [PATCH] daemon: parted: Print field we are extracting in error
message
(cherry picked from commit c8cefa6f0f11dc813e6f881799694da0916e1831)
---
daemon/parted.ml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/daemon/parted.ml b/daemon/parted.ml
index 8280ef32..e0ca7a60 100644
--- a/daemon/parted.ml
+++ b/daemon/parted.ml
@@ -173,7 +173,7 @@ let sgdisk_info_extract_field device partnum field extractor =
commandr ~fold_stdout_on_stderr:true
"sgdisk" [ device; "-i"; string_of_int partnum ] in
if r <> 0 then
- failwithf "sgdisk: %s" err;
+ failwithf "getting %S: sgdisk: %s" field err;
udev_settle ();