worker: remove unused wq_state

wq_state isn't used at all. It is non-sense to keep it in the code.

Signed-off-by: Liu Yuan <tailai.ly@taobao.com>
tracer: rework tracer to work with master

Signed-off-by: Liu Yuan <tailai.ly@taobao.com>
trace: fix trace-cat commind for empty trace file

Signed-off-by: Liu Yuan <tailai.ly@taobao.com>
collie: use do_generic_subcommind in debug module

Signed-off-by: Liu Yuan <tailai.ly@taobao.com>
md: create .stale for newly plugged disk

Signed-off-by: Liu Yuan <tailai.ly@taobao.com>
md: fix a fatal bug in check_and_move()

We can't rename(2) objects accross devices and this will cause recovery to fail.

Signed-off-by: Liu Yuan <tailai.ly@taobao.com>
md: make MD support as always enabled

Currently, we can plug new disks even MD isn't enabled. Following process

$ sheep /store # MD isn't enabled
$ collie node md plug /new_disk

will cause big trouble because plugging will succeed and force a recovery where
old /store isn't counted in the disk arrays.

To avoid such random careless opertaion and keep simplicity, this patch:

Make MD support as always enabled then the interface to be more upgradeing friendly:

   $ sheep /store # will enable MD and meta-store and object-store will share the same /store
   $ sheep /metastore,/disk1{,.../diskN,...} # works as before

Signed-off-by: Liu Yuan <tailai.ly@taobao.com>