From 45266e3d49d347d596dd92c5542ffd6fad2c8fd5 Mon Sep 17 00:00:00 2001 From: Hu Tao Date: Fri, 28 Nov 2014 15:58:06 +0800 Subject: [PATCH] uuid: cannot change btrfs filesystem's UUID Signed-off-by: Hu Tao --- daemon/uuids.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/daemon/uuids.c b/daemon/uuids.c index 431d867a1..06b33e938 100644 --- a/daemon/uuids.c +++ b/daemon/uuids.c @@ -110,6 +110,11 @@ do_set_uuid (const char *device, const char *uuid) else if (STREQ (vfs_type, "swap")) r = swapuuid (device, uuid); + else if (STREQ (vfs_type, "btrfs")) { + reply_with_error ("btrfs filesystems' UUID cannot be changed"); + r = -1; + } + else { reply_with_error ("don't know how to set the UUID for '%s' filesystems", vfs_type);