[haiku-commits] Re: haiku: hrev44715 - src/add-ons/kernel/file_systems/ntfs

  • From: "Ingo Weinhold" <ingo_weinhold@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 27 Oct 2012 15:27:44 +0200

Axel DÃrfler wrote:
> On 10/23/2012 06:56 AM, Gerasim Troeglazov wrote:
> > 3a0a721: Added support for fake attributes.
> 
> Maybe it would be a good idea to put that code into a generic module for 
> file systems to use, or even better, into an overlay file system.

+1. The only annoyance of an overlay is that it has to be requested explicitly. 
Maybe a file system flag or some other mechanism could be introduced to request 
an overlay for the file system by default.

> However, I guess the preferred long-term solution would be to have that 
> kind of functionality implemented in the userland API itself.

I can't think of a good solution how to do that. One still wants to globally 
associate a file with its MIME type -- i.e. when tracker has identified a file, 
other applications should see the associated MIME type as well -- but that 
would require to store it in some server (the registrar most likely) and talk 
to the server whenever the attributes of such a file are accessed. That's quite 
some overhead.

On a related note: Archiving software should avoid archiving auto-generated 
attributes.

CU, Ingo

Other related posts: