Rather than read / write things, where possible map in the filesystem
image into memory with mmap. Then provide a zero-copy interface to
getblk, bread, bwrite. This speeds up creation of msdos filesystems
from 30s to .6s:
Before:
7.330u 23.841s 0:31.17 100.0% 198+360k 0+250522io 4pf+0w
After:
0.165u 0.464s 0:00.62 100.0% 193+352k 0+19io 1013pf+0w
Not yet enabled for ffs, since it dumps core. Also, the win is smaller
since w/o this ffs takes only 3s and mmap is optional.
Sponsored by: Netflix