Re: nautilus & hidden files



On Sat, 4 Oct 2008, yelo_3 wrote:

> I've digger a little deeper and found glocalfileinfo.c
> there are a few getxattr calls in the function
> get_one_xattr_from_fd (int         fd,
> 		       GFileInfo  *info,
> 		       const char *gio_attr,
> 		       const char *xattr)
> 
> It's a bit long, so I didn't paste it, but these are the most important steps:
> g_fgetxattr (fd, xattr, value_p, len); /* macro for fgetxattr */
> escape_xattr (info, gio_attr, value_p, len); /* calls the function
> g_file_info_set_attribute */
> 
> Anyway I dont't know which is the corresponding xattr to
> G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN.
> 
> Sorry if I was still not enough helpful, maybe you should wait for
> Alexander reply!

We may be much closer, thanks. If indeed [f]getxattr(2) is used then we 
would only need to know the name of the extended attribute.

Then you could add support in ntfs-3g.c:ntfs_fuse_getxattr(). The hidden 
attribute is ni->flags & FILE_ATTR_HIDDEN. Since this code is not critical, 
it could be even included in the next stable ntfs-3g release, perhaps in a 
week.

At the moment you also need to use the streams_interface=xattr mount option 
to support extended attributes. This will be default at some point in the 
future.

	Szaka

--
NTFS-3G:  http://ntfs-3g.org


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]