[Libguestfs] [PATCH 5/5] labels: return ENOTSUP if could not set label for specific fs
Chen Hanxiao
chenhanxiao at cn.fujitsu.com
Wed Jul 8 03:07:51 UTC 2015
Signed-off-by: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
---
daemon/labels.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/daemon/labels.c b/daemon/labels.c
index 92d339c..a1a2f3b 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;
}
--
2.1.0
More information about the Libguestfs
mailing list