Re: Question about the fallocate system call

2012-07-26 Thread Pádraig Brady
On 07/26/2012 03:30 PM, Jidong Xiao wrote: > Hi, > > I just have a simple question about fallocate. > > I want to test the punch hole function of fallocate(). So I wrote such > a simple program: > > yosemite:/mnt # cat test.c > #include > #include > #include > #include > #include > #include

Question about the fallocate system call

2012-07-26 Thread Jidong Xiao
Hi, I just have a simple question about fallocate. I want to test the punch hole function of fallocate(). So I wrote such a simple program: yosemite:/mnt # cat test.c #include #include #include #include #include #include int main(void) { int fd; fd = open("testfile", O_RD