get_path_status
static int get_path_status(char *devpath, int *status);
if ((err = get_path_status(devpath, &status)) != 0) {