Check directory pool permission

Signed-off-by: Yanbing Du <ydu@redhat.com>
Merge pull request #380 from will-Do/dir_pool_mode

Check directory pool permission