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

Verify windows implementation #1

Open
nicokoch opened this issue Aug 10, 2018 · 2 comments
Open

Verify windows implementation #1

nicokoch opened this issue Aug 10, 2018 · 2 comments
Labels

Comments

@nicokoch
Copy link
Owner

Is only compile-tested at the moment

@ghost
Copy link

ghost commented Aug 11, 2018

As a head's up, FSCTL_DUPLICATE_EXTENTS_TO_FILE only works on ReFS which is only available on Windows Server 2016+. To makes things worse, ReFS volumes are not bootable. Therefore, this will not work on any Windows boot volume.

Running the example on 99.999% of Windows volumes will result in this:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 1, kind: Other, message: "Incorrect function." }', libcore\result.rs:945:5

Sorry to be the bearer of bad news!

@nicokoch
Copy link
Owner Author

Running the example on 99.999% of Windows volumes will result in this:
thread 'main' panicked at 'called Result::unwrap() on an Err value: Os { code: 1, kind: Other, message: "Incorrect function." }', libcore\result.rs:945:5

This is known and expected.
If certain file systems do not support the functionality, we can't to anything about it.

Maybe in the future, some Windows client versions will be supported.

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

No branches or pull requests

1 participant