Since my original question was a bit too vague, let me clarify.
My goals are:
- to estimate blank disc size after selecting filesystem via IMAPI
- to estimate space which my file will consume on this disc if i burn it.
What i would like to know:
- Is it possible to get bytes per sector for selected file system programmatically
- If not, is there default value for bytes per sector which IMAPI uses for different file systems / media types, and is it documented somewhere.
Ok, so the short answer to my question is: one can safely assume, that sector size for DVD/BD discs = 2048 bytes.
The reason, why i was getting different sizes during my debug sessions, was because of an error in code, which retrieved sectors count :)
Mentioned code block was copypasted from http://www.codeproject.com/Articles/24544/Burning-and-Erasing-CD-DVD-Blu-ray-Media-with-C-an , so just in case im posting a quick fix.
original code:
fixed code: