venti: import changes from plan 9

R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5325044
5 files changed