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

losetup assign drive letter to device object #4

Open
crossmeta opened this issue Apr 7, 2019 · 1 comment
Open

losetup assign drive letter to device object #4

crossmeta opened this issue Apr 7, 2019 · 1 comment

Comments

@crossmeta
Copy link
Owner

The loop back devices created by losetup can optionally defined DosDevice name to assign drive letter. This will be useful for WIN32 programs to make use of loop back device.
For example when s3backer is ready the file can be used as disk to create NTFS file system on it.

@crossmeta
Copy link
Owner Author

There is lot more to this than simple DefineDosDevice call. The NtCreateSymbolicLinkObject() is now very restrictive in defining symbolic link in global space \GLOBAL??
After this the device \Device\loop should make use of NT mount manager properly.

Refs:
https://blog.macrium.com/virtual-disk-drivers-uac-and-nt-20c1cfc3933e
The filedisk tools from http://www.acc.umu.se/~bosse/ or http://branten.se/nt/ is useful.

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

No branches or pull requests

1 participant