Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1914197rdh; Tue, 26 Sep 2023 07:15:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFx9W8Lm6GHa8phvsNbxxPn7PBFmnQbBMgJIScb9tBuNtcOmJkx306RXHr3+/atlaxhHtrM X-Received: by 2002:a05:6a00:139b:b0:68f:ece2:ac3b with SMTP id t27-20020a056a00139b00b0068fece2ac3bmr9892985pfg.5.1695737735209; Tue, 26 Sep 2023 07:15:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695737735; cv=none; d=google.com; s=arc-20160816; b=BH8B5aZQWv+DsrnulIVDoYyC20N4vTBNVAI8Nk9NKzpjCuwgXevj4ofpbcrsQDy3O/ qTdsyFPHcbyjKyeQuEqC2rDdDqKY5VknDoN4peLIqMKMTLe5cP7OMtvMKZ/Uz8Vzo8+A kNzJUMB12SY7JTJsBNusqnsODy0+a4JaC4Cr3X7vsiNnfwEhveg1nUGqdycxE8XFwC31 Ai+2d3+yJ61EWcKF9byDs0MgHqiHDJwt8xcMOvXUebOnd1O8Y5Jd3V/F2BsOYZ7/VpXv jdauzJJ3kiaASq8GuglVCKLUgiWgMVbjC9KZbGQu4+LpFONQP66vEZ2SYQ+Cz1vznmIX RGNQ== 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:dkim-signature; bh=ws4vaVZi8z2lcTolHpDyTU4Y155aqn6HSATDZRO07LU=; fh=XRv+/drk8KbLC4Cv/olB/mUTwZBc9djDRKSBqPHlWrY=; b=ucEmLi+zdGaOFiOtt6ylsmHL8TNrFmlKxlaSWoODEECIXc822OhHRjsMDWNwUZmXXD bEKVBTB8tWwLPNLlFcJSnJQKL0tHhJRK7HD0ts4Rvkp4EoZFLvvSl72+GmjBSUeP4hdm +IOnQJSwcUTXlc6pNewj3UWnqQjyFiCcmeA7zh07hobxWPHa27CPjsbDHplpsqhjS4pQ 4XYcam/dfomlXcsFlQYxcbOkBWYyexqeAaZ/LGV7pd5q5yBfkwKo00EOmemtX/jaLMHo lMf60/9KwRjvvTTYP/BNCEhXjD/+1luVNgTPw8uO6hDXF01FjEOp0FBQdTesoTx/we8u PCXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jM72ZyHD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id 69-20020a630048000000b005775e13a6b9si12222948pga.363.2023.09.26.07.15.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 07:15:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jM72ZyHD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 105B4826E639; Tue, 26 Sep 2023 07:14:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232126AbjIZOOH (ORCPT + 99 others); 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> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 26 Sep 2023 07:14:11 -0700 (PDT) > 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.