remove path related code from check_volume_access()