Throw an error in case of disks with duplicate names. #545