Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3336380ybc; Thu, 14 Nov 2019 07:36:39 -0800 (PST) X-Google-Smtp-Source: APXvYqydJ9+g8M+3rmLa2L3kLxHdZyCH2uC61Wze4WbNMbj+tGtl4+Cs9Ycw3fm2K3qQb+cLpZbn X-Received: by 2002:aa7:cc18:: with SMTP id q24mr1959196edt.150.1573745799341; Thu, 14 Nov 2019 07:36:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573745799; cv=none; d=google.com; s=arc-20160816; b=fO4s9xdqw8Pw9cH1uXmWMctUozv0aUxDv2kxpD0oG8EupmGNzuXiQAv3P0h26Pwiju THR8iZJg+nscAXKpEJ88tK1HJbKv17NVyEDK/B/FtPIUtXHvDow4Lc2oGx60g49Vj4JZ pjuEOvMYUXYEJqriTKaEm9FpqbGHk6TAelVdWObnOI0B5iVzlnDymi0RYP4M4H1F1Ikd Kzk+LkMr6R7HrqcS4Oeuf4mE9py8u9t5TaU0thWANtal+p9ZUz9gK6XHMLp182cJXTXy nbbnCL5aMrp4SNJJJ3t8ZpZePRNuU07t7ZEHVXOwphr3b6O0CigQqK/hWNTPrzKaElU1 2Sfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=TUlRU9cKKaNVZQJfAQT/do7G2k04lqCGA4z6vNnMsGQ=; b=ZCsGSI9G33Jm69Uu0A++bI5Bmj9pukWxWh7eboQcji/NebJOmKUwV7ucI1K1jE69TH P26i/edy0RyavdMDB7V4d1rq0o5c6igxcHCwt+B/NtBDNXMInclFALxwUXi9vvGVyWPJ DsH/k6FD3/mh+XXHyYSSHq2SRCq2LKqPtdKVK1UqjYUnrW6XHG106t3XN1duzHva7hGX Op3KbV2gY+ZXxw3T2TAHBRYTbA38t7dY+GEqMZnUh2cTWJOLGddS4YAXBTxf6Mv0ddpY z72hz0Kjzk/VFbAvHqXnnkM/VXIkeCI68/RXACSP5ez3TUVpkrOrK2XhE2IwdIG59qFQ Hlsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b="Gf3JcA/6"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sd4si3800508ejb.261.2019.11.14.07.36.14; Thu, 14 Nov 2019 07:36:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b="Gf3JcA/6"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727053AbfKNPe4 (ORCPT + 99 others); Thu, 14 Nov 2019 10:34:56 -0500 Received: from mail-io1-f65.google.com ([209.85.166.65]:35022 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726452AbfKNPez (ORCPT ); Thu, 14 Nov 2019 10:34:55 -0500 Received: by mail-io1-f65.google.com with SMTP id x21so7284106ior.2 for ; Thu, 14 Nov 2019 07:34:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TUlRU9cKKaNVZQJfAQT/do7G2k04lqCGA4z6vNnMsGQ=; b=Gf3JcA/6I5FyJbc72sKAqamUPXFxiPVt7Hj5319gDyzsYiJMudzuRdZXmvEpYlK/My 4UW7i5B9KNCTYQn7nI9dTWijqpLioNvi2TfIVwOFIykEZObvThrKzFX9U8pmytRR07+e elXel76PlSzf5sFKyKbZ4XcUWsTA4iLSFjtn0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TUlRU9cKKaNVZQJfAQT/do7G2k04lqCGA4z6vNnMsGQ=; b=ovtfWDNX0L2JdzkQ3PGPMJomLTr5arQH6wcuBafVQBVP2Jg+BySBsSW4F2q51EudMR 68o5VCXhLuvd8Jo76ZWVmod5RbzPDAfrqriodqJ4sWMqnwi2kBXMwB8bja955oshh57C BcaJGPJNJQBR0acUWp5SyOMfIxTYPLyZVeDWHH6USpkNfdQ5fqsbOlrQPhNnuCYsW/Te 4KQNIKW1nrs+bbb4ToHgspX1QdunsnaW3AbPh7HyXqOjbKaT2nbH/2K/4x792yKfDvwf xf6d9NeYfAQ0wE8IJMNYp/giovZxYL2h6T0qWR0gPaLzBfQqGKjmsS4CQyISATm3vEm5 nd9Q== X-Gm-Message-State: APjAAAX0x0ikJJC8RK9/jRffIwQ12wvyefTGosSxK/cVkUMr6FJctKX4 D4wBzof6/nnm+vAfI+O0XYQE1Sq88xLiKmmVZ/iRpg== X-Received: by 2002:a6b:3bca:: with SMTP id i193mr7558649ioa.285.1573745693624; Thu, 14 Nov 2019 07:34:53 -0800 (PST) MIME-Version: 1.0 References: <20191107104957.306383-1-colin.king@canonical.com> In-Reply-To: From: Miklos Szeredi Date: Thu, 14 Nov 2019 16:34:42 +0100 Message-ID: Subject: Re: [PATCH][V2] ovl: fix lookup failure on multi lower squashfs To: Amir Goldstein Cc: Colin King , Miklos Szeredi , overlayfs , stable , kernel-janitors@vger.kernel.org, linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 14, 2019 at 3:37 PM Amir Goldstein wrote: > What Colin has now reported brings to light the fact that > decoding lower file handles was also required for making inode > numbers persistent. > > So the bad_uuid condition is required for all of the above, not > just for decoding origin. > > > Can we do a message that makes > > that somewhat more clearer? > > > > What about the logs: > > pr_warn("overlayfs: upper fs does not support xattr, > falling back to index=off and metacopy=off.\n"); > pr_warn("overlayfs: upper fs does not support file > handles, falling back to index=off.\n"); > pr_warn("overlayfs: fs on '%s' does not support file > handles, falling back to index=off,nfs_export=off.\n", > > Should we also change them to reflect the fact the decoding origin > is not supported??? > > Seems like a lot of hassle that will end up writing too much information > that most people won't understand. > > IIRC, we also do not guaranty persistent inode numbers for hardlinks > when index=off. > > As for the change in question (falling back => enforcing), if that bothers you, > we can get rid of this change by testing emitting the print only if > (ofs->config.nfs_export || ofs->config.index). That makes sense. It would also make sense to have a section about inode number persistence in the documentation. Thanks, Miklos