From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A41EBC433EF for ; Fri, 28 Jan 2022 13:17:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244259AbiA1NRr (ORCPT ); Fri, 28 Jan 2022 08:17:47 -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-fsdevel@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"