Impliment get_parent method to get parent device for the given partition