From patchwork Wed Mar 11 08:17:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Omar Sandoval X-Patchwork-Id: 11431025 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DE0D614B7 for ; Wed, 11 Mar 2020 08:17:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BDC0E20873 for ; Wed, 11 Mar 2020 08:17:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=osandov-com.20150623.gappssmtp.com header.i=@osandov-com.20150623.gappssmtp.com header.b="opAl3TBU" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728242AbgCKIR0 (ORCPT ); Wed, 11 Mar 2020 04:17:26 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:45176 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726097AbgCKIRZ (ORCPT ); Wed, 11 Mar 2020 04:17:25 -0400 Received: by mail-pg1-f193.google.com with SMTP id m15so748360pgv.12 for ; Wed, 11 Mar 2020 01:17:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osandov-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MuzmrD0c0ZFm46FLr9vaZUDaWwP5NimKdT1tayynHds=; b=opAl3TBUfQNfp9rHVqSN58uThaRBnPWZsMHBaUO2lK/z8G18jQOhfM5GANh120fSZw 2eDSUNzKJingd4zlq3uAsvnM9nV1/7krArCEicH0g5KakiNytlCxC3r5BY/vsubxCa7S 9atvZNFppsfiXlepPAGhyz4OnFrptR1ajXIEz4OTAsN/gdaeRov/AqiA2Y0FErGiu+0q VMfrjfsBDc/CrVvornV84Qm9JrezN0fHJuzwjxfYS9rE960sKNtiA48DYm1+tkprF++P glg5HmZ3WDhrMpmK+2DcI+AssW9PgQm+evagwJmgXpaA8JkiTxnNuEFErZf+R3CywtGP XsZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MuzmrD0c0ZFm46FLr9vaZUDaWwP5NimKdT1tayynHds=; b=gYLOjp00BuxTYFTLWNHRFO1DRTmnifhKZjWvM2FUgVQBAQPTKCKSb8sKHPkRWfTlzo LvU0qCEhzVKiMury5o34TPBjVVZm4FTAU+ydLqqQ9Iqz5/GKtk3CMvNgwASCk0X36+6r /W3QWu7nnaBSN/RhJoBMeRRoEtiGejFccpzSZoOYOGSN3RwfKKTKB3IYczKseBsYSj0V qE0ZKqCk4HXJ1+XAktStT2MPrXsDZ5pYAYN2zifVSwaQaVhV3tALeleFTjloVeie3E+H pPK4gNK0cyVHxfPkUbHd3GrFL5o0NUSCreZ06GtNdF0laoVgNx0ini+YkpiyHZlzy9uV E3pw== X-Gm-Message-State: ANhLgQ3wG0NKzg4Uk9AG0SsW7APeKeLLHM1NWhmG4sDoxk9J6ICXHBJ3 +/7GtgM5W5Lh7ZF1WJXVXEFNI6Rzwm4= X-Google-Smtp-Source: ADFU+vurtjkBATn6JDz5iEt2TS0gdTPi0hoeWtZMNVawgVj9eM0hCIysYz/lvJrpTetrpKv1b9g6VA== X-Received: by 2002:aa7:8283:: with SMTP id s3mr1729019pfm.106.1583914642405; Wed, 11 Mar 2020 01:17:22 -0700 (PDT) Received: from vader.hsd1.wa.comcast.net ([2601:602:8b80:8e0::14a2]) by smtp.gmail.com with ESMTPSA id j8sm4692039pjb.4.2020.03.11.01.17.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2020 01:17:21 -0700 (PDT) From: Omar Sandoval To: linux-btrfs@vger.kernel.org Cc: kernel-team@fb.com, Filipe Manana Subject: [PATCH RESEND v2 0/3] btrfs-progs: fix clone from wrong subvolume Date: Wed, 11 Mar 2020 01:17:08 -0700 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org From: Omar Sandoval Hi, This is a resend of [1] from last July fixing a bug when the same subvolume is received multiple times. It appears that the series got lost at some point. The only changes from v2 are adding Filipe's reviewed-bys and removing the strdup cleanup patch that was already merged. Based on the devel branch. Thanks! 1: https://lore.kernel.org/linux-btrfs/cover.1563822638.git.osandov@fb.com/ Omar Sandoval (3): btrfs-progs: receive: remove commented out transid checks btrfs-progs: receive: don't lookup clone root for received subvolume btrfs-progs: tests: add test for receiving clone from duplicate subvolume cmds/receive.c | 43 ++++--------------- .../test.sh | 34 +++++++++++++++ 2 files changed, 42 insertions(+), 35 deletions(-) create mode 100755 tests/misc-tests/038-receive-clone-from-current-subvolume/test.sh