disk-io

low level C++ style i/o in C# for reading FAT32

i am workign on reading the FAT32 entry of the harddisk and so far have been successful in reading the entries by makign use of the following APIs CreateFile, ReadFile, SetFilePointer. Here is my code in C# written so far. ---The DLL IMPORTS----- [DllImport("kernel32.dll", SetLastError = true)] static extern IntPtr CreateFile(...

Fast Linux File Count for a large number of files

I'm trying to figure out the best way to find the number of files in a particular directory when there are a very large number of files ( > 100,000). When there are that many files, performing "ls | wc -l" takes quite a long time to execute. I believe this is because it's returning the names of all the files. I'm trying to take up as ...

Out of space on NTFS disk after a series of same-sized files creation/deletion

Hi all, I've ran into a really weird problem while working on a large project. I write a bunch of same-size files on a partition (tried both RAM disks and virtual disks created via diskmgmt.msc). When there is not enough free space to fit another file (as reported by GetDiskFreeSpaceExW), I delete one (only one) of the previously create...