From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8BB9E7E63C for ; Tue, 26 Sep 2023 14:14:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231381AbjIZOOH (ORCPT ); Tue, 26 Sep 2023 10:14:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbjIZOOG (ORCPT ); Tue, 26 Sep 2023 10:14:06 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8EF3CE; Tue, 26 Sep 2023 07:13:59 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B459C433C8; Tue, 26 Sep 2023 14:13:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695737639; bh=K//I43pYNKd0hnss16g14ct+ZnACMgfq5k78PInDtpA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jM72ZyHDERi5MoaOIk8F1nPCYuqmGr926Zxyt1R9Ams/B2Dmh61pjKGcF0hvpsq0J JbhWAXvSVBrkGHjwDCwZClOpMIOeYIZuMhmE2rXJ87sIFv0ldHHeOojd9OTihiutVx eB94jEPvPRnErhVdfvgzBhSTD3NR2eCA6ubNEKxuEno4bMTORarrO8M50qZanj2que 8MzAk2BTDAJw4PpZNMq9z0YwrPY2mbtWEgDfDpoI/8OIlAHGYG2pJ3pui6Ibdau4qb OnNzbOELCPoRLdC9N+/kBokqQsrp7Spdz6MfHH0+dVHTfwhu3NSjfqZ6qpn4mknJzY 4RT8Nifedfbzg== Date: Tue, 26 Sep 2023 16:13:53 +0200 From: Christian Brauner To: Florian Weimer Cc: Miklos Szeredi , Miklos Szeredi , Linus Torvalds , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-man@vger.kernel.org, linux-security-module@vger.kernel.org, Karel Zak , Ian Kent , David Howells , Al Viro , Christian Brauner , Amir Goldstein Subject: Re: [RFC PATCH 2/3] add statmnt(2) syscall Message-ID: <20230926-flatterhaft-nachverfolgen-4bf7f78cc0ee@brauner> References: <20230913152238.905247-1-mszeredi@redhat.com> <20230913152238.905247-3-mszeredi@redhat.com> <20230914-salzig-manifest-f6c3adb1b7b4@brauner> <20230914-lockmittel-verknallen-d1a18d76ba44@brauner> <20230918-grafik-zutreffen-995b321017ae@brauner> <871qeloxj0.fsf@oldenburg.str.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <871qeloxj0.fsf@oldenburg.str.redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-api@vger.kernel.org > I also don't quite understand the dislike of variable-sized records. > Don't getdents, inotify, Netlink all use them? And I think at least for > Netlink, more stuff is added all the time? Netlink is absolutely atrocious to work with because everything is variable sized and figuring out the correct allocation size is a complete nightmare even with the "helpful" macros that are provided. The bigger problem however is the complete untypedness even of the most basic things. For example, retrieving the mtu of a network interface through netlink is a complete nightmare. getdents, inotify, fanotify, open_by_handle_at()'s struct fiel_handle are all fine. But let's absolutely not take netlink as a model for anything related to mounts. And no one is against again variable sized records per se. I think we're coming to a good compromise here.