Re: OS X
> I used to use this when I was
> benchmarking some linux drives and
> thought it was great.
> Now I would like to use it to benchmark
> the drives on my Mac.
> Is there a port of Bonnie++ for Mac? If
> not, any plans for one?
Bonnie++ works on Mac OS X. There is two problems.
The first is that readdir is unreliable on HFS+, one
should use fts_read instead which is not part of posix.
The second is a small wrong type casting in
The problem is in line 168 :
wrote = write(FILE_FD, buf, min(sizeof(buf), (unsigned
int)file_size - size));
The type of sizeof is size_t. The typecast make Apple's
C++ choke on this line.