Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: Does ntfs-3g support Linux hardlinks? #91

Open
aryoda opened this issue Oct 2, 2023 · 4 comments
Open

Documentation: Does ntfs-3g support Linux hardlinks? #91

aryoda opened this issue Oct 2, 2023 · 4 comments

Comments

@aryoda
Copy link

aryoda commented Oct 2, 2023

It it possible to use Linux hardlinks?

I have not found any documentation the explicitly states that it either is supported or is not supported.

@jpandre
Copy link
Collaborator

jpandre commented Oct 4, 2023

[linux@optiplex ~]$ cd /shared/ntfs
[linux@optiplex ntfs]$ echo qwerty > first
[linux@optiplex ntfs]$ ln first second
[linux@optiplex ntfs]$ ln second third
[linux@optiplex ntfs]$ chmod 640 first second third
[linux@optiplex ntfs]$ ls -li first second third
263 -rw-r----- 3 linux linux 7 Oct  4 08:24 first
263 -rw-r----- 3 linux linux 7 Oct  4 08:24 second
263 -rw-r----- 3 linux linux 7 Oct  4 08:24 third
[linux@optiplex ntfs]$ cat first second third
qwerty
qwerty
qwerty
[linux@optiplex ntfs]$

@aryoda
Copy link
Author

aryoda commented Oct 4, 2023

@jpandre THX a lot for testing this :-) Could you please add the mounting options that you have used to have a fully reproducible example?

It would be great if one of the developers could confirm that hardlinks are fully supported (or describing the known limitations).

@unsound
Copy link
Member

unsound commented Oct 5, 2023

@aryoda If you're looking for documentation, it's described in the very first section of the ntfs-3g manpage:

DESCRIPTION
       ntfs-3g is an NTFS driver, which can create, remove, rename, move
       files, directories, hard links, and streams; it can read and write
       files, including streams, sparse files and transparently compressed
       files; it can handle special files like symbolic links, devices, and
       FIFOs; moreover it provides standard management of file ownership and
       permissions, including POSIX ACLs.

No special options are needed, they are always enabled.

@aryoda
Copy link
Author

aryoda commented Oct 6, 2023

May I suggest to add a full list of supported features to the readme.md - maybe similar or in sync with the above cited man page - so that it is easier to find this information (without the need to install ntfs-3g first)...

Eg. hard links are not mentioned there currently...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants