Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial and NTFS Alternate data stream

How does Mercurial handle Alternate Data Streams (in the NTFS file system)? If it can't handle that, is there a DCVS that does?

EDIT: When I change version with update, what happens to the ADS ? Is it lost (erased)? Is it versioned too? Is it alltogether ignored?

like image 973
DonkeyMaster Avatar asked Jan 11 '11 14:01

DonkeyMaster


People also ask

What is NTFS alternate data streams?

Alternate Data Streams (ADS) is a virtually unknown compatibility feature of New Technology File System (NTFS) that can provide attackers with a method of hiding hacker tools, keyloggers, and so on, on a breached system and then will allow them execution without being detected.

Which file system supports alternate data streams?

Description. The NTFS file system includes support for alternate data streams. This is not a well known feature and was included, primarily, to provide compatibility with files in the Macintosh file system. Alternate data streams allow files to contain more than one stream of data.

What is alternate data stream file?

An Alternate Data Stream is a little-known feature of the NTFS file system. It has the ability of forking data into an existing file without changing its file size or functionality. Think of ADS as a 'file inside another file'.

Does Linux have alternate data streams?

Linux has support for extended attributes, but not for alternate data streams or NFSv4 named attributes (either on client or server). The NFSv4 protocol supports "user." extended attributes, see RFC 8276, as do recent Linux clients and servers.


1 Answers

Mercurial does not store alternate data stream. Additionally, they are likely to be overwritten on update.

I don't think any of the open source VCS I know handle that kind of thing (even permissions are usually not handled).

like image 82
tonfa Avatar answered Oct 09 '22 17:10

tonfa