From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 76302183099 for ; Wed, 3 Jul 2024 19:18:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720034325; cv=none; b=fYxR96HWTc6PCfuTmo+bv7Eg/lxhWB2Cnr2gYDFPCXnu8vQO7tu+YDJjQVsgV6BwkxLgdQn8wys2OoCLSBpi7kvvOxMNWXIMErzWbuZ9ZkIK/jXl8Ox0cvYPCq5IRybYpcvdhesrtM0KBBhfmctgeplNhfuIz5TRQsmFKVhYm5Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720034325; c=relaxed/simple; bh=+AVBoBhIk9uvDrY2HwwpSGMN8MBB00EEF6Yp4o9XmHw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=mzPYngwimIvFWaXJ+P++sjv8fjevADCK8DOOVhMky5A9+PKf01LTOR14j0tGVyF6m4Q8opnE9HnkOGS/OeXDSCCzfqpyoS3WXxVCiR7vxWP0s4MicxHMpfElEGfihRl7V/B14H5o5WuQyuDEHcVYm+CtGox7QJtdk2o7kLvmpmk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=W8ft7wQo; arc=none smtp.client-ip=209.85.208.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="W8ft7wQo" Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-58bac81f341so2340305a12.0 for ; Wed, 03 Jul 2024 12:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1720034322; x=1720639122; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=X/vmIOX7+1mJHRpZ4d4vcUWyg4V3MldncLokOxZ7oSY=; b=W8ft7wQo3tUkgBoduBdifVgL9Z0NNJ3xlRdNz2JgMf6OA04d3GCY2LZ/6HbUHOiqFb Moo0DF/5fWImNeTgN5Yf27CgGnm/e5js9odE7DKh2XudvnHeP+bICdGrnhtQidcS5xeP 4N1wdWaqGS0qfymF9ctMv1P8d7Tl17OoCGBCE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720034322; x=1720639122; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=X/vmIOX7+1mJHRpZ4d4vcUWyg4V3MldncLokOxZ7oSY=; b=RxGlFk1/TPukXHrzn5np/GEwbZtDmnL6BI7neA6AFwfSjS42Kt1SoNysW1S+4F8EHl t1T7MsJHYjGvSfRzejqVPtP6EZdE0LSDnUaew9Qv8h9dgaNrkz5JjxPgvKyUxm7WC/jR JgjzC5WvibHSMaz0OhCelDj3JRzydDR1iVFTSfWuh1hbUUTUte70ljF3xf2ckPSNFydY rr1bnhyrFRVG4oGIq2v0JYUUP856iiNvn18KuLMpsqFKWbINkQEEoP4+ZcABjmAgIJy9 EPE92i9y/CfDNhRnhcWLJgGAP+enunxthPmW7HXE+IBtY690QFrpSzY5Lw1xUBFHLxM6 JWCQ== X-Forwarded-Encrypted: i=1; AJvYcCVpafccJnoyMhBmk61JDuNzo+AZazW5mvMvSeAU/jq++JZuV3CvahOtSYkt6MIFf5gG9uKw6EiJK5z0/YVsVOKFoZQd7JxwNA0= X-Gm-Message-State: AOJu0YzGfV/O1VOBJxi6hpERtkur/BrSCOTd55qSxwBt0nlAE9w3ihlI ogCDmBU5njr3jGLDn7M5vzAMM1i0I5VS9MYj2BYN+kVCtmOt2fx2t6MZfgNkFV23CPkDMF2K5eB 2lSoUPQ== X-Google-Smtp-Source: AGHT+IE8mQl0zoGfg6GRIisawwVRDSRw87l81Mtl5yNqMknAUwoDIGA4n4/A0uWvxj6zY6V961SVVg== X-Received: by 2002:a05:6402:5107:b0:57d:2650:5f62 with SMTP id 4fb4d7f45d1cf-5879f59bc18mr8475156a12.14.1720034321527; Wed, 03 Jul 2024 12:18:41 -0700 (PDT) Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com. [209.85.218.53]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5861381756esm7505817a12.56.2024.07.03.12.18.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Jul 2024 12:18:41 -0700 (PDT) Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a6fd513f18bso764569966b.3 for ; Wed, 03 Jul 2024 12:18:41 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCVIsUWM9gbFgYwnbbP51+JPOazkPeJjjKqZAU5/b4Oa6MbUSTBV4p37R7FLJYihN/iUfKuBAmFejJn/X/57Y6hbyaCzEJjTd3g= X-Received: by 2002:a17:906:f756:b0:a72:42b8:257c with SMTP id a640c23a62f3a-a751444c4b3mr871005166b.35.1720034320670; Wed, 03 Jul 2024 12:18:40 -0700 (PDT) Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <1b5d0840-766b-4c3b-8579-3c2c892c4d74@app.fastmail.com> <8f2d356d-9cd6-4b06-8e20-941e187cab43@app.fastmail.com> <20240703-bergwacht-sitzung-ef4f2e63cd70@brauner> <8b6d59ffc9baa57fee0f9fa97e72121fd88cf0e4.camel@xry111.site> <20240703-begossen-extrem-6ed55a165113@brauner> In-Reply-To: From: Linus Torvalds Date: Wed, 3 Jul 2024 12:18:24 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] vfs: support statx(..., NULL, AT_EMPTY_PATH, ...) To: Christian Brauner Cc: Xi Ruoyao , libc-alpha@sourceware.org, "Andreas K. Huettel" , Arnd Bergmann , Huacai Chen , Mateusz Guzik , Alexander Viro , Jan Kara , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, io-uring@vger.kernel.org, Jens Axboe , loongarch@lists.linux.dev Content-Type: text/plain; charset="UTF-8" On Wed, 3 Jul 2024 at 12:00, Linus Torvalds wrote: > > Well, I do think that a *new* architecture should indeed add all of > those, but make the 'struct stat' for all of them be the same. Just to clarify: by "all of those" I don't mean all the stat64/oldstat/newstat variants that we have for compatibility with older ABI's, but all the "calling conventions" variants. IOW, all of stat/lstat/fstat and statx should exist as separate system calls, and libc shouldn't have to rewrite arguments to make one into another. (And yes, things like 'strace()' and friends should show what the app did, not what glibc had to rewrite things as, which is a private pet peeve of mine) Linus