Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp713564rdh; Thu, 26 Oct 2023 13:38:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG49VUrI3xXTQ7fYUNFiWH6AN+b4KtMLPXNrJjAEKW4FHcSQ5bkykpOTh8bQSeFtMe1PGY4 X-Received: by 2002:a05:6830:4106:b0:6c6:19a6:29bf with SMTP id w6-20020a056830410600b006c619a629bfmr587436ott.7.1698352679773; Thu, 26 Oct 2023 13:37:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698352679; cv=none; d=google.com; s=arc-20160816; b=IHLNoH8J8AMEXH9gjpZSkU4sbozKpBoNTGxI77H0XhAlGVgkRk680ZVhdJwZgzRWwr yd0is8Ndc9HfNuBUNnBRqbHeWKaqT01dAvjJYpHCf9hcrvaJ/4PH1+0/xl08Inpmlt+j NwuGRNNwHukMCoUipvdzJphdoEWJpmCP5Vj/jYV/Pm1wI7geDSCJQyFSDxoqzjQwYYZ/ AG7XfI9WM2ysiWkauxKRkWcJZ2znrk8dG6eY+fj1X7gykDK0D6RaiJR7M7SgZk8YF/X9 8+4wDWT6cqHEktm5Zz2/PY8asPHFgZ5dJSSvDyJhoNNQHKn6uWa2i2qvz/4CPLHosX99 gf5g== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:date; bh=oyhZVjlMWkkyoVP699SWE02EC5AkW5qcR3B/BUBJ1qQ=; fh=q+EZAFE1HjJ9/xRsLNn1wVi0Tqw2mRvfY2s7reXyw/4=; b=B5UYnX5N3tlGDHvEcKEV+LjbGgihNOGRLlf8Mqxf//jl/TYgF7iE/DlanQ8larMW/L W90YQFv4JjhIPbJvgyyXQ/ZXoOSWis86gSZhoe92id9YusWksDq4Vr+l9OXFu/6cU7Yx v/yXrRqj23akjVYu/zf4hfhZ1/U5EnLdtGmTBazWv2HAVl+fZpjoWt0PLzOWe/Wql7s5 BZcrCcQup6UeRs5MyjSdKjpDG18oAyMaQyvxWWCtUphPZYFWjWzPg0B0czyPcWUJwdBY h3cFd1GaQPdjPPDnWNbLKHRbq6XeCOHq9fICV+VHlrhT3U7iEaaRehCw/08fB6VDrcOa t1Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=D0Rv4CNf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id z132-20020a81658a000000b00589b2fd4c7csi173326ywb.100.2023.10.26.13.37.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 13:37:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=D0Rv4CNf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 4ED8E82A41CB; Thu, 26 Oct 2023 13:37:56 -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 S229668AbjJZUhm (ORCPT + 99 others); Thu, 26 Oct 2023 16:37:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbjJZUhl (ORCPT ); Thu, 26 Oct 2023 16:37:41 -0400 Received: from out-187.mta1.migadu.com (out-187.mta1.migadu.com [95.215.58.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BA849C for ; Thu, 26 Oct 2023 13:37:39 -0700 (PDT) Date: Thu, 26 Oct 2023 16:37:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1698352657; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oyhZVjlMWkkyoVP699SWE02EC5AkW5qcR3B/BUBJ1qQ=; b=D0Rv4CNf8DR4kNKhKpuVgTpGsqxiWUItieCxJPeA8Y2fgX79JpCJv9ZsJ0+g//ssDkeJ1r fcznY6fz6G+cZPuEx2+NDBrNniG35AcABKpqRRxRlZangwOxWkNXseAkKCOfbRQZ5t20eD IOSmHBQrhiapJNO3WF0aw15WecH7f+8= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Amir Goldstein Cc: Stephen Rothwell , Christian Brauner , Kent Overstreet , Linux Kernel Mailing List , Linux Next Mailing List , Jeff Layton , Chuck Lever Subject: Re: linux-next: manual merge of the vfs-brauner tree with the bcachefs tree Message-ID: <20231026203733.fx65mjyic4pka3e5@moria.home.lan> References: <20231026100157.735d7dee@canb.auug.org.au> <20231026183539.cffe6uljmnjgacxq@moria.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 howler.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 (howler.vger.email [0.0.0.0]); Thu, 26 Oct 2023 13:37:56 -0700 (PDT) On Thu, Oct 26, 2023 at 10:34:18PM +0300, Amir Goldstein wrote: > On Thu, Oct 26, 2023 at 9:35 PM Kent Overstreet > > > This is wrong. > > > Those are filesystem defined constants. > > > Please don't change them. > > > > > > 0x81/0x82 have been used by xfs and fuse for years, > > > even though neither defined a constant in this enum so far. > > > > Perhaps we could get that fixed...? > > commit 2560fa66d2ac ("exportfs: define FILEID_INO64_GEN* > file handle types") fixes that for fuse. > I may fix up xfs to use these constants later. Wonderful > > > Conflicting with FILEID_BCACHEFS_WITH_PARENT is not > > > a serious issue, but I encourage Kent to pick different constants > > > for bcachefs or keep the bcachefs constants out of this enum. > > > > Happy to do so. Since it seems this enum doesn't have all the constants > > I'd need to avoid conflicting with, I might need some help here :) > > > > Technically, you don't *need* to avoid conflicting with fileid types > of other filesystems and you do not *need* to define your constant > in this enum. It serves no real purpose unless your constant > declares a fileid format that other filesystems also use. > > See the comment at the top of the enum. > > > > It is a slight inconvenience for users that have bcachefs exported > > > to NFS clients and upgrade their server, but maybe that is acceptable. > > > In overlayfs, we encoded type OVL_FILEID_V0 and switched to encoding > > > type OVL_FILEID_V1, but we still accept decoding of both types, neither > > > of which are listed in this enum BTW. > > > > > > Adding fid types to this enum is not required. > > > This enum is a place to standardize and for different fs to share the same > > > fid type/encoding as is the case with FILEID_INO{32,64}_GEN*. > > > IMO, the bcachefs constant do not follow the convention in this > > > enum and their format is unlikely to be used by other fs, so > > > they should not be added to this enum at all. > > > > Eh? > > > > Most of the constants here appear to be completely filesystem specific - > > I see UDF, nilfs, btrfs, fat... > > > > There is no good reason for those to be in the enum either > other than documentation. Well, clearly not: since the cause of this whole thread was conflicts with constants that were /not/ previously in this enum. > > > And since you also don't want conflicts with fid_types that aren't > > defined here, it seems like they really should all be here. > > If you define your constants internally in bcachefs, I don't care > about conflicts, but if I were you, I would avoid conflicts with > the known types. > > If you want to define your constants in this enum please choose > any vacant 0x?{1,2} values. 0xb{1,2}? That'll do, I'll patch accordingly.