This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANNOUNCEMENT] attr 2.4.48-2


On Dec 20 09:03, Brian Inglis wrote:
> On 2018-12-20 03:04, Corinna Vinschen wrote:
> > The following packages have been uploaded to the Cygwin distribution:
> > 
> > * attr-2.4.48-2
> > * libattr-devel-2.4.48-2
> > * libattr1-2.4.48-2
> 
> Does this release support listing Windows Alternate Data Streams, as the Linux
> release does with Tuxera NTFS-3G?

libattr only supports reading and writing EAs, it has no capabilities to
read or write ADS.  Ntfs-3g supports the streams_interface=windows
option which allows to read ADS.  This also adds the ntfs.streams.list
EA to a file with named ADS.  So attr/getfattr can only inspect the
ntfs.streams.list EA because the NTFS-3G driver creates them on the fly
when inspecting the file EAs.

tl;dr: No, sorry.  This could only work if Cygwin fakes the
ntfs.streams.list EA per file just like the NTFS-3G driver.

Patches welcome.  Looks like a nice little project if you want to get
your hands dirty.  The functions to handle EAs are pretty
self-sufficiently implemented in ntea.cc.  A little loop about
NtQueryInformationFile(FileStreamInformation) should do it.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]