From: "=?UTF-8?Q?Nicol=C3=B2_Chieffo?=" <84yelo3@gmail.com> Subject: Re: interface to ask is a file is hidden Date: Sat, 11 Oct 2008 00:58:12 +0200 Message-ID: <641322f90810101558o32e9b2ebl93071344cbc564bb@mail.gmail.com> References: <641322f90810101222p3ff36ac3va9057b9958d2abf2@mail.gmail.com> <20081010192104.GD19500@unused.rdu.redhat.com> <20081010193503.GE23734@samba1> <641322f90810101300v3ab5fc15hb20fca0374ebe4b4@mail.gmail.com> <20081010215722.GG8645@mit.edu> <641322f90810101521o50191390w529c9b2c9b6c802@mail.gmail.com> <20081010222518.GA7669@infradead.org> <641322f90810101533p78d1bb9ame14a5c3c99b0b06e@mail.gmail.com> <20081010223607.GA12709@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: "Theodore Tso" , "Jeremy Allison" , "Alexander Larsson" , "Szabolcs Szakacsits" , "Josef Bacik" , linux-fsdevel@vger.kernel.org To: "Christoph Hellwig" Return-path: Received: from ug-out-1314.google.com ([66.249.92.170]:49600 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753271AbYJJW6O (ORCPT ); Fri, 10 Oct 2008 18:58:14 -0400 Received: by ug-out-1314.google.com with SMTP id k3so25110ugf.37 for ; Fri, 10 Oct 2008 15:58:12 -0700 (PDT) In-Reply-To: <20081010223607.GA12709@infradead.org> Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: The final target is to create a standard attribute list for files, so that you don't need to depend on the specific filesystem driver to extract the attributes. If you don't like the hidden example here's another (I hope it's correct because I don't know exactly how this is implemented) you want to know if a file is sparse. For sure ext3 and ntfs support sparse files, but (maybe) there is not a common way to ask this. As Szaka told before, the correct approach might be to define a set of attributes and a function to get/set them