mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
uuids: return ENOTSUP if could not set UUID for specific fs
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
committed by
Pino Toscano
parent
b04f39bf10
commit
105fa8bf31
@@ -77,11 +77,9 @@ do_set_uuid (const char *device, const char *uuid)
|
||||
else if (STREQ (vfs_type, "btrfs"))
|
||||
r = btrfs_set_uuid (device, uuid);
|
||||
|
||||
else {
|
||||
reply_with_error ("don't know how to set the UUID for '%s' filesystems",
|
||||
else
|
||||
NOT_SUPPORTED(-1, "don't know how to set the UUID for '%s' filesystems",
|
||||
vfs_type);
|
||||
r = -1;
|
||||
}
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user