From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH] hostfs: Use noop_fsync for directories Date: Tue, 13 Jan 2015 14:19:58 -0800 Message-ID: <20150113221958.GA27739@infradead.org> References: <1421187358-32600-1-git-send-email-richard@nod.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: user-mode-linux-devel@lists.sourceforge.net, dxld@darkboxed.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, stable@vger.kernel.org To: Richard Weinberger Return-path: Content-Disposition: inline In-Reply-To: <1421187358-32600-1-git-send-email-richard@nod.at> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Tue, Jan 13, 2015 at 11:15:58PM +0100, Richard Weinberger wrote: > Daniel reported that dpkg(1) dies if the root filesystem is a hostfs > because it does not expect fsync(2) to fail with EINVAL on directories. > While fsync(2) is allowed to fail with EINVAL if the filesystem does not > support it we can do better and use noop_fsync() to not confuse userspace > further. Shouldn't hostfs pass the fsync through to the host filesystem?