Displaying 1 result from an estimated 1 matches for "7b92bf6".
Did you mean:
7b92bf40
2016 Mar 02
1
[PATCH] daemon: do not fail list-disk-labels w/o labels set
...even exists, causing list-disk-labels to fail with
ENOENT. In this situation, act as if the directory was there, but
empty.
---
daemon/devsparts.c | 7 +++++++
generator/actions.ml | 12 ++++++++++++
2 files changed, 19 insertions(+)
diff --git a/daemon/devsparts.c b/daemon/devsparts.c
index 7b92bf6..7c690f8 100644
--- a/daemon/devsparts.c
+++ b/daemon/devsparts.c
@@ -316,6 +316,13 @@ do_list_disk_labels (void)
dir = opendir (GUESTFSDIR);
if (!dir) {
+ if (errno == ENOENT) {
+ /* The directory does not exist, and usually this happens when
+ * there are no labels set. In...