What's the difference between these two ioctls and are they both implemented on Linux? I've been trying to "trim" the front a file with FREESP and I keep getting 0 length files. thanks, Ian
So the fcntl is different from the ioctl? What I'm trying to do is poke a hole in a file where there used to be data. The specific application is with a big long stream of mpeg data and we want to tr
No, Irix uses fcntl for these calls, we made them ioctl calls on Linux. To remove space from a file you should use UNRESVSP, FREESP will only work at the end of the file I think. You say UNRESVSP is
good, I was starting to sweat that a little. I thought they were implemented in Linux. I will do that immediately and post a follow up as soon as I'm done. That is exactly what I want. I'm building a
My mistake. It looks like the unreservespace is working correctly now... says there is a hole and it now looks like there is one in the file. thanks, Ian
My mistake was that my test harness wasn't multiplying my "kilobytes" to delete by the proper multiplier. When you poke a 2K hole in a file you might not actually free any blocks, where a 2MB file ha