From: OGAWA Hirofumi Subject: Re: vfat vs msdos and -o flush Date: Wed, 03 Mar 2010 22:36:21 +0900 Message-ID: <877hpt1q96.fsf@devron.myhome.or.jp> References: <20100301170827.GA5142@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: chris.mason@oracle.com, linux-fsdevel@vger.kernel.org To: Christoph Hellwig Return-path: Received: from mail.parknet.co.jp ([210.171.160.6]:54419 "EHLO mail.parknet.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752288Ab0CCNg0 (ORCPT ); Wed, 3 Mar 2010 08:36:26 -0500 In-Reply-To: <20100301170827.GA5142@lst.de> (Christoph Hellwig's message of "Mon, 1 Mar 2010 18:08:27 +0100") Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Christoph Hellwig writes: > Commit ae78bf9c4f5fde3c67e2829505f195d7347ce3e4 added a -o flush > option to the fat driver back in 2006, which causes asynchronous > writeout after I/O operations ASAP. This already is quite hacky > and not something I like very much, but even worse the option > is accepted when using the more common vfat filesysten type, but > only actually implemented for the less common legacy msdos > filesystem type. > > This tells us two lessons: > > - the -o flush option probably never got a whole lot of exposure > and users didn't notice it doesn't work. We might as well just > remove it again Sigh. Chris, could you handle this? > - having the highlevel inode operations duplicated between msdos > and vfat is probably a bad idea, and we should only branch out > for the very low-level directory entry manipulations. I know you are finding the reason to merge those. ;) Well, what code are you suggesting? (BTW, this is not meaning "Please send a patch."). Can we do it without the user visible change? And if it has the user visible change, what is benefit to users? I know, if we kill original design decision with the user visible change, we can write much more faster/cleaner code. (e.g. some I/O can be reduced for directory. etc.) But, for fatfs, I'm thinking there is no benefit to take a pain by the user visible change, at least for now. Thanks. -- OGAWA Hirofumi