Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp954747rdh; Thu, 26 Oct 2023 23:43:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4sGLBfRNouUQ9BADQ0VFzZ44bytzbe6vo1pGtRTcMkuEmzS0ph5jy0A+06OAgzuveJVza X-Received: by 2002:a81:ae4b:0:b0:5a7:dbf4:6a1a with SMTP id g11-20020a81ae4b000000b005a7dbf46a1amr1735692ywk.7.1698388999406; Thu, 26 Oct 2023 23:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698388999; cv=none; d=google.com; s=arc-20160816; b=itMHBl57cPGGnNzKHyVUfHGm5MHcBd3jNS3JHy57L3nenaQXXOtkXvCmHwWKiQmmrr BO2jhbvd/lg/Giok9Bj0Itim/mNrz06GB9iiKCF9cqKBR80y+b2SSR3qhdtqLA2/sNB3 N5Of7NGSIE6Ua/qXuW5BCaB34IXixtMqhX8qt7AGj9xQExcSO+0VXam3ehAMhMyFF/eM xUmnq8z5hUJK8l9FU3MpWRWGLql9ZgkZS9pGotWvoXU/JxHMMLKiUDal0WEwAdJYzwnr vLUmxLdzxmTNiQ7i+1RSnhoEHngIwlzI21IzmHbvhCFzNmc/Y+aN/dAzKZZld3rbTDcr KD0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=T5uG6VL22c1tEm5EQWvWRaIRE/SGFemhnIPLZLh3Gcw=; fh=po814A6T4YaHhjJiLMdBVVGDU2nmflCnbhAt5GXAc9E=; b=pAEDCUqhN4Bgz0t6ebUWtKK+B0GquKTgCl2ZkhR9RsHyYGlLyBzu48lrnLVcQh9nc5 2Wa0NkTJIiFLVJ4BcLolB2hcGnGYELIOVlIdCfYoWnmDZYQZOrgRi+btM7Jjci1TLMAg zm3KJ2BYSI8RZsPRBZdqWjRK2P3GkTjV4tR4zsTEiITzoeOvaCNPAV5d6xjE3rw7Fn0j VSEdDLp75zLxOf7zTz/rlUtE0Oa4Wt3RlnCQ2c+sTeTRSfWgnf6z2TZJKDSiys+yz3Lu zvTC+GEZVhkH68DL8iIgRrbBusXLzmoeeH9pbzS1G/a0i+ohVAANmDsu/jE7lAuNRCSq qNsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lvDZLjX6; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id x132-20020a0dd58a000000b005af081d5beesi1607597ywd.256.2023.10.26.23.43.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 23:43:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lvDZLjX6; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 667CA82DFD2D; Thu, 26 Oct 2023 23:43:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229633AbjJ0GnQ (ORCPT + 99 others); Fri, 27 Oct 2023 02:43:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229590AbjJ0GnO (ORCPT ); Fri, 27 Oct 2023 02:43:14 -0400 Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E172121; Thu, 26 Oct 2023 23:43:13 -0700 (PDT) Received: by mail-qv1-xf2a.google.com with SMTP id 6a1803df08f44-66d36b2a247so11689706d6.1; Thu, 26 Oct 2023 23:43:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698388992; x=1698993792; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=T5uG6VL22c1tEm5EQWvWRaIRE/SGFemhnIPLZLh3Gcw=; b=lvDZLjX6IkaMjRarHpvjYl5GeCXWwT5mSX5fdhLLMGMaHRtGB+Ra6p+Q0GNr1Pz2q0 u8e2nXw2LfpnFN9fIE+KJSyl93acOhR9P3/l266tdzEKa1MdDsbm8Dc5fSXcIOMmbBM8 bIoxT4Lp4ZRomZcLfi5icB9wMflRpf+GgbdKCgpSaKmKvxKiPliUpMQ1DnZI8A9HOXZF fMnQd1+QrUovYIZSmhO+hbHldO3Ln4lnH+oTZRkBi8M9gRayHa6lPFXC2Jn7pYALvYeu aaNCIVmPF3qUQbXlyRPdGcJlL8g7ce68nxDR+RzqfW7qelsZQDJ+RHLu07QYlUCfE8fz XXjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698388992; x=1698993792; h=content-transfer-encoding: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=T5uG6VL22c1tEm5EQWvWRaIRE/SGFemhnIPLZLh3Gcw=; b=uYL6Uqo5bgQzn6315du6UYJEvfDAcDCxsd2MqCaSlppvGvs/7eVG64Abpj5KovZk54 SRwV1zGL9g/aYwSd5yy0rjbDpyAOnChqZxAi7hOhA5+8KiLReYpsdTKIiThbIhOJUFH0 AoRcDuEwPK5NrqBoirgwqU0nBDvWVUkIdsDHZ1vv9U+BPTNZfXzbU4e9zNMi0ekDKgkg hUmn0aeTiP1iCvnYnMGBg9yHeCsUuzxTuKjCuGloNzvvl4/BZl+Rf25O7Ymn/z4MPq6Y ap0pbaA6inFmC25XkdWbX1Ir8MayrXsSjsUMH6e9gclT2T+HKBOtfsqdClb8GknBZrBA jkHg== X-Gm-Message-State: AOJu0YwOVAtXsVbAyBKhDiFUS2RPiqmU75WHSZL5JGwfKb+KCUPXLP6Q LVotiejUxTYAxhBxUCbXjUJ34DeNveBzTsQ8JTs= X-Received: by 2002:a05:6214:e4e:b0:655:d6af:1c32 with SMTP id o14-20020a0562140e4e00b00655d6af1c32mr1976846qvc.15.1698388992107; Thu, 26 Oct 2023 23:43:12 -0700 (PDT) MIME-Version: 1.0 References: <20231023180801.2953446-1-amir73il@gmail.com> <20231023180801.2953446-4-amir73il@gmail.com> In-Reply-To: From: Amir Goldstein Date: Fri, 27 Oct 2023 09:43:01 +0300 Message-ID: Subject: Re: [PATCH v2 3/4] exportfs: define FILEID_INO64_GEN* file handle types To: Christoph Hellwig Cc: Christian Brauner , Al Viro , Jan Kara , Jeff Layton , Chuck Lever , linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 26 Oct 2023 23:43:16 -0700 (PDT) On Fri, Oct 27, 2023 at 9:05=E2=80=AFAM Christoph Hellwig wrote: > > On Mon, Oct 23, 2023 at 09:08:00PM +0300, Amir Goldstein wrote: > > Similar to the common FILEID_INO32* file handle types, define common > > FILEID_INO64* file handle types. > > > > The type values of FILEID_INO64_GEN and FILEID_INO64_GEN_PARENT are the > > values returned by fuse and xfs for 64bit ino encoded file handle types= . > > Please actually switch xfs to fully use the helpers instead of > duplicating the logic. I will follow up with another patch. > Presumable the same for fuse, but for that > I'd need to look at how it works for fuse right now and if there's not > some subtle differences. > There are subtle differences: 1. fuse encodes an internal nodeid - not i_ino 2. fuse encodes the inode number as [low32,high32] It cannot use the generic helper. Thanks, Amir.