uuid: cannot change btrfs filesystem's UUID

Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
This commit is contained in:
Hu Tao
2014-11-28 15:58:06 +08:00
committed by Richard W.M. Jones
parent 95644f33cd
commit 45266e3d49

View File

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