[ANNOUNCEMENT] attr 2.4.48-2

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Dec 21 07:13:00 GMT 2018


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20181221/7191e21a/attachment.sig>


More information about the Cygwin mailing list