Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2098802rwd; Fri, 9 Jun 2023 06:43:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ43J4LS34wfvxpjbBHYid4FoZkRS+S3C7UoD5uHsgGwQ6irHrPGFs6XicJoAdSw82w4cJOc X-Received: by 2002:a05:6a20:428b:b0:111:ee3b:59b1 with SMTP id o11-20020a056a20428b00b00111ee3b59b1mr1155472pzj.2.1686318207663; Fri, 09 Jun 2023 06:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686318207; cv=none; d=google.com; s=arc-20160816; b=QfuI0yXOXVxco6SXnG7EQ0wqALt6e3lM69EOZw1ILSBP4zKuDT7sdycHuw4pRfK1qG NfWCIHYrjoLKyH5O7aOZulSFosHjyvIaUO4XFB6rpQPhXobl+7Lrpd27bM78K64wklt0 wbRZCFrzpnUE5wn3+CcRYXb689f5IrvvTJNy+fvkGCVwJTGtF+4jUoavyCFVltkjFknv 4dDo2CkYUAgvxUWBPcNc2DNG/OomFE0WvupCkGMWa5asdqJLXM2ILZxXXajGAsx6yn0l AztIQ2xDY7cgXuyc0ELeDqms6b8MLvXK7kRnv5hyDTa321HP0R0I7j+XdTgPsPXrYZBR 12gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=W1wwEMziikTkNig5Npj4pJxyrjd8CQUcOC+rElIXW1c=; b=RQueVycYV+laHp8CAuGBhTxB/aGN3XdIfLeT0xJWtE7AlROgrrBacr0zyGASJLpuMx MWu9XyWPgWwq1yk8FOVEAcNuSBplGJ62KZN7jF0w4U3Ukt++KeCZcxL5ABqOKK51ZMd5 YY6gX4YqvtY6rUYASka7lYu+ZX0/PKN9wij4urMejLDng/ewAmAIOXakySSHMcJO8Gxo xT3YjbwwbSGCvpY3pwRqaKTKltrdLh219WUC79M4R12502nkfMHVHsbzJM8B4B8jGHOp aucn0OwnrEoUTiBqOPfy0eVC7jPHjXALbJENlw4MFu2jdt26Cf5qxSehjR34UE4dNXs2 nBKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w16-20020a63af10000000b0050bd71e8618si2497581pge.848.2023.06.09.06.42.58; Fri, 09 Jun 2023 06:43:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240624AbjFINUq (ORCPT + 99 others); Fri, 9 Jun 2023 09:20:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241476AbjFINUh (ORCPT ); Fri, 9 Jun 2023 09:20:37 -0400 X-Greylist: delayed 600 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 09 Jun 2023 06:20:22 PDT Received: from vmicros1.altlinux.org (vmicros1.altlinux.org [194.107.17.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7BF4E3C16; Fri, 9 Jun 2023 06:20:22 -0700 (PDT) Received: from imap.altlinux.org (imap.altlinux.org [194.107.17.38]) by vmicros1.altlinux.org (Postfix) with ESMTP id 62C8672C90B; Fri, 9 Jun 2023 16:03:52 +0300 (MSK) Received: from glebfm.altlinux.org (flight.tilaa.cloud [84.22.108.118]) by imap.altlinux.org (Postfix) with ESMTPSA id 020EB36D070B; Fri, 9 Jun 2023 16:03:51 +0300 (MSK) Date: Fri, 9 Jun 2023 13:03:39 +0000 From: Gleb Fotengauer-Malinovskiy To: Josh Triplett Cc: Theodore Ts'o , Andreas Dilger , linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org, "Dmitry V. Levin" Subject: Re: [PATCH v3] ext4: Add a uapi header for ext4 userspace APIs Message-ID: References: <680175260970d977d16b5cc7e7606483ec99eb63.1680402881.git.josh@joshtriplett.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <680175260970d977d16b5cc7e7606483ec99eb63.1680402881.git.josh@joshtriplett.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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-ext4@vger.kernel.org Hi, On Sun, Apr 02, 2023 at 11:37:42AM +0900, Josh Triplett wrote: > Create a uapi header include/uapi/linux/ext4.h, move the ioctls and > associated data structures to the uapi header, and include it from > fs/ext4/ext4.h. > > Signed-off-by: Josh Triplett > --- > > Sorry for the churn; I didn't encounter these errors in local > test builds. > > v2: > - Add UAPI header to MAINTAINERS > - Fix include paths in UAPI header > - Formatting fix for EXT4_IOC_SHUTDOWN > > v3: > - Leave compat ioctls in the private ext4.h header. It appears that some other > UAPI headers already follow this pattern, with compat defined privately. For > instance, quota and ethtool both follow that pattern. Do you intend to keep the compat ioctl definitions in the private header? [...] > --- /dev/null > +++ b/include/uapi/linux/ext4.h [...] > +/* > + * ioctl commands in 32 bit emulation > + */ > +#define EXT4_IOC32_GETVERSION _IOR('f', 3, int) > +#define EXT4_IOC32_SETVERSION _IOW('f', 4, int) > +#define EXT4_IOC32_GETRSVSZ _IOR('f', 5, int) > +#define EXT4_IOC32_SETRSVSZ _IOW('f', 6, int) > +#define EXT4_IOC32_GROUP_EXTEND _IOW('f', 7, unsigned int) > +#define EXT4_IOC32_GROUP_ADD _IOW('f', 8, struct compat_ext4_new_group_input) It appears that the ioctl definition for EXT4_IOC32_GROUP_ADD is provided, but there is no corresponding definition for the compat_ext4_new_group_input structure nowhere in the uapi headers. -- glebfm