From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josef Bacik Subject: Re: interface to ask is a file is hidden Date: Fri, 10 Oct 2008 15:21:04 -0400 Message-ID: <20081010192104.GD19500@unused.rdu.redhat.com> References: <641322f90810101222p3ff36ac3va9057b9958d2abf2@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: linux-fsdevel@vger.kernel.org To: =?iso-8859-1?Q?Nicol=F2?= Chieffo <84yelo3@gmail.com> Return-path: Received: from mx2.redhat.com ([66.187.237.31]:46775 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761119AbYJJTan (ORCPT ); Fri, 10 Oct 2008 15:30:43 -0400 Content-Disposition: inline In-Reply-To: <641322f90810101222p3ff36ac3va9057b9958d2abf2@mail.gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, Oct 10, 2008 at 09:22:11PM +0200, Nicol=F2 Chieffo wrote: > Recently there have been a discussion between the nautilus & GIO > maintainer, and the ntfs-3g maintainer to implement a way to not show > files in nautilus if they are hidden. >=20 > Currently only files starting with a "." are hidden, as you can see i= n > the GIO _g_local_file_info_get() >=20 > if (basename !=3D NULL && basename[0] =3D=3D '.') > g_file_info_set_is_hidden (info, TRUE); >=20 > Of course, since we often have a multi-OS & multi-filesystem > environment, it is a big limitation to consider hidden files only > those files. > There are some use cases in which we need a wider view of hidden file= s: > - ntfs shared partitions & external disks > - fat32 shared partitions & external disks > - fat16 usb keys/multimedia devices >=20 > Both the maintainers state that it's not a good idea to patch GIO to > check which filesystem is hosting the file, and then ask it using the > specific driver whether the file is hidden or not. > Everything should be transparent for GIO, which should only make one > call to a standard interface, that all filesystem drivers shall > implement. >=20 > Is it possible to consider this request? > The discussion is in this moment hosted in the nautilus mailing list > with this subject name: "nautilus & hidden files". > What files are determined as "hidden" is completely up to the applicati= on, and not the filesystem. Every linux filesystem is going to return all entr= ies in a directory when you do a readdir, and then it is up to the app to cull w= hich entries it doesn't want. Having the fs/vfs arbitrarily decide which fi= les are "hidden" and shouldn't be returned via readdir is not the correct way t= o tackle this problem, it should be decided via the application. Josef=20 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html