From mboxrd@z Thu Jan 1 00:00:00 1970 From: "J. R. Okajima" Subject: Re: [RFC PATCH] Show data flow for file copyup in unions Date: Thu, 18 Mar 2010 17:10:57 +0900 Message-ID: <2640.1268899857@jrobl> References: <20100316181711.GB24819@shell> <20335.1268779891@jrobl> <20100318005358.GA24348@shell> Cc: Alexander Viro , Miklos Szeredi , Dmitry Monakhov , Jeff Layton , Christoph Hellwig , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Valerie Aurora Return-path: In-Reply-To: <20100318005358.GA24348@shell> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Valerie Aurora: > I think what people will expect is that we copy up in that case. I > can think of ways this can go wrong, but perhaps that should be an > explicit requirement on the top-layer file system, that it can handle > create/unlink() in a directory without write permission. I am not sure such requirement is the right way. How about delegating open() to keventd or some other workqueue which will succeed to create files under a directory without write permission? Of course, we should handle some error cases after creating a file. J. R. Okajima