From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by sourceware.org (Postfix) with ESMTPS id 4AC8C3858401 for ; Sat, 8 Jan 2022 09:14:47 +0000 (GMT) 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 Received: by mail-ed1-x536.google.com with SMTP id u25so31609227edf.1 for ; Sat, 08 Jan 2022 01:14:47 -0800 (PST) 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.4135.663145.551881@consult.pretender> In-Reply-To: From: NightStrike Date: Sat, 8 Jan 2022 04:14:35 -0500 Message-ID: Subject: Re: Support for ADS (Alternate Data Streams) To: cygwin@cygwin.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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2022 09:14:49 -0000 On Wed, Jan 5, 2022, 05:08 Corinna Vinschen wrote: > On Jan 3 22:40, NightStrike wrote: > > On Sun, Jan 2, 2022, 15:51 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'.