Lines Matching defs:slice

52 	char	*slice;
72 static struct devinfo_storage_minor *devinfo_storage_new_minor(char *maindev_path, char *slice,
834 free (m->slice);
842 devinfo_storage_new_minor(char *maindev_path, char *slice, char *devlink, dev_t dev, int dosnum)
851 * For volume's devfs_path we'll use minor_path/slice instead of
854 pathlen = strlen (maindev_path) + strlen (slice) + 2;
856 snprintf(devpath, pathlen, "%s/%s", maindev_path, slice);
860 m->slice = strdup (slice);
890 char *slice;
931 slice = devinfo_volume_get_slice_name (devlink);
932 if (strlen (slice) < 2) {
939 if ((strlen (slice) > 1) && (slice[0] == 'p') && isdigit(slice[1]) &&
940 ((atol(&slice[1])) > 0)) {
946 m = devinfo_storage_new_minor(minor_path, slice, devlink, dev, -1);
954 if ((strcmp (slice, "d0") == 0) ||
955 (((strcmp (slice, whole_disk) == 0) && (maindev == NULL)))) {
997 snprintf(dospath, sizeof (dospath), "%s:%d", maindev->slice, i);
1006 maindev_is_d0 = (strcmp (maindev->slice, "d0") == 0);
1013 if (maindev_is_d0 && (strcmp (m->slice, whole_disk) == 0)) {
1018 if (is_cdrom && (strcmp (m->slice, "p0") == 0)) {
1063 char *slice = m->slice;
1072 "%s/%s", hal_device_get_udi (parent), slice);
1075 hal_device_property_set_string (d, "info.product", slice);
1085 hal_device_property_set_string (d, "block.solaris.slice", slice);
1128 const char *slice;
1141 slice = hal_device_property_get_string(d, "block.solaris.slice");
1143 (slice == NULL) || (strlen (slice) < 2)) {
1166 if ((slice[0] == 's') && (isdigit(slice[1])) && ((strcmp (slice, whole_disk)) != 0) &&
1168 HAL_INFO (("Not probing slice %s", hal_device_get_udi (d)));
1451 char *part, *slice, *disk;
1460 slice = strrchr(devlink, 's');
1463 if ((part != NULL) && (part > slice) && (part > disk)) {
1465 } else if ((slice != NULL) && (slice > disk)) {
1466 s = slice;