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:
Chen Hanxiao
2015-07-06 13:34:06 +08:00
committed by Pino Toscano
parent b04f39bf10
commit 105fa8bf31
2 changed files with 5 additions and 4 deletions

View File

@@ -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;
}