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

BlockDevice import last fileSystemLayout? #3

Open
fengjiannan2010 opened this issue Apr 25, 2024 · 2 comments
Open

BlockDevice import last fileSystemLayout? #3

fengjiannan2010 opened this issue Apr 25, 2024 · 2 comments
Labels
question Further information is requested

Comments

@fengjiannan2010
Copy link

Hello, I am using BlockDevice to burn files. After the burning is completed, I call FinalizeDisc(fileSystemLayout, "HPCDEDISC", true, true, false, true) to complete the burning. I need to append the burning file and import the last burned fileSystemLayout before burning. How should I obtain the DataFile fileSystemLayout?

@vkantchev
Copy link
Contributor

vkantchev commented Apr 25, 2024

BlockDevice is a low level interface, so it delegates the file system to the user. There is a simplified example in the legacy samples which is still relevant.

See this code:
https://github.com/primoburner/primoburner-samples-legacy/blob/main/windows/net/samples/BlockDevice/MainClass.cs#L337

Basically you keep the disc address and the size for for each file and use that to create the file system tree to pass to BlockDevice.

If you need a more automated way of doing things you could use the DataDisc interface. That takes care of a lot of details for you. And the opposite is true: if you need more control then use BlockDevice.

@vkantchev vkantchev added the question Further information is requested label Apr 25, 2024
@fengjiannan2010
Copy link
Author

fengjiannan2010 commented Apr 26, 2024

Hello, I am using this sample code for testing. I now need to use BlockDevice to implement multi-session burning. When using BlockDevice to burn files, you need to import the file layout of the last burn.

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

No branches or pull requests

2 participants