From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH]QNX6 filesystem (RO) driver Date: Fri, 17 Feb 2012 18:35:49 +0000 Message-ID: <20120217183548.GQ23916@ZenIV.linux.org.uk> References: <4F3B1DD1.3000202@ontika.net> <20120215061012.GC23916@ZenIV.linux.org.uk> <20120215064728.GE23916@ZenIV.linux.org.uk> <20120215071119.GF23916@ZenIV.linux.org.uk> <20120215075750.GG23916@ZenIV.linux.org.uk> <20120215144037.GH23916@ZenIV.linux.org.uk> <20120216100043.GJ23916@ZenIV.linux.org.uk> <2977b399b903a3b7bff1ffe93e8d3dd9.squirrel@www.ontika.net> <20120217162006.GO23916@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org To: Kai Bankett Return-path: Received: from zeniv.linux.org.uk ([195.92.253.2]:58279 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752181Ab2BQSfu (ORCPT ); Fri, 17 Feb 2012 13:35:50 -0500 Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, Feb 17, 2012 at 06:53:52PM +0100, Kai Bankett wrote: > > Other than that (and assuming it survives your testing), I'm fine with > > that variant. > > At least no problems with all my test images. Just ran a complete test > (file reads, dir(s), filepermissions, symlink, hardlink, longfilenames, > longdirectories etc.) over (mmi/be/le/1k/2k blocksize images). > > http://a6.ontika.net/patches/0001-fs-initial-qnx6fs-addition.patch.gz Hmmm... + if (len == de->de_size) + /* normal filename */ + ino = qnx6_match(s, len, name, de); + if (ino) + goto found; + else if ((de->de_size == 0xff) && Actually, gcc ought to have screamed at that. Note that "else" here matches the second "if", not the first one. And you are not guaranteed that ino has _ever_ been assigned anything; that comparison is deep in nasal daemon country...