Signed-off-by: Chen Hanxiao <chenhanxiao(a)cn.fujitsu.com>
---
daemon/labels.c | 6 ++----
generator/actions.ml | 4 ++++
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/daemon/labels.c b/daemon/labels.c
index 57c6e93..130f1db 100644
--- a/daemon/labels.c
+++ b/daemon/labels.c
@@ -85,11 +85,9 @@ do_set_label (const mountable_t *mountable, const char *label)
else if (STREQ (vfs_type, "xfs"))
r = xfslabel (mountable->device, label);
- else {
- reply_with_error ("don't know how to set the label for '%s'
filesystems",
+ else
+ NOT_SUPPORTED(-1, "don't know how to set the label for '%s'
filesystems",
vfs_type);
- r = -1;
- }
return r;
}
diff --git a/generator/actions.ml b/generator/actions.ml
index 8136d7b..24bcae5 100644
--- a/generator/actions.ml
+++ b/generator/actions.ml
@@ -9947,6 +9947,10 @@ The label is limited to 11 bytes.
=back
+If there is no support for changing the UUID
+for the type of the specified filesystem,
+set_label will fail and set errno as ENOTSUP.
+
To read the label on a filesystem, call C<guestfs_vfs_label>." };
{ defaults with
--
2.1.0