delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/01/08/04:15:04

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4AC8C3858401
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=aHeAnMtV0Liz68NuQkyZQHDADh+KiqtLA0vZJEhDvKs=;
b=ZMWSZOEw2MwUS2mLbkmxVJ2yzBwWIjpfDMwqt3y3/dhUaW6ElMcV/BL1EGRkFw+PEG
Odo+nAmU/9AYw/9hJAYvO0jtIYSawhPXMrDUntmZy3sk0g4+20f08m+PCHWrI2TlovpO
A/ByaKJMtdP+kKIjjK2BM6M1W0HEbEzn0KA9KGAVmEGbSFHPQHEhkPMJOjfYmwZ34RAO
36P0n5GzqHfvsCdUGQp8rzdeayhjipHUMv7f8KYWP5t1aesJFYdc5gnZbrSdKHL2aP9g
rRygV4TzGUWOyOcQUxxdRQUVFNsInknj0PJgkBCu/8FS86r/Xdn/T/R0KD3/IdD48DWs
+mtQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=aHeAnMtV0Liz68NuQkyZQHDADh+KiqtLA0vZJEhDvKs=;
b=oD6g0QL2I/fwlFR3TMv91rjKf09QVnIrCF1UtVSNQNa+Gx5H59WHc5fM4E1WIEWm/U
9R5CPsCpqWdjEt28T1Z5XvJ+8zEYnRuRtLgIVVSwJQnJvdHUjSE/VNMHZEdS+RDchsdD
2VKr/7XByLeEJcRv6jTCJgQpQo0pLqJlA/Cobnr96GMUwa6aW6d092Y8YGJ5w8SwiRVm
fU1qMX5MJYHmOX9rOEyOTCMjl2ZZ5NSDPgdximSr7/3Kb9Y6tLND2e7uKWLy+VBpMCvq
gHqSdDi4FTzUJ7O7bP+UzqGObOWBJ7/JQLDMvaEEfv0sBnZSAusP35lXjk6fC5U8w5ol
ByQg==
X-Gm-Message-State: AOAM532vKEeuK/N1Zoo9jQq14+kRrX36hckpeM4s6RyyNi7fCxGfpEas
epGbqsoHeob5ft/Zlt2ebWAHWvkjKMpwO3iVlyGbHkZovxI=
X-Google-Smtp-Source: ABdhPJz0ZmWrIw3Fq3pZrzceeEYwOMZecIFWuVq0abx1ne8ycNQbU03khmYiY5onKXceJOublXW25F5jo5sDpJqGMWg=
X-Received: by 2002:a05:6402:28e:: with SMTP id
l14mr4559356edv.396.1641633286129;
Sat, 08 Jan 2022 01:14:46 -0800 (PST)
MIME-Version: 1.0
References: <25042 DOT 4135 DOT 663145 DOT 551881 AT consult DOT pretender>
<CAF1jjLv+5JA5EGa=YX34fnExi5cFyoPzc8K=PkmW11o7bU6eRw AT mail DOT gmail DOT com>
<YdVtz7nup9JvZc7M AT calimero DOT vinschen DOT de>
In-Reply-To: <YdVtz7nup9JvZc7M@calimero.vinschen.de>
From: NightStrike <nightstrike AT gmail DOT com>
Date: Sat, 8 Jan 2022 04:14:35 -0500
Message-ID: <CAF1jjLvKD5DXzgev3-JbtZ-wG5XWipRkJjEmhyTupnCcxWyp7g@mail.gmail.com>
Subject: Re: Support for ADS (Alternate Data Streams)
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
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-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Wed, Jan 5, 2022, 05:08 Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
wrote:

> On Jan  3 22:40, NightStrike wrote:
> > On Sun, Jan 2, 2022, 15:51 <cygwin AT kosowsky DOT 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.
>

The ntfs.streams.list attribute contains the stream names, and there's a
shortcut to access them by name with a colon. So if you have a stream named
str and a file named f.txt, you could do 'cat f.txt:str'.

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019