From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: interface to ask is a file is hidden Date: Mon, 13 Oct 2008 05:57:09 -0400 Message-ID: <20081013095709.GA10373@infradead.org> References: <641322f90810101222p3ff36ac3va9057b9958d2abf2@mail.gmail.com> <20081010192104.GD19500@unused.rdu.redhat.com> <20081010193503.GE23734@samba1> <641322f90810101300v3ab5fc15hb20fca0374ebe4b4@mail.gmail.com> <20081010215722.GG8645@mit.edu> <20081010220156.GA25396@infradead.org> <1223886173.22225.159.camel@fatty> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Christoph Hellwig , Theodore Tso , Nicol? Chieffo <84yelo3@gmail.com>, Jeremy Allison , Szabolcs Szakacsits , Josef Bacik , linux-fsdevel@vger.kernel.org To: Alexander Larsson Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:59355 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760470AbYJMJ5l (ORCPT ); Mon, 13 Oct 2008 05:57:41 -0400 Content-Disposition: inline In-Reply-To: <1223886173.22225.159.camel@fatty> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, Oct 13, 2008 at 10:22:53AM +0200, Alexander Larsson wrote: > This is a bad interface for most apps. You need to open each file to get > a fd to pass to ioctl. This is problematic if for instance you don't > have read access to the file. So, you really want a path-based operation > for this. Sorry, that just not how the unix file interface work like, and we're not going to add crappy interface because your file manager wants to do something stupid. > Now, you could argue (and unsurpisingly you do) that ext3 & co doesn't > have a hidden attribute, but that doesn't mean I can ignore actual users > who have data on other filesystems and want to integrate nicely with > them. This includes not showing weird system files that are normally > hidden on said filesystems. Yes, you can. These are foreign filesystems, and all access to the filesystem (ls, echo, shell tab completion) also show them. No need to be special in your fancy "file manager".