Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5588742rwd; Mon, 12 Jun 2023 07:09:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ76H4h742h89O84XlFsfiI6ybgIt4Pu6lcV5+qt05o2jaqZtk2SKRAJI5dA6zJOxLQW/LGH X-Received: by 2002:a17:907:25ca:b0:94e:4489:f24d with SMTP id ae10-20020a17090725ca00b0094e4489f24dmr8273451ejc.61.1686578975707; Mon, 12 Jun 2023 07:09:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686578975; cv=none; d=google.com; s=arc-20160816; b=vsfRrTGvpuCALNDtIbbXLJdmGHYqbf1qAaGD7mm87j1zs8k6iNJs37zWMGpjPgfle1 TeEboYjyTIRAUJU8VGBCOitbh8qwAm2yBXcev9sgyRnnssxiePOZaviYhJyTwUQ4x6RG XT0Pp6i6BuHV9LUmH8Vn+cvD5sdHxMYtlgQLBbX9+u+HjjpNmvj49T8VxbY4qt/wLd0f Irj5TJn/cp6A84KOvRyCso/jvYLE823hYb8MgIs+jWq1cBUZk8Bzc2rqaeOyOaqeYS59 2mGU/6CaHisuKrrN3SAtPIsWZv/XZDuA7TqEAHE2UD7BJn0SwLZn7KJLqgLnxfHT/07Y ye9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eEtat5a3MMNeh43h2xdMlC3WmW17Blxcz/l7KSWKamY=; b=Lqz53/vNV9v29J7Vs/WXXuQg5uvFNkSQtHJfv2/PRXloiUwn12jYbHACQks7ivz+GP PDm19Sr2BmYHojokrg4LbrDUYiErWwlMhdlo+m3Ybd+JFn0Fv4eHbcDHfwi+gNo8b6Hp vh6BvX89efL4WJjoWjK4+i/vndrh1c36KY377NJXN/1AuyHaVJ4+42sj9KaWDLRcdvE0 M+2soSiKApnKYy3Hh9Q7sDEW4oY9IDAQwxYBdMfWrDCmmuQ4+RJbKed5qfy3+OFujk/L tokWdBNX5qtHxp4m+vUb4zakIfBg6EG4tjaMgZakpl5UqYmQX9ovAkscPGBNNAB4dk4o QTDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@veeam.com header.s=mx1-2022 header.b=LB7L2q5R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=veeam.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m2-20020a170906848200b0096f441389d3si4859575ejx.659.2023.06.12.07.09.09; Mon, 12 Jun 2023 07:09:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@veeam.com header.s=mx1-2022 header.b=LB7L2q5R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=veeam.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237327AbjFLN4n (ORCPT + 99 others); Mon, 12 Jun 2023 09:56:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236142AbjFLNz6 (ORCPT ); Mon, 12 Jun 2023 09:55:58 -0400 Received: from mx1.veeam.com (mx1.veeam.com [216.253.77.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C1221739; Mon, 12 Jun 2023 06:55:35 -0700 (PDT) Received: from mail.veeam.com (prgmbx01.amust.local [172.24.128.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.veeam.com (Postfix) with ESMTPS id AEC33424F8; Mon, 12 Jun 2023 09:55:32 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=veeam.com; s=mx1-2022; t=1686578132; bh=eEtat5a3MMNeh43h2xdMlC3WmW17Blxcz/l7KSWKamY=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=LB7L2q5RFq72yVKa3GNgJ94oqke7NX9Se3ItUgHBujEC4gpbjtkQGa1byv2AAAtYW P7QDTVUyINYbm/tIOu3cbPO5msogpi3hgdjTiF5b2P2TL962dfDlsk5moOolVjlCNy KQTI7Yg52ADl13QGlKYiQOY7A+ij1HOPWYBBCZ32JQNRWjL01NbiyAA57ShI0aRVEf jBFPNmo90OjkenOU4+2njDf7EVLX64cxlM2AjIuxcFAgT8n9GaR9FsTj96m83hv4Sr Q7f3Ah2h5ld3ifVD5rC1kjmV5Yy1VeHLHtr0ByIHsD0oSvGSedC5x4vcDvz+UX5CxD BEQSi5bdvH6nQ== Received: from ssh-deb10-ssd-vb.amust.local (172.24.10.107) by prgmbx01.amust.local (172.24.128.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 12 Jun 2023 15:55:31 +0200 From: Sergei Shtepa To: , , , CC: , , , , , , , , , , , , Subject: [PATCH v5 11/11] blksnap: Kconfig and Makefile Date: Mon, 12 Jun 2023 15:52:28 +0200 Message-ID: <20230612135228.10702-12-sergei.shtepa@veeam.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230612135228.10702-1-sergei.shtepa@veeam.com> References: <20230612135228.10702-1-sergei.shtepa@veeam.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.24.10.107] X-ClientProxiedBy: prgmbx02.amust.local (172.24.128.103) To prgmbx01.amust.local (172.24.128.102) X-EsetResult: clean, is OK X-EsetId: 37303A29240315546D776B X-Veeam-MMEX: True X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allows to build a module and add the blksnap to the kernel tree. Co-developed-by: Christoph Hellwig Signed-off-by: Christoph Hellwig Signed-off-by: Sergei Shtepa --- drivers/block/Kconfig | 2 ++ drivers/block/Makefile | 2 ++ drivers/block/blksnap/Kconfig | 12 ++++++++++++ drivers/block/blksnap/Makefile | 15 +++++++++++++++ 4 files changed, 31 insertions(+) create mode 100644 drivers/block/blksnap/Kconfig create mode 100644 drivers/block/blksnap/Makefile diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index 5b9d4aaebb81..74d2d55526a3 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig @@ -404,4 +404,6 @@ config BLKDEV_UBLK_LEGACY_OPCODES source "drivers/block/rnbd/Kconfig" +source "drivers/block/blksnap/Kconfig" + endif # BLK_DEV diff --git a/drivers/block/Makefile b/drivers/block/Makefile index 101612cba303..9a2a9a56a247 100644 --- a/drivers/block/Makefile +++ b/drivers/block/Makefile @@ -40,3 +40,5 @@ obj-$(CONFIG_BLK_DEV_NULL_BLK) += null_blk/ obj-$(CONFIG_BLK_DEV_UBLK) += ublk_drv.o swim_mod-y := swim.o swim_asm.o + +obj-$(CONFIG_BLKSNAP) += blksnap/ diff --git a/drivers/block/blksnap/Kconfig b/drivers/block/blksnap/Kconfig new file mode 100644 index 000000000000..14081359847b --- /dev/null +++ b/drivers/block/blksnap/Kconfig @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Block device snapshot module configuration +# + +config BLKSNAP + tristate "Block Devices Snapshots Module (blksnap)" + help + Allow to create snapshots and track block changes for block devices. + Designed for creating backups for simple block devices. Snapshots are + temporary and are released then backup is completed. Change block + tracking allows to create incremental or differential backups. diff --git a/drivers/block/blksnap/Makefile b/drivers/block/blksnap/Makefile new file mode 100644 index 000000000000..8d528b95579a --- /dev/null +++ b/drivers/block/blksnap/Makefile @@ -0,0 +1,15 @@ +# SPDX-License-Identifier: GPL-2.0 + +blksnap-y := \ + cbt_map.o \ + chunk.o \ + diff_area.o \ + diff_buffer.o \ + diff_storage.o \ + event_queue.o \ + main.o \ + snapimage.o \ + snapshot.o \ + tracker.o + +obj-$(CONFIG_BLKSNAP) += blksnap.o -- 2.20.1