trim and improve existing code in get_current_disks()