aboutsummaryrefslogtreecommitdiffstats
path: root/cmds-receive.c
diff options
context:
space:
mode:
authorStefan Behrens <sbehrens@giantdisaster.de>2013-04-09 19:08:42 +0200
committerDavid Sterba <dsterba@suse.cz>2013-04-23 18:56:24 +0200
commitb4efe05b699b23ecf8edb278f143c78bdd2f1ae4 (patch)
treeb1204298cea4100f89fee6b2e2ab849006653d93 /cmds-receive.c
parent7c04a4444e5cec0691cb91660011fb614ddace94 (diff)
downloadbtrfs-progs-b4efe05b699b23ecf8edb278f143c78bdd2f1ae4.tar.gz
btrfs-progs-b4efe05b699b23ecf8edb278f143c78bdd2f1ae4.tar.xz
btrfs-progs-b4efe05b699b23ecf8edb278f143c78bdd2f1ae4.zip
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 <sbehrens@giantdisaster.de>
Diffstat (limited to 'cmds-receive.c')
-rw-r--r--cmds-receive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-receive.c b/cmds-receive.c
index 90e26d2..1cf0da2 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 {