Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/util-linux/fdisk_osf.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/util-linux/fdisk_osf.c
r3232 r3621 367 367 printf("Reading disklabel of %s at sector %u\n", 368 368 partname(disk_device, t+1, 0), ss + BSD_LABELSECTOR); 369 if (xbsd_readlabel(xbsd_part) == 0) 369 if (xbsd_readlabel(xbsd_part) == 0) { 370 370 if (xbsd_create_disklabel() == 0) 371 371 return; 372 372 break; 373 } 373 374 } 374 375 } … … 855 856 d->d_magic = BSD_DISKMAGIC; 856 857 857 if ( strncmp(disk_device, "/dev/sd", 7) == 0)858 if (is_prefixed_with(disk_device, "/dev/sd")) 858 859 d->d_type = BSD_DTYPE_SCSI; 859 860 else
Note:
See TracChangeset
for help on using the changeset viewer.