Check directory pool permission

Signed-off-by: Yanbing Du <ydu@redhat.com>