Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp813204pxb; Tue, 12 Apr 2022 14:09:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyn+SFWKCgp+flnaAS4YC1MxHQdsK3lVHDu6RMCFcsZLDhI7xM26mcLtVBZ+dfi/hnZ6ox3 X-Received: by 2002:a17:90a:d584:b0:1bc:e520:91f2 with SMTP id v4-20020a17090ad58400b001bce52091f2mr7147854pju.192.1649797789542; Tue, 12 Apr 2022 14:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649797789; cv=none; d=google.com; s=arc-20160816; b=V1wz4ohaEyi+9F3DESNV0pcPP9EOk2gpZrLZq1khLlPrOLogJzQm5lvt24v//i7agf v7mC5H02F9lUiVtps/FrfjywsvohtGzszUbPnhTjlv+b2igAIwov+Nq3F5J78Ck9ruPw jKHlNIgfzawIJPHwq4OAmEPxP7/0YTDNxbhMDFaUJOXbjvLNnFA3/PVc/KCWlU5TbGeG vQA+oI1+h3X+dxjbE2Suuq/1rr6rVXWM//AtIXjXLWhDkcbWYllmKsqmRwsaVHsZT33m VT7S4XyIhUiimCEOzkLH7tx/OAiBPIl9nwk97PIeuGfQstf0d+up/l1aUKJB32QMOoHH fqxQ== 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=MtDBJRz7aAvJeMtL3L+Os8sJX/edcjhGc1kTLngfBOY=; b=YXsy1l/PwfV9vjq3yhIRFHCmGfDuEhBEUmvBOcmhGvUo/eDzBeSPg7WI072k4rPAul 2vXhfOjMYGYrmPaqp93h44CuBRE07/nrtukDhscTTGz5/D2bEV5oPPaU342qpJGKDGal STR52LOehhNd7SBw84+nZyJj/QhTacJeZQAToiQ9SocRwzs3Ek2NEfeuuO/IjpZE302u 601t2RA/9727sFyj5JgWJ3v/NyhpxD6+Hov4tNGrwrRyWHTz4RBLxIn//gN+PhwixgvX FYUbwhJ5oJiQgla5QYswZnfQUlrXQYILzgtTcdiPwMXTMi+QmDtb0C/nzjS5V9Li6BOq sRBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=o8rQWz0v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n3-20020a170902968300b00156a80ba52esi11888520plp.274.2022.04.12.14.09.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 14:09:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=o8rQWz0v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4E489E098A; Tue, 12 Apr 2022 13:26:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347743AbiDKPT2 (ORCPT + 99 others); Mon, 11 Apr 2022 11:19:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347779AbiDKPTK (ORCPT ); Mon, 11 Apr 2022 11:19:10 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F76832987; Mon, 11 Apr 2022 08:16:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=MtDBJRz7aAvJeMtL3L+Os8sJX/edcjhGc1kTLngfBOY=; b=o8rQWz0v4zGDV4Gr0VwK/zxhsV TrzOTdh6PGBPxaCBbE39NfeLh81imlw+Cxe/x8gR5/LNHtKc4w27anQxz/54kVCZdK1OOAHxsK3xC YdRLEUAzoTTfQqh4vo5BM7B3wfHNYs88JNDgSznHwVkbAqFu++zWy9Y1ZQed6eblxAq8lGRhXHDJm NN/qBT7F31rUSzDyY1Z+ij+/Q0+5V9iPTGeKDRe3sjnIh0XM1jiL/bE6bTzj/eChUOdvoNSkCa8Uk gybtquzbuSIPrH8jMDst1sQT4Bi90JC/KAWzUoWTxNGOA9sBbVEJYyyYOJMQM8jGclTuMDgqd9Edx J2kCftsw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndvmV-009VEz-MI; Mon, 11 Apr 2022 15:16:43 +0000 Date: Mon, 11 Apr 2022 08:16:43 -0700 From: Christoph Hellwig To: Matthew Wilcox Cc: Mikulas Patocka , Linus Torvalds , Alexander Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] stat: don't fail if the major number is >= 256 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 11, 2022 at 04:03:37PM +0100, Matthew Wilcox wrote: > Is it better? You've done a good job arguing why it is for this particular > situation, but if there's a program which compares files by > st_dev+st_ino, it might think two files are identical when they're > actually different and, eg, skip backing up a file because it thinks > it already did it. That would be a silent failure, which is worse > than this noisy failure. Agreed. > The real problem is clearly that Linus denied my request for a real > major number for NVMe back in 2012 or whenever it was :-P I don't think that is the real probem. The whole dynamic dev_t scheme has worked out really well and I'm glade drivers don't need a major allocation anymore. But I'm not sure why the dynamic major had to be past 255 given these legacy issues, especially as there are plenty of free ones with lower numbers.