Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1168905rwd; Tue, 13 Jun 2023 05:57:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ78JR5mbeVJhzUlioL6cBuLYd4qRBiapEP0V5fH3FFmo2VLE7Gy/9VW354sNNZdXV56BHj2 X-Received: by 2002:a05:6a00:134f:b0:651:3e9d:2a05 with SMTP id k15-20020a056a00134f00b006513e9d2a05mr14037289pfu.19.1686661075793; Tue, 13 Jun 2023 05:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686661075; cv=none; d=google.com; s=arc-20160816; b=cAQ9GvZZCFR4MrI61rkOacFqHPQ4Pj3EjtO5n1UlBI1o/FbXfjjoda+P8zE3QK6A+D pSTLmUrr/TJeG7HYYdgBN+5DX+FIphPW+tPAdcmp3lk05biX+EKHbCp7XaUG0lOsQ++X AiwtrVTDUG0mrvxa+RUWzREIkvaeVexFs3mMK36XwP8TRrG6Z4Nv11eE4asISADt/zoe gzktcOexeIZIFwTVDLwgNw+vi+2Jy+CfOqD78mLydCv6+NKMER6uKVtjb8uWX19TxlMy neOz51hiH4pVWn7lwMvqWKG1FDBmFZtYc3uR55KmiMQqOD//aDJpe9uJQCR0FJ0gkrKP DP/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=4oNmRkLesBC9RjRkU4eqkCoLnWTFT9D5was/erYZ+04=; b=KjX9aa6ZOmSNztu8AR3Jllh9FQ53dGgU3xYU2WEXpGiaSQ8C5ZAQb3TAp5I/za4gwU pu1yhk6su20M0TTXN0YnFAYcQkUeopGaMrBPb9NxZCQXFLv0G2ca7LWUZvJL2P0K7hHg cUsQomhfvT5OhrmHS5ROq4Bain+uOwiz0EMl2HF/IDjr2Smr+ed3Pycn8G0tI+DMD2mJ tKgJlYrOAEhPZW6ka8Un4AhByx+H7x1QVQgL5+ZiRBe1gKRl5GPWCd5utQbsCms2hvL4 eQL4OWUlssLirzpXM8HCFOjZH0oUf6EczmTyz2MrQj4+GOY6ay6EQPZyTmm0EsB6awq7 LPPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@veeam.com header.s=mx4-2022 header.b=Y2GAhHPF; 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 h5-20020aa79f45000000b0065cb0204891si8599710pfr.82.2023.06.13.05.57.44; Tue, 13 Jun 2023 05:57:55 -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=mx4-2022 header.b=Y2GAhHPF; 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 S242040AbjFMMfO (ORCPT + 99 others); Tue, 13 Jun 2023 08:35:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242537AbjFMMfK (ORCPT ); Tue, 13 Jun 2023 08:35:10 -0400 Received: from mx4.veeam.com (mx4.veeam.com [104.41.138.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93B3BE7A; Tue, 13 Jun 2023 05:35:08 -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 mx4.veeam.com (Postfix) with ESMTPS id E09391B72E; Tue, 13 Jun 2023 15:35:06 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=veeam.com; s=mx4-2022; t=1686659707; bh=4oNmRkLesBC9RjRkU4eqkCoLnWTFT9D5was/erYZ+04=; h=Date:Subject:To:CC:References:From:In-Reply-To:From; b=Y2GAhHPF7F6Nw9yN00Ft+kqym1xOwxfwE3WOYgZap+Vrl9M3uFULJMehxZEY6JTVo qtADvpKq2vnFKHf/2x2nX8721HIr2mGOw7LDkD2b5zd9vj2Uiue4O1cZ6DU6ZmRMx3 XwwWX+T7jHAREJ2cnO1lyB3vfuOa4iTVqi3RSKK77D4xXAa+oci2I30A8VVgPssEOX xqii/Plgtwdvaw1M6F0xM2ndkWZ1nX3ew8yh83s3Z61saWXiMqkF5WQAevWFLO7MG+ 6YFdjZYux3j4VYnWRAiwWjt0LbnPJUWHi0r5qf0HKB6E0do97YsFIfes+NkLSz16/k pE715DtG5+Oug== Received: from [172.24.10.107] (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; Tue, 13 Jun 2023 14:35:05 +0200 Message-ID: Date: Tue, 13 Jun 2023 14:34:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH v4 02/11] block: Block Device Filtering Mechanism Content-Language: en-US To: Randy Dunlap , , , , CC: , , , , , , , , , , , , "Donald Buczek" References: <20230609115858.4737-1-sergei.shtepa@veeam.com> <20230609115858.4737-2-sergei.shtepa@veeam.com> From: Sergei Shtepa In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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: 37303A29240315546D7163 X-Veeam-MMEX: True X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 On 6/13/23 03:51, Randy Dunlap wrote: > > On 6/9/23 04:58, Sergei Shtepa wrote: >> diff --git a/include/uapi/linux/fs.h b/include/uapi/linux/fs.h >> index b7b56871029c..7904f157b245 100644 >> --- a/include/uapi/linux/fs.h >> +++ b/include/uapi/linux/fs.h >> @@ -189,6 +189,9 @@ struct fsxattr { >> * A jump here: 130-136 are reserved for zoned block devices >> * (see uapi/linux/blkzoned.h) >> */ >> +#define BLKFILTER_ATTACH _IOWR(0x12, 140, struct blkfilter_name) >> +#define BLKFILTER_DETACH _IOWR(0x12, 141, struct blkfilter_name) >> +#define BLKFILTER_CTL _IOWR(0x12, 142, struct blkfilter_ctl) > > Please update Documentation/userspace-api/ioctl/ioctl-number.rst > with the blkfilter ioctl number usage. It seems to me that there is no need to change anything in the table of numbers for 'blkfilter'. I think the existing record is enough: 0x10 20-2F arch/s390/include/uapi/asm/hypfs.h 0x12 all linux/fs.h linux/blkpg.h Maybe it would probably be correct to specify the file 'uapi/linux/fs.h'? And maybe we need to specify the request numbers for blksnap? add ioctls numbers for blksnap Asked-by: Randy Dunlap Signed-off-by: Sergei Shtepa --- Documentation/userspace-api/ioctl/ioctl-number.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/userspace-api/ioctl/ioctl-number.rst b/Documentation/userspace-api/ioctl/ioctl-number.rst index 176e8fc3f31b..96af64988251 100644 --- a/Documentation/userspace-api/ioctl/ioctl-number.rst +++ b/Documentation/userspace-api/ioctl/ioctl-number.rst @@ -202,6 +202,7 @@ Code Seq# Include File Comments 'V' C0 linux/ivtvfb.h conflict! 'V' C0 linux/ivtv.h conflict! 'V' C0 media/si4713.h conflict! +'V' 00-1F uapi/linux/blksnap.h conflict! 'W' 00-1F linux/watchdog.h conflict! 'W' 00-1F linux/wanrouter.h conflict! (pre 3.9) 'W' 00-3F sound/asound.h conflict! -- 2.20.1