From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: interface to ask is a file is hidden Date: Fri, 10 Oct 2008 18:01:56 -0400 Message-ID: <20081010220156.GA25396@infradead.org> References: <641322f90810101222p3ff36ac3va9057b9958d2abf2@mail.gmail.com> <20081010192104.GD19500@unused.rdu.redhat.com> <20081010193503.GE23734@samba1> <641322f90810101300v3ab5fc15hb20fca0374ebe4b4@mail.gmail.com> <20081010215722.GG8645@mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Nicol? Chieffo <84yelo3@gmail.com>, Jeremy Allison , Alexander Larsson , Szabolcs Szakacsits , Josef Bacik , linux-fsdevel@vger.kernel.org To: Theodore Tso Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:37112 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756058AbYJJWCC (ORCPT ); Fri, 10 Oct 2008 18:02:02 -0400 Content-Disposition: inline In-Reply-To: <20081010215722.GG8645@mit.edu> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, Oct 10, 2008 at 05:57:22PM -0400, Theodore Tso wrote: > The best you might be able to get is an interface that allows an > application to get or set the hidden attribute if is supported --- but > the application must be willing to accept a permission denied error > (some filesystems may only permit people with certain access right or > on some ACL to set the attribute), or a "operation not supported" > failure, for those filesystems that simply have not concept of "hidden > file". Yes. he best thing you could do is to add support for the FAT_IOCTL_GET_ATTRIBUTES/FAT_IOCTL_SET_ATTRIBUTES ioctls to other windows-heritage filesystems. Feel free to submit patches.