[Pkg-libvirt-commits] [libguestfs] 20/384: uuid: cannot change btrfs filesystem's UUID
Hilko Bengen
bengen at moszumanska.debian.org
Sun Mar 29 16:55:08 UTC 2015
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch experimental
in repository libguestfs.
commit 45266e3d49d347d596dd92c5542ffd6fad2c8fd5
Author: Hu Tao <hutao at cn.fujitsu.com>
Date: Fri Nov 28 15:58:06 2014 +0800
uuid: cannot change btrfs filesystem's UUID
Signed-off-by: Hu Tao <hutao at cn.fujitsu.com>
---
daemon/uuids.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/daemon/uuids.c b/daemon/uuids.c
index 431d867..06b33e9 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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list