def _ensure_no_filesystem(device, block_device_manager):
    if block_device_manager.has_filesystem(device):
        raise FilesystemExists(device)
Raises an error if there's already a filesystem on ``device``.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/agents/blockdevice.py/_ensure_no_filesystem