database: make sure a type is present.
database: make sure a type is present.

Our directory scanner currently requires a type to be passed, and we have a
FIXME saying that we should stat when there is none. In some filesystems,
in particular, XFS, getdents won't return a type, meaning we should manually
probe it.

Signed-off-by: Glauber Costa <f8b79557d19b40666ebe336545a0b6178af65685@cloudius-systems.com>

kangkot/scylla,kjniemi/scylla,rluta/scylla,capturePointer/scylla,avikivity/scylla,bowlofstew/scylla,glommer/scylla,raphaelsc/scylla,eklitzke/scylla,dwdm/scylla,guiquanz/scylla,guiquanz/scylla,acbellini/scylla,eklitzke/scylla,respu/scylla,tempbottle/scylla,scylladb/scylla,kjniemi/scylla,phonkee/scylla,gwicke/scylla,scylladb/scylla,wildinto/scylla,gwicke/scylla,gwicke/scylla,acbellini/scylla,dwdm/scylla,justintung/scylla,duarten/scylla,senseb/scylla,duarten/scylla,shaunstanislaus/scylla,linearregression/scylla,scylladb/scylla,justintung/scylla,victorbriz/scylla,phonkee/scylla,capturePointer/scylla,linearregression/scylla,phonkee/scylla,scylladb/scylla,respu/scylla,bowlofstew/scylla,stamhe/scylla,shaunstanislaus/scylla,stamhe/scylla,aruanruan/scylla,aruanruan/scylla,bowlofstew/scylla,capturePointer/scylla,rluta/scylla,victorbriz/scylla,kangkot/scylla,avikivity/scylla,rentongzhang/scylla,glommer/scylla,eklitzke/scylla,senseb/scylla,wildinto/scylla,guiquanz/scylla,dwdm/scylla,kangkot/scylla,asias/scylla,duarten/scylla,rentongzhang/scylla,acbellini/scylla,wildinto/scylla,rluta/scylla,aruanruan/scylla,raphaelsc/scylla,avikivity/scylla,tempbottle/scylla,asias/scylla,rentongzhang/scylla,justintung/scylla,stamhe/scylla,kjniemi/scylla,victorbriz/scylla,asias/scylla,linearregression/scylla,shaunstanislaus/scylla,respu/scylla,tempbottle/scylla,raphaelsc/scylla,glommer/scylla,senseb/scylla