From b4efe05b699b23ecf8edb278f143c78bdd2f1ae4 Mon Sep 17 00:00:00 2001 From: Stefan Behrens Date: Tue, 9 Apr 2013 19:08:42 +0200 Subject: [PATCH] Btrfs-progs: Fix that BTRFS_FSID_SIZE is used instead of BTRFS_UUID_SIZE Both are 16 but it's wrong anyway to use FSID_SIZE for UUIDs. Signed-off-by: Stefan Behrens --- cmds-receive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds-receive.c b/cmds-receive.c index 90e26d25..1cf0da2f 100644 --- a/cmds-receive.c +++ b/cmds-receive.c @@ -566,7 +566,7 @@ static int process_clone(const char *path, u64 offset, u64 len, subvol_search_by_received_uuid); if (!si) { if (memcmp(clone_uuid, r->cur_subvol->received_uuid, - BTRFS_FSID_SIZE) == 0) { + BTRFS_UUID_SIZE) == 0) { /* TODO check generation of extent */ subvol_path = strdup(r->cur_subvol->path); } else {