Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1994760rwd; Fri, 9 Jun 2023 05:22:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4HmWDZp3O12428bRqybvtq2W+qKi2pduslqudyP1h+GwD+T6tOCjkoi+trNNOT5QMO/LzQ X-Received: by 2002:a17:902:e9d5:b0:1ae:4dda:c2e with SMTP id 21-20020a170902e9d500b001ae4dda0c2emr5079181plk.13.1686313351350; Fri, 09 Jun 2023 05:22:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686313351; cv=none; d=google.com; s=arc-20160816; b=v+mQ9tcpgkrbXSxNxkuBK5sMiG0eR432r6GZwMZqxAS92MP8BCgnxOGsfZmFw0TI7o PJeF4jQ4qqQkugwrAPTUEtakim8ibMNZCXerFWfkkO0SUSf1k1+3ZLERWqrVRO+cHxYv p1/PZcCCoCpun92LuZOn745fDHmqpJ6itQ/tHnys6IBJB3eZE+njAeDDII+jg963XEau yTguF71BeQEpscPT8cyBfT+JhrQq0L7ssIjS9skuy6WJWStJigRvv9E12bboz4xSwWC+ 5zQVHjSnT5G167Wahg5qnPhYK1mG8zZfD5vjnB78TUSAsVRbsSY8R2VxTjQ6s+XuhwYJ Z8/g== 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=dqeFozIjfG1IwC/4cG8hnsNpx7ZJWtFyHJBQTdWwstzOM2Rw5hCGNLf9Oq5VpgbSTd DywFpHClYeyb5R3lVy1WahImgEmSOhZh+1lNTfVSZFr5EfwZKr8XsW88WON/hFbGVHDP erQ9KTKNhkgZ1qrCKad152gZ4LbsVs16mFEB3V1yBUaHQWkwPTg/NUf+zqWC3lk2AjL9 QDvxGM0MKqwtHThQ3y3dmf7zqw1dPiSe3SIjE7zIa1vDCb5aIwvp/ZM4DqnOa3kFrTIA J00H1KYcjPS4ulMDofKJ3FYxgnZE3VuEFjrfVPDvEHAliHCoPkGuvFKX1kX3ieXHNBL4 bTxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@veeam.com header.s=mx1-2022 header.b=fSCf4EZ5; 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 l15-20020a170903120f00b001aaed82c2afsi2739683plh.171.2023.06.09.05.22.17; Fri, 09 Jun 2023 05:22:31 -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=fSCf4EZ5; 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 S240221AbjFIMQ4 (ORCPT + 99 others); Fri, 9 Jun 2023 08:16:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237994AbjFIMQy (ORCPT ); Fri, 9 Jun 2023 08:16:54 -0400 Received: from mx1.veeam.com (mx1.veeam.com [216.253.77.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 353921A2; Fri, 9 Jun 2023 05:16:51 -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 DF7664250A; Fri, 9 Jun 2023 08:09:04 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=veeam.com; s=mx1-2022; t=1686312545; bh=eEtat5a3MMNeh43h2xdMlC3WmW17Blxcz/l7KSWKamY=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=fSCf4EZ53FZMFehcTV3p9rcqoLggd8vuJta+Q3cNL/2kVGFlRvxveTvhADWW8Za5B khmbGzyUDwbRhgJ19szYUDv7Wt85jm8yitxUZ59WZFkBRtfE9jnj6kV6yga5I/Wwe+ O5lef1lJMu/JZCltitPO8HuS9ZQQOfypNulznt0uu+ccCwpzXaKg+XzFnu1LJFDezk 1tKxfVC8wOjnebfdDDT0HKQamifpHLmPFuf5XK3aeuyYEQyk32TjDsI2X1DdDRoCRR mSaxiwMH5fbHrZE+SpiMt70Y5t4VTHM1XuCxt5RPygjJmp9lJzTQ0QEkhlqq9MJhHr TWaCJ8Qpj63vw== 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; Fri, 9 Jun 2023 14:09:03 +0200 From: Sergei Shtepa To: , , , CC: , , , , , , , , , , , , Subject: [PATCH v4 11/11] blksnap: Kconfig and Makefile Date: Fri, 9 Jun 2023 13:58:58 +0200 Message-ID: <20230609115858.4737-11-sergei.shtepa@veeam.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230609115858.4737-1-sergei.shtepa@veeam.com> References: <20230609115858.4737-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: 37303A2924031554627C6B 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,URIBL_BLOCKED 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