From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Allison Subject: Re: interface to ask is a file is hidden Date: Fri, 10 Oct 2008 12:35:03 -0700 Message-ID: <20081010193503.GE23734@samba1> References: <641322f90810101222p3ff36ac3va9057b9958d2abf2@mail.gmail.com> <20081010192104.GD19500@unused.rdu.redhat.com> Reply-To: Jeremy Allison Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: =?iso-8859-1?Q?Nicol=F2?= Chieffo <84yelo3@gmail.com>, linux-fsdevel@vger.kernel.org To: Josef Bacik Return-path: Received: from mail.samba.org ([66.70.73.150]:41818 "EHLO lists.samba.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757889AbYJJTzV (ORCPT ); Fri, 10 Oct 2008 15:55:21 -0400 Content-Disposition: inline In-Reply-To: <20081010192104.GD19500@unused.rdu.redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, Oct 10, 2008 at 03:21:04PM -0400, Josef Bacik wrote: > What files are determined as "hidden" is completely up to the application, and > not the filesystem. Every linux filesystem is going to return all entries in a > directory when you do a readdir, and then it is up to the app to cull which > entries it doesn't want. Having the fs/vfs arbitrarily decide which files are > "hidden" and shouldn't be returned via readdir is not the correct way to tackle > this problem, it should be decided via the application. For Samba, we store an EA on a file representing its DOS attibutes. "user.DOSATTRIB". Applications can then read that to determine if a file is meant to be "hidden". Requires applications to coordinate with the Samba definitions though. Jeremy