Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2726893pxb; Mon, 31 Jan 2022 03:02:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGXBPlMW6pralIV9WFnLnvC+/Moc5p8vglYm5y3ujfcWZxc2Tg7ZtnV/8rexrIqbfmoNq+ X-Received: by 2002:a17:907:7ea3:: with SMTP id qb35mr16879555ejc.553.1643626939086; Mon, 31 Jan 2022 03:02:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643626939; cv=none; d=google.com; s=arc-20160816; b=lX78Ls2pV67b8ltdK8uJRwKjjftZGjiJoHvKcLT9OwNXqqAXU4/eYUzKhU1IngbTyL Dkt7NqHbJ9IMFccEl+aaICPpNbb97u6kzRgeIqMVHO7ruqoMshgXsWRRZkv3Vr5FezrX kFc8Tr+KKe0fiLTi5pWzigZLteRCqfQ3oolYlQczSA2gokJTjkFMuTsNzEpsS7qJvwAj u6sIBOsvcSJt7Z0k9zl4oC+K1sZBMmfmreSgre7uYNNfSZgdeSn0Eh63x87yME5bZKsi HukTPIZgLXoeJ0/9pmPJdT5ACTWG6JpbzQWtf67gHMew3LehLI7qp+Y/aXI+3etva9Fz Jcdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=FQ/zuWU1NzzE36rPDqmHEXL+mrIL5yP4nKYSsj1amxs=; b=TLsxbanvKzGq7Ia7aIS3oFwZG6XqI8/Jzi1Ac2LQ6rpjOGxrVPd1rTBA1zpNBbcFhZ FM0r1BZMoulRuE9aFu9llMAiIAhXwqrfmXnL+KJ+fpr61XAgUKRZyLR5F5l7AzNRKlg7 bIrgQkz/PKuLDnCfvBqxeQenumcMl2+flQPotamVSwQfYU2K0iV9aDTjMObGXVSCW2K2 M/lnQ/mFYA5qMv5G6ME+/LfitLW+Os1/9wvqamDSouwYcjM/WixwGMNIdgoGL4kwbB+l bN3QmEdTe7CnWbN75CSDtlsZzMzWpUrVJaK8Wh1WILG622uNSmuhWRJIAZruhwscAVqS 4Npg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m10si8522442edd.152.2022.01.31.03.01.49; Mon, 31 Jan 2022 03:02:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348714AbiA1NRt (ORCPT + 99 others); Fri, 28 Jan 2022 08:17:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244534AbiA1NRc (ORCPT ); Fri, 28 Jan 2022 08:17:32 -0500 Received: from zeniv-ca.linux.org.uk (zeniv-ca.linux.org.uk [IPv6:2607:5300:60:148a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B084BC061747; Fri, 28 Jan 2022 05:17:31 -0800 (PST) Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nDR7y-005VFV-G4; Fri, 28 Jan 2022 13:17:22 +0000 Date: Fri, 28 Jan 2022 13:17:22 +0000 From: Al Viro To: David Howells Cc: Amir Goldstein , Christoph Hellwig , Linus Torvalds , linux-fsdevel , linux-kernel , Chaitanya Kulkarni , Miklos Szeredi Subject: Re: [PATCH v2] fs: rename S_KERNEL_FILE Message-ID: References: <20220128074731.1623738-1-hch@lst.de> <918225.1643364739@warthog.procyon.org.uk> <922909.1643369759@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <922909.1643369759@warthog.procyon.org.uk> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 28, 2022 at 11:35:59AM +0000, David Howells wrote: > > Whether deny rmdir should have its own flag or not I don't know, > > but from ovl POV I *think* it should not be a problem to deny rmdir > > for the ovl upper/work dirs as long as ovl is mounted(?). > > What's the consequence of someone rearranging the directories directly in the > contributing dirs whilst there's an overlay over them? "Don't do it, then - presumably the kernel won't panic, but don't expect it to try and invent nice semantics for the crap you are trying to pull"