Skip to content

Missing NTFS/ReFS sparse support #23

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

Closed
da2x opened this issue May 16, 2020 · 3 comments
Closed

Missing NTFS/ReFS sparse support #23

da2x opened this issue May 16, 2020 · 3 comments

Comments

@da2x
Copy link

da2x commented May 16, 2020

NTFS requires files to be created with the FILE_ATTRIBUTE_SPARSE_FILE attribute to treat them as sparse. This is different from other modern OSes where you don’t need to do anything special.

I tested with fsutil.exe sparse queryflag supposedly_sparse.file and various calls to check file sizes, and found that the files aren’t marked as sparse files on NTFS.

@RangerMauve
Copy link

Is there a way to set this flag in the node.js FS module? I can't find any docs for it.

@da2x
Copy link
Author

da2x commented Nov 9, 2020

@xori xori mentioned this issue Jan 8, 2021
@mafintosh
Copy link
Collaborator

In latest (sparse: true)

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

Successfully merging a pull request may close this issue.

3 participants