sheep: don't print error message when connection is off

...
Dec 17 19:04:27  ERROR [net 11088] do_read(220) connection is closed (48 bytes left)
Dec 17 19:04:27  ERROR [net 11088] rx_work(684) failed to read a header
...

This is quit annoying since nothing wrong with it and sheep.log is flooded with
these messages.

Signed-off-by: Liu Yuan <namei.unix@gmail.com>
sheep: remove sha1_from_buffer()

This function is buggy yet tricky to debug. For now we can't pass following
script:

for i in `seq 0 2`; do
	sheep/sheep -D -n -z $i -p $((7000+$i)) -c local store/$i
done
sleep 1
dog/dog cluster format -c 3
qemu-img convert linux-0.2.img sheepdog:test
dog/dog vdi snapshot test -s snap
dog/dog cluster snapshot save snap1 snapshot
md5sum /tmp/store/0/obj/{007c2b2500000000,007c2b2500000001,007c2b2500000002,007c2b2500000003,007c2b2500000004}
dog/dog cluster snapshot load snap1 snapshot
md5sum /tmp/store/0/obj/{007c2b2500000000,007c2b2500000001,007c2b2500000002,007c2b2500000003,007c2b2500000004}
dog/dog vdi read test | md5sum
md5sum linux-0.2.img

-----------------------------------------

Instead of debugging of it, this patch tries to remove it since the speedup
from sha1_from_buffer is very limited because we don't have many zero filled
objects.

Reviewed-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
Signed-off-by: Liu Yuan <namei.unix@gmail.com>
sheep: use valloc() for request buffer

Dec 17 23:38:30  ERROR [gway 5442] default_read_from_path(287) failed to read object 7c2b2500000000, path=/tmp/store/0/obj/007c2b2500000000, offset=0, size=4194304, result=-1, Invalid argument
Dec 17 23:38:30  ERROR [gway 5442] err_to_sderr(115) oid=7c2b2500000000, Invalid argument
Dec 17 23:38:30  ERROR [gway 5442] gateway_replication_read(294) local read 7c2b2500000000 failed, Network error between sheep

This bug is triggered when we start sheep with '-D' option (derectio) because
request buffer isn't page aligned.

Reviewed-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
Signed-off-by: Liu Yuan <namei.unix@gmail.com>