feaature #2097: Re-add disk_type function