X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 41D8F3858006
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1641377266;
	bh=jBX7TE+Qx5j79Cvnk8HvUUmzliHdHqsloJTEsH5clY8=;
	h=Date:From:To:Subject:References:In-Reply-To:List-Id:
	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
	 Reply-To:From;
	b=EH9FnNoey+/I8KYL5ldoR/p6hw+L0PTJJN4Xo9w9m/EX8uCmxjIVf6D88W0oSYEh5
	 IZBHu6aoIKe5oVDe66CakIqHCdva2mGbd46JjG0wk5eujhVR5jy4JZXZkEYN8ZzOZI
	 lon0Ot6Zkp0lKAKMUc/wiwItymc8EWabGtOfyzA4=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 921063858427
Authentication-Results: sourceware.org;
 dmarc=fail (p=none dis=none) header.from=cygwin.com
Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=cygwin.com
Date: Wed, 5 Jan 2022 11:07:11 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Support for ADS (Alternate Data Streams)
Message-ID: <YdVtz7nup9JvZc7M@calimero.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com
References: <25042.4135.663145.551881@consult.pretender>
 <CAF1jjLv+5JA5EGa=YX34fnExi5cFyoPzc8K=PkmW11o7bU6eRw@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <CAF1jjLv+5JA5EGa=YX34fnExi5cFyoPzc8K=PkmW11o7bU6eRw@mail.gmail.com>
X-Provags-ID: V03:K1:toDD4E6nJkYFUzEPRz1wKczWvluzuUsJjpNlc41mrIaAy2rk7kT
 LMLRIU+NgQ855J9G1AMfDfThJttICoT8giRhsE8XdVeZgGo7bVy1t5/17bEKoF4khoAiYyf
 Gz8jKwHk26hYbnJXHQkXwYK6C1ixJ2y5aPJaQq1UDuQTluEtPNzkS2E38ywPigzkv2eV0Fq
 NnMNVKFA19yUyrAle2I9w==
X-UI-Out-Filterresults: notjunk:1;V03:K0:tgzf7FMEFk4=:DcrVt0tRPZm/+SOC62JZzc
 fE6PamqzNyttIFSiWfHpDjm21RDiqQbOwawtenij10K3SYE480vmXbJXAnvGJ89TCYV/YbYAM
 b+0M9enkcW/6TilDkuhVoe/VvIjwFKroM7SsLZ7XMyxmXWjESkhfTtLDYuW8bH5veX44Cqat1
 xwISpg0SxX9kxU+egMiPipVQFFm6mU6MpydfoUFNVkHE6w+jnwoTNFVpot/DFscRyy/lniOxJ
 x7TmhUZuk98pQj1RHRyoy+59hCROFhPRQbsIX3tov3nwTJiXhvq127GGtUxhhoT93eHIZYVMO
 UIXsp4CoXDKtUqlv/rcIApce3bgDdNIyg6ZrNols6CqdSFtRKPGlD0jQiIIxsY17v7IN5GHEE
 1smDd7N0QG5+Ke2v8+yjBEaqsAJERTqnCu8AjDx1ykBmbentVN/k3b11I7fQbWmwJlYnZ/puZ
 Im+m309p9/xaKQXwEvXviXslHvA5bmG0/dyxEZMBsmC5YTU3UOjG0ZiY2eCaifNfbqS9glhe5
 g/Z1JiU6CDTJE7i8oeS/wGsNObSTlsek8UoM4uqwdjR0yagibf98igY6o+Ucq2la9InC4cF3W
 Oti7jtT5Xqb4sYIJjpX89usa0bCz98MvGDf5h+smWdfKjE4gNDhww0pD7+U3HRtmxssX/N8AL
 6Iv9ZyCJxxe/dt96EcCURkJu86jmkQRG7n2xdmiaS2CwRktkPGuMstnl3QNiTuNyH/COu6MgA
 r5xftnIDKqXRyeLA
X-Spam-Status: No, score=-70.3 required=5.0 tests=BAYES_00,
 GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H5,
 RCVD_IN_MSPIKE_WL, SPF_FAIL, SPF_HELO_NONE,
 TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Reply-To: cygwin@cygwin.com
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

On Jan  3 22:40, NightStrike wrote:
> On Sun, Jan 2, 2022, 15:51 <cygwin@kosowsky.org> wrote:
> 
> > While I recognize that ADS is not supported by POSIX, I was wondering
> > what if any support for ADS might exist within Cygwin.
> >
> > The last time I looked into this was probably more than a decade ago
> > but I am seeing (unfortunately) more usage of ADS in the Windows
> > world, so I was wondering if there has been any effort to support in
> > Cygwin?
> >
> > --
> > Problem reports:      https://cygwin.com/problems.html
> > FAQ:                  https://cygwin.com/faq/
> > Documentation:        https://cygwin.com/docs.html
> > Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
> 
> 
> FWIW, ntfs-3g under Linux maps these to extended attributes

Using the EA API as ntfs-3g with the streams_interface=xattr option
seems like a nice way to allow reading and writing ADS on Cygwin as
well.

Do you know how ntfs-3g performs the mapping?  For instance, I guess
that ADS are stored in the user.* namespace?  Does listxattr list ADS or
does it skip them?  Stuff like that.


Corinna

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
