block: move disk_name and related helpers out of partition-generic.c