* Support for ADS (Alternate Data Streams) @ 2022-01-02 20:50 cygwin 2022-01-02 23:06 ` Thomas Wolff 2022-01-04 3:40 ` NightStrike 0 siblings, 2 replies; 7+ messages in thread From: cygwin @ 2022-01-02 20:50 UTC (permalink / raw) To: cygwin 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? ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Support for ADS (Alternate Data Streams) 2022-01-02 20:50 Support for ADS (Alternate Data Streams) cygwin @ 2022-01-02 23:06 ` Thomas Wolff 2022-01-02 23:23 ` cygwin 2022-01-04 3:40 ` NightStrike 1 sibling, 1 reply; 7+ messages in thread From: Thomas Wolff @ 2022-01-02 23:06 UTC (permalink / raw) To: cygwin Am 02.01.2022 um 21:50 schrieb cygwin@kosowsky.org: > 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? This was discussed in fact more than a decade ago: https://sourceware.org/pipermail/cygwin/2009-November/181422.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Support for ADS (Alternate Data Streams) 2022-01-02 23:06 ` Thomas Wolff @ 2022-01-02 23:23 ` cygwin 0 siblings, 0 replies; 7+ messages in thread From: cygwin @ 2022-01-02 23:23 UTC (permalink / raw) To: cygwin Yes I recall that thread :) Indeed, I under the pseudonym (aputerguy) was the one who INITIATED the thread :) [I own the domain kosowksy.org which my many personalities share] But looks like nothing was done since, right? Thomas Wolff wrote at about 00:06:27 +0100 on Monday, January 3, 2022: > Am 02.01.2022 um 21:50 schrieb cygwin@kosowsky.org: > > 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? > This was discussed in fact more than a decade ago: > https://sourceware.org/pipermail/cygwin/2009-November/181422.html > > -- > 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Support for ADS (Alternate Data Streams) 2022-01-02 20:50 Support for ADS (Alternate Data Streams) cygwin 2022-01-02 23:06 ` Thomas Wolff @ 2022-01-04 3:40 ` NightStrike 2022-01-05 10:07 ` Corinna Vinschen 1 sibling, 1 reply; 7+ messages in thread From: NightStrike @ 2022-01-04 3:40 UTC (permalink / raw) To: cygwin; +Cc: cygwin 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Support for ADS (Alternate Data Streams) 2022-01-04 3:40 ` NightStrike @ 2022-01-05 10:07 ` Corinna Vinschen 2022-01-08 9:14 ` NightStrike 0 siblings, 1 reply; 7+ messages in thread From: Corinna Vinschen @ 2022-01-05 10:07 UTC (permalink / raw) To: cygwin 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Support for ADS (Alternate Data Streams) 2022-01-05 10:07 ` Corinna Vinschen @ 2022-01-08 9:14 ` NightStrike 2022-01-10 9:27 ` Corinna Vinschen 0 siblings, 1 reply; 7+ messages in thread From: NightStrike @ 2022-01-08 9:14 UTC (permalink / raw) To: cygwin On Wed, Jan 5, 2022, 05:08 Corinna Vinschen <corinna-cygwin@cygwin.com> wrote: > 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. > 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'. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Support for ADS (Alternate Data Streams) 2022-01-08 9:14 ` NightStrike @ 2022-01-10 9:27 ` Corinna Vinschen 0 siblings, 0 replies; 7+ messages in thread From: Corinna Vinschen @ 2022-01-10 9:27 UTC (permalink / raw) To: cygwin On Jan 8 04:14, NightStrike wrote: > On Wed, Jan 5, 2022, 05:08 Corinna Vinschen <corinna-cygwin@cygwin.com> > wrote: > > > 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. > > > > 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'. Hmm, that's not quite what I expected. We could support an EA like ntfs.streams.list, but we can't use the colon syntax. We could map streams to EAs so they are read with getxattr and written with setxattr. Or we would have to invent a different way. Corinna ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-01-10 9:27 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-01-02 20:50 Support for ADS (Alternate Data Streams) cygwin 2022-01-02 23:06 ` Thomas Wolff 2022-01-02 23:23 ` cygwin 2022-01-04 3:40 ` NightStrike 2022-01-05 10:07 ` Corinna Vinschen 2022-01-08 9:14 ` NightStrike 2022-01-10 9:27 ` Corinna Vinschen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).