Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1080805pxm; Wed, 23 Feb 2022 17:37:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzTJQVwxVbj2VhfGMBoMAhDdtIaExnmfuXJ4UhsbEVXF/stD3oYlQsL1Ezda+In4Fh2xU83 X-Received: by 2002:a17:902:bd92:b0:14f:3f88:1b14 with SMTP id q18-20020a170902bd9200b0014f3f881b14mr565164pls.112.1645666640953; Wed, 23 Feb 2022 17:37:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645666640; cv=none; d=google.com; s=arc-20160816; b=0N49UOyHZG7Im5hqERL6QWv/SJbt5cix2jYufCxKEO8OrI+C38MTbg7tSIOc1ge93J G8RMytAADLOZyHS4FUDVVX1Jla20QVPQyJ3FfoZYL/XOpf3nDi8Mqpai6IuMPk4CIrvj Oj0eFxFS76fGop39GXUMOlv/i57tMc/8qn9wPsy7qH3RcIviE62OcAtXBHPy4IMjMdnu cmhAHDJmfosrVqrhUoaYEsv/KJjyUvmJ2FSIMOMw4bAbo+g0m4ON4CshojbN8zWbUTYt 696aJaGN5mDbdRCyMDbQcBCsQQyxrN/256GoOsYvc4YDtBH/rWihU3XcusSundy95uwT MEpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=HhUYvNlKvKeuar3LIm24j30DTCZB1D0Lxdvz2XqTJGY=; b=iQSFNEikWNSD5kc/SfFJefS1RGSbQaILYjjmPk8GxHgbIBSplbRtZlesFq7mmflVGw 5f2byTCKSneW9jFBmGYPoop26/BM9jRd9cR9TrQZ4JoBkMD06gn9I3F/bK4cDPebigw9 D4TVY+ADcb1HFtXytrC/mFgKiqMROxCvniPybAW+Ph3ciMMyO8XLyc8VV/Feu240KALr 74EKQ+z+O2nsuXhqmuK5bibnHErQbAWc66qnP7xRm8CC9ADhL9B2t/zsdzKrjjv8jr7K lJMtT78tDypBYiZxj6IIaz6pyOOrfWMzXz5ISdH+d1/g8/pCtmeGxrd7Xurf/Fg8CPn7 Oszg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gbLNHCHv; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t14si1196171pgk.368.2022.02.23.17.37.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 17:37:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-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=@gmail.com header.s=20210112 header.b=gbLNHCHv; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 371BB138591; Wed, 23 Feb 2022 17:15:33 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231594AbiBWRuM (ORCPT + 99 others); Wed, 23 Feb 2022 12:50:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230126AbiBWRuL (ORCPT ); Wed, 23 Feb 2022 12:50:11 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A40E3AF for ; Wed, 23 Feb 2022 09:49:43 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id p15so53919379ejc.7 for ; Wed, 23 Feb 2022 09:49:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HhUYvNlKvKeuar3LIm24j30DTCZB1D0Lxdvz2XqTJGY=; b=gbLNHCHvHzDjM2RgRhrD8U3Qfmu+zgeceRj0lEz3d3WFnNZARUUBe84pi2uMpXx0SE 1iY9WfusEtlfUNsdaN41sN3mmHuspOsvn2Sga+V9xEJ2LYk8q8VGzDjIc4PGlBQBHC8z IsjCPT3jkJwl1LWg5YV6ks3lDrww26wG5yKRHEBnkXH0+Dn4CJ8pqpJ2SjrIoOhWVz1C LUHmevsOsYFWeA6MpZMQUSTzc2D3HgtQaMKuIqv8agF6O3MRNkrriWEbNuDr5I8dGKx5 vD4vCnKKetDhG1jWB1Gq83kNk3aIyXB534mBiN4OtCLo5X7gRtuu11yy2CbdTQ8KGV35 Sarw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HhUYvNlKvKeuar3LIm24j30DTCZB1D0Lxdvz2XqTJGY=; b=XAfo+OhGHKseGQTCMuwvPZL/Ni0L+hcBelWZkoGWL1TkSnRD1WKfOQ7uxkq6e2+LS6 ampxvZxVbWMQClvAAjFQR6SEqWa545d5HKsnrDbaeGNeUIVpfOoHfsRtHbG9AdN8Gflg 9XajOeI0yezCXSnCV4YuEO8/ffK1DafiFn+ndU94cXWDirGH6IB7yea4OWqXESpO6VBr ofytuA4G0y9Gh0NPfd6wkNy4sDWJEmO3ZqViHMw2i3wtEmsrEo1s2IDIScyGo9NrN7sk RB0/6YnHj4122RLGJ7t2USc0fQ87kD/OBSERgokje85n/I9Bx+H/EZmbno8pqQLrfV8r XuUw== X-Gm-Message-State: AOAM532uO1T7oBv10+QQD1HP65APxdDgG8P3CBQDNHu/9P8D7l+ljE2t Hnsu3LyPCvtJneIWgUSSY0pGHSL1nUmnOVuuxdtfRejG X-Received: by 2002:a17:906:40da:b0:6ce:51b:a593 with SMTP id a26-20020a17090640da00b006ce051ba593mr656636ejk.604.1645638581806; Wed, 23 Feb 2022 09:49:41 -0800 (PST) MIME-Version: 1.0 References: <50bd4b4d-3730-4048-fcce-6c79dfe70acf@garloff.de> <8957291b-ecd1-931e-5d0c-7ef20c401e5d@garloff.de> <10d55787-7b97-8636-9426-73fdeda0a122@garloff.de> <6401c5e1-8f05-5644-9bea-207640a21b77@garloff.de> <53040065-a88b-1b60-3430-27d2acd761b7@garloff.de> In-Reply-To: <53040065-a88b-1b60-3430-27d2acd761b7@garloff.de> From: Olga Kornievskaia Date: Wed, 23 Feb 2022 12:49:30 -0500 Message-ID: Subject: Re: 6f283634 / 1976b2b3 breaks NFS (QNAP/Linux kNFSD) To: Kurt Garloff Cc: "Kornievskaia, Olga" , "linux-nfs@vger.kernel.org" , "Schumaker, Anna" , Trond Myklebust Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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-nfs@vger.kernel.org On Wed, Feb 23, 2022 at 12:31 PM Kurt Garloff wrote: > > Hi Olga, > > thanks for coming back! > > On 23.02.22 15:22, Olga Kornievskaia wrote: > > Hi Kurt, > > I apologize for the late response. I have looked at the network trace. > > The problem stems from the broken server that claims to support > > fs_locations but then decides to never reply to the query. > > > > I can implement a mount option to say fs_locquery=off to handle mounts > > against the broken servers? > > I have posted a patch where you can mount with "notrunkdiscovery" and that should fix the problem with the Qnap server? > > However I would like to ask if the better path forward isn't to update > > to the knfsd where the problem is fixed? > > Well, I have ran self-compiled kernels on Qnap appliances before (to > work around Qnap's ext4 breakage when doing the case-independent > name lookup), but it was a painful and cumbersome process and I don't > want to repeat it. Appliances are not meant to use with custom > kernels. > Even if I do: This does not help many many other users ... Unless we > convince Qnap to provide patches for old appliances, we'll experience > breakage. > > On my end, I have applied the attached patch, restricting the use > of FS_LOCATIONS to servers that advertize NFS v4.2 or later. > > In the patch, you'll also see clearing the bit before it gets set. > This was spotted by seth, see > https://bbs.archlinux.org/viewtopic.php?pid=2023983#p2023983 > In latest upstream kernels you'd also need to clear > NFS_CAP_CASE_PRESERVING | NFS_CAP_CASE_INSENSITIVE > so I wonder whether we should not just nullify the caps > bit field prior to testing and selectively setting flags. > > With this patch, I can mount NFS volumes from Qnap knfsd > again without any special workarounds (such as nfsver=3 or the > to-be-implemented setting that you suggest). I have no idea > whether or not we leave a lot features behind by restricting > FS_LOCATIONS on the client side to servers >= NFS v4.2. > But certainly better than breaking in a -stable kernel update, > even if the server might be to blame. > > Best, > > -- > Kurt Garloff > Cologne, Germany