Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2643833lqb; Tue, 28 May 2024 06:28:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVHXJ2qnMN+IKhRCEUitiHxBx1IknDqMIb/9cNUfMsw8hDR+sg7eIxxsQQgegx/2Q16k+qb++BULjbZ/7hRfJ70fvcMvlmIwAb9jHNVVQ== X-Google-Smtp-Source: AGHT+IHmJTkNSLhsdHMw62kVgP/X2bM472m5RxWD669llB2HSrtRbj1BKF71IUX07XGwuNcZbKep X-Received: by 2002:a05:6a20:9688:b0:1af:f875:63b0 with SMTP id adf61e73a8af0-1b212df0513mr10986726637.48.1716902925349; Tue, 28 May 2024 06:28:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716902925; cv=pass; d=google.com; s=arc-20160816; b=bOYXbBibqcDsKaBScJCujW+JrlgRVe+UdXEyXLNSd6VmhCTNuFz6/v3C7hcFHH0p3Q kzsYIAZGNy5pK42YH3+J/40L8/GBBsZNImlzcBRxrE07zVKFLcTDsHMPHS0XZ4etlSgg dC7wEshwy+y6wb3G+O5C1VViFlkbQmITIAtI34gBqseKSG0SrszFC8AqB5LHQJ7jZ+86 wUZShzG6LDYNd1248MLhXYwd86U5lHrtwuaOOvady86cWuYjKsRAIuHRRjUKklv4Ji3K trrcAI8LhUhvUv7Hhaw//5vKdt3CPDX8ycBGvMZ23BpX6rUlHSmjLYbgTZUiPqBikhCv iX6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=PBBLOV4U2IFgFSKdFT4Y43aEoeT6Ow1hJwKRcZckZ7w=; fh=OsW0+EJh4yYdZcfiRyojbjo/1PO9z5uQACda4J1MUAw=; b=j0gA9TG7ElX0L3u82mtdhbuDEagICMN40vwNIbU0dLDDsaVlazNVY99WAJcsw2D2+2 dUvuyV4uVi+QJFHa3We1iO2FOXLdU3rGZlE3X5obuHltiTPIvXdBUCylUxTYmmYQGrjP EUHJYNO9EGfj7dZHSYUY7nIfXYR8UG6oJ6PyZqB4e/cg057iwAL81m1O1gg8o5fjT5Nj HYWxoh+nJeWBgxPa4U4EJ4djAyoFxXgwGVfZBDzJ7H+Oqhe+dbwLeU63h2AGoo5vCVhJ DizaQY9X52/GZqqacE4Iy+lfhcxzAQ84NcTlKk2z1Q3qXbglHdA1jQ3oje4qGTWcZO+D FFwA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=Wm1QN3Ry; arc=pass (i=1 spf=pass spfdomain=szeredi.hu dkim=pass dkdomain=szeredi.hu dmarc=pass fromdomain=szeredi.hu); spf=pass (google.com: domain of linux-kernel+bounces-192411-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192411-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6849bd69188si7545649a12.329.2024.05.28.06.28.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 06:28:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192411-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=Wm1QN3Ry; arc=pass (i=1 spf=pass spfdomain=szeredi.hu dkim=pass dkdomain=szeredi.hu dmarc=pass fromdomain=szeredi.hu); spf=pass (google.com: domain of linux-kernel+bounces-192411-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192411-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id F29E6285584 for ; Tue, 28 May 2024 13:28:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E453C16F26C; Tue, 28 May 2024 13:28:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=szeredi.hu header.i=@szeredi.hu header.b="Wm1QN3Ry" Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 BF4BE16E894 for ; Tue, 28 May 2024 13:28:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716902913; cv=none; b=U37zfcrXkqMayB6nG1GMeLqIOZPEw4JlPVXBo5CYu4Hil2zL2o5Q3uG2Wy7Di0Wz6hsxEhfG89iKAM0Qflpo5DLwsSgaLm5aP2mEMdpVMVK9Ixhfvh5AqecleGURWzZu2lPTHxbf6pDULOu+93rw/z1Y1y+tiLC9FC+ooucPLik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716902913; c=relaxed/simple; bh=PBBLOV4U2IFgFSKdFT4Y43aEoeT6Ow1hJwKRcZckZ7w=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=AI/v1+qhLXZSuHiL+dI3xBlo+TPMGpfWeWQuCgJBQvseSJR18q4TPkptYonDvjLavklzumeDqABLo/yYA8MpnD5vBlPXSqKPFLTaqhjaiTWsNhoFGt5MPtAFuq6d+TUVwBWp/fOsLiRZSa1KnzT4cdMT5jyUMqLQ1ebwX4yTLCc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=szeredi.hu; spf=pass smtp.mailfrom=szeredi.hu; dkim=pass (1024-bit key) header.d=szeredi.hu header.i=@szeredi.hu header.b=Wm1QN3Ry; arc=none smtp.client-ip=209.85.218.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=szeredi.hu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=szeredi.hu Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a6303e13ffeso98827166b.3 for ; Tue, 28 May 2024 06:28:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; t=1716902910; x=1717507710; 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=PBBLOV4U2IFgFSKdFT4Y43aEoeT6Ow1hJwKRcZckZ7w=; b=Wm1QN3RyfSowp3OP685y93x0QSYnT927aLF6A0cd+Dr/PPr3kY9GeQaKnWyWwIqKEi kSOmSfvQGe/RlzTCV8BXz1hM78yQtJgcvRvsgU73ezbBBMY2GvU/lxelFVGj8Hm3F8R2 WtI+cRhoXatHfGMVm6zMu6kO2ofAGu6bZ0Hos= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716902910; x=1717507710; 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=PBBLOV4U2IFgFSKdFT4Y43aEoeT6Ow1hJwKRcZckZ7w=; b=dSYmotZe+9AEa2T272aiRAJ0ef832bpaLkPP8yPJ4fabgzb58+gLDD+wNGHXHH5gBV yzvcpsFhRXBILaPJ2JENH0uGLNZ+seDFWKz5G32YllyCaHseGAPBLf/VHN9km9kyqqAN Vd3Ng1Jo4EcboSNFnXCK4y97rdFq1IqvSlmcnTUC/2hKmbmu89774X+IegEDRjhVffWv AGG0EaNS7Y1CPATCOwC39C01UuXuJZgDvlewQ2R5DdDza+H3oJqOh4zM5i35swN9aFMJ x5dDBezj9TuktDQU4UCCJSguVDhnRfwkwsOUgQC5rtgm/t4G0JHDn5sqVRjxaIqXPgrX M+8g== X-Forwarded-Encrypted: i=1; AJvYcCWGtz0CWQAvHReEdLkxme5E56XqhF4VXLkblX/dFriFr3SFmvt9nBD0eH7K3P9t+SP1UFNODucV5atLA3d+H+fdb0lS2gzPwGcEG+w9 X-Gm-Message-State: AOJu0YyckyenYVku1cXdSqJmHfxltdlG4+di6yno50YmFuo3DLYpdDpi PZLqqD6XgP4FkxLEG/yjBpgX6yVEbGdEng1d89TAdvx3EzYnS30O0Gpq9G52W1m6cXO3t9D39iC 6SBzBpAeRiikE2KmY59W9mJLgeLWGfdLhS0NsBQ== X-Received: by 2002:a17:906:788:b0:a59:adf8:a6e1 with SMTP id a640c23a62f3a-a62651144f1mr794014566b.47.1716902909983; Tue, 28 May 2024 06:28:29 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240526.184753-detached.length.shallow.contents-jWkMukeD7VAC@cyphar.com> <20240527133430.ifjo2kksoehtuwrn@quack3> <20240528-wachdienst-weitreichend-42f8121bf764@brauner> <20240528-gesell-evakuieren-899c08cbfa06@brauner> <20240528-gipfel-dilemma-948a590a36fd@brauner> In-Reply-To: From: Miklos Szeredi Date: Tue, 28 May 2024 15:28:18 +0200 Message-ID: Subject: Re: [PATCH RFC v2] fhandle: expose u64 mount id to name_to_handle_at(2) To: Christoph Hellwig Cc: Christian Brauner , Jan Kara , Aleksa Sarai , Alexander Viro , Chuck Lever , Jeff Layton , Amir Goldstein , Alexander Aring , linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Tue, 28 May 2024 at 15:24, Christoph Hellwig wrote: > > On Tue, May 28, 2024 at 02:04:16PM +0200, Christian Brauner wrote: > > Can you please explain how opening an fd based on a handle returned from > > name_to_handle_at() and not using a mount file descriptor for > > open_by_handle_at() would work? > > Same as NFS file handles: > > name_to_handle_at returns a handle that includes a file system > identifier. > > open_by_handle_at looks up the superblock based on that identifier. The open file needs a specific mount, holding the superblock is not sufficient. Thanks, Miklos