found my own answer.. maybe
Windows uses unbuffered disk IO whereas Linux uses unbuffered file IO
http://www.developer.com/net/cplus/article.php/10919_2119781_5
nice help how to do on either...
Type: Posts; User: jcas1411
found my own answer.. maybe
Windows uses unbuffered disk IO whereas Linux uses unbuffered file IO
http://www.developer.com/net/cplus/article.php/10919_2119781_5
nice help how to do on either...
my bad.. ntfs in linux isnt broken.. had a fat32 drive in.. sparse files fool fat32 but not ntfs..
in Windows the CreateFile method is actually creating a handler for direct disk IO.. that is what...
my bad.. was formated fat32.. df reports ntfs correctly
got excited there for a moment...
sweet.. df does report that 0 mb is available (even though it lets me write to it).. now to find what df is using!
Thanks for the suggestion but NTFS is not a block based file system
completely understand.. does the Linux kernel prevent you from talking to an NTFS driver directly to check drivespace? or is there a better way in C to find out the available disk space, what/how...
yep..
The only problem I see with this is that it doesn't reserve space on the disk, using the code below I was able to write 10 files of 640MB each to a 1GB pen drive. This method creates sparse files...
Thanks but I stated that above.
I know how in Windows to create a file with an exact size x
Using the Win32 API, CreateFile, SetFilePointerEx, SetEndOfFile, and CloseHandle in that same order but how could I do something similar...