From patchwork Thu Nov 14 15:58:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josef Bacik X-Patchwork-Id: 11243955 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 652C214BC for ; Thu, 14 Nov 2019 15:58:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 39202206F0 for ; Thu, 14 Nov 2019 15:58:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=toxicpanda-com.20150623.gappssmtp.com header.i=@toxicpanda-com.20150623.gappssmtp.com header.b="pqLM/VG4" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726516AbfKNP6m (ORCPT ); Thu, 14 Nov 2019 10:58:42 -0500 Received: from mail-qk1-f176.google.com ([209.85.222.176]:34834 "EHLO mail-qk1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726276AbfKNP6m (ORCPT ); Thu, 14 Nov 2019 10:58:42 -0500 Received: by mail-qk1-f176.google.com with SMTP id i19so5411249qki.2 for ; Thu, 14 Nov 2019 07:58:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=szHo+P2PSiz+xMNI9xO5k2lAHGTQwAPwywh7skxacKs=; b=pqLM/VG4r0hbIb49jc0yxf+9VLq2ZGr0dC1byrmvmNIlB1JfJL4+luHiH0qI6lQTlY Aa0+4TWbUO10LOltRbPvZI/aqdfHfxbgrHrrEIAta+CV/PVJpllmkwQoXpX+6F+dCM4E rs4H6NqziKxPL75PCQHx2DsI1e9r3OvlazPv7HtsELoNMdKCVdUrIIFSYzBa3GA038yC 9YYgy8kJUkcyEd1RsegRGb2WuNS4B5Dg+Nv2uTu+5HXi8eZnUnOjN+c1Nq7s3gBSStGw 2/56sgMnEpAwJulumEsmr4OwUsZa+UiUJdVQHzQGCofChOt9X5HQtU4JVIY+GMsGOQcg e2Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=szHo+P2PSiz+xMNI9xO5k2lAHGTQwAPwywh7skxacKs=; b=d27l3Mn39DNfSzgOLzXg4gXQxiHKxxPf3Dy8s0aMLr5t1f3AUAP8JjOuoh+3QyvkF1 5sghpKT53ztl7JaUWuliA3x6SPukU0f4ZVGKbI+Z0uqR+iHAD/JudodVImLUznKbofPJ A3asWpK3L9wxtcklsijtEEmYpxl0EjdJGqZprilpn669AEkiIky4f+PD6fg6SpcvnGAN iOUsgfCLn/yaCDLbhH1oVHzhhYasI8/QxMKWl3o7BQw0k7q8tLutf2yhmxm+FadmAE3l +bVMVTlg8JZxfF9XYf6YhtVPUAFwWJ0GubE4vkaGBsGU8jp1KrTRoCYn+Gq5uylSUdG/ 924A== X-Gm-Message-State: APjAAAVshgoLAOsLlQqtvMLsy2GKpXm/34NRH1PKPD7et1RmGR5hZaEX 83Jgw0iXjrFUqxLwnNolCyq4mGAubkAe+Q== X-Google-Smtp-Source: APXvYqyKnFRan4srSlpE1AZ7le1Vd9FwkPf6fXLl0tHlNV5ilewXQ6gtDC0tCzMmf090rro4v06Apw== X-Received: by 2002:a37:9e05:: with SMTP id h5mr7656911qke.76.1573747119185; Thu, 14 Nov 2019 07:58:39 -0800 (PST) Received: from localhost ([107.15.81.208]) by smtp.gmail.com with ESMTPSA id 7sm2888051qkf.67.2019.11.14.07.58.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2019 07:58:38 -0800 (PST) From: Josef Bacik To: fstests@vger.kernel.org, kernel-team@fb.com, linux-btrfs@vger.kernel.org Subject: [PATCH 0/3] fsstress: add support for btrfs subvol and snapshot ops Date: Thu, 14 Nov 2019 10:58:33 -0500 Message-Id: <20191114155836.3528-1-josef@toxicpanda.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org For btrfs it would be nice to exercise our subvol and snapshot operations with fsstress as well. The set of patches adds this ability. I've added a new file type for subvolumes, and they behave just like directories for all intents and purposes. The bulk of the supporting code needed for this went into the first patch, as well as the code to add the ability to link in libbtrfsutil. The second patch is more straightforward as it just adds the snapshot operation, and the final patch goes through and makes everybody pick either a directory or subvolume for their target file. I've done a bunch of testing with this on btrfs to make sure everything works as expected. I then did a follow up run on xfs to verify I didn't break the non-btrfs case. Thanks, Josef