mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
uuid: cannot change btrfs filesystem's UUID
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
This commit is contained in:
committed by
Richard W.M. Jones
parent
95644f33cd
commit
45266e3d49
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user