Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/util-linux/fdisk_osf.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/util-linux/fdisk_osf.c
r2725 r3232 44 44 #define BSD_LINUX_BOOTDIR "/usr/ucb/mdec" 45 45 46 #if defined(i386) || defined(__sparc__) || defined(__arm__) \ 47 || defined(__m68k__) || defined(__mips__) || defined(__s390__) \ 48 || defined(__s390__) || defined(__s390x__) \ 49 || defined(__sh__) || defined(__x86_64__) || defined(__avr32__) \ 50 || defined(__nds32__) 51 # define BSD_LABELSECTOR 1 52 # define BSD_LABELOFFSET 0 53 #elif defined(__alpha__) || defined(__powerpc__) || defined(__ia64__) \ 46 #if defined(__alpha__) \ 47 || defined(__powerpc__) \ 48 || defined(__ia64__) \ 54 49 || defined(__hppa__) 55 50 # define BSD_LABELSECTOR 0 56 51 # define BSD_LABELOFFSET 64 57 52 #else 58 # error unknown architecture 53 # define BSD_LABELSECTOR 1 54 # define BSD_LABELOFFSET 0 59 55 #endif 60 56 … … 903 899 #else 904 900 d->d_npartitions = 3; 905 pp = &d->d_partitions[2]; /* Partition C should be 906 the whole disk */ 901 pp = &d->d_partitions[2]; /* Partition C should be the whole disk */ 907 902 pp->p_offset = 0; 908 903 pp->p_size = d->d_secperunit; … … 940 935 941 936 memmove(d, &disklabelbuffer[BSD_LABELSECTOR * SECTOR_SIZE + BSD_LABELOFFSET], 942 937 sizeof(struct xbsd_disklabel)); 943 938 944 939 if (d->d_magic != BSD_DISKMAGIC || d->d_magic2 != BSD_DISKMAGIC)
Note:
See TracChangeset
for help on using the changeset viewer.