Changeset 2833 in MondoRescue for branches/2.2.8/mondo/src/mondorestore
- Timestamp:
- Jun 19, 2011, 2:13:48 AM (13 years ago)
- Location:
- branches/2.2.8/mondo/src/mondorestore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.8/mondo/src/mondorestore/mondo-prep.c
r2808 r2833 288 288 log_msg(1, "OK, rewound i-want-my-lvm. Doing funky stuff..."); 289 289 rewind(fin); 290 for (fgets(incoming, MAX_STR_LEN - 1, fin); !feof(fin); fgets(incoming, MAX_STR_LEN - 1, fin)) {290 for (fgets(incoming, 512, fin); !feof(fin); fgets(incoming, 512, fin)) { 291 291 fgetpos(fin, &orig_pos); 292 292 if (incoming[0] != '#') { … … 301 301 if ((p = strstr(incoming, "vgcreate"))) { 302 302 // include next line(s) if they end in /dev (cos we've got a broken i-want-my-lvm) 303 for (fgets(tmp, MAX_STR_LEN - 1, fin); !feof(fin); fgets(tmp, MAX_STR_LEN - 1, fin)) {303 for (fgets(tmp, 512, fin); !feof(fin); fgets(tmp, 512, fin)) { 304 304 if (tmp[0] == '#') { 305 305 fsetpos(fin, &orig_pos); … … 1784 1784 MONDO_LOGFILE); 1785 1785 1786 /* BERLIOS: sho uld not be called each time */1786 /* BERLIOS: shoould not be called each time */ 1787 1787 part_table_fmt = which_partition_format(drive); 1788 1788 output[0] = '\0'; … … 2406 2406 } else if (strcmp(format, "vmfs") == 0) { 2407 2407 strcpy(program, "mkfs -t vmfs"); 2408 } else if (strcmp(format, "ntfs") == 0) {2409 /*2410 * mkfs.ntfs treats the '-c' switch as 'specify cluster size'2411 * so the default "mkfs -t %s -c" command structure fails2412 */2413 strcpy(program, "mkfs -t ntfs");2414 2408 } else if (strcmp(format, "ocfs2") == 0) { 2415 2409 /* -
branches/2.2.8/mondo/src/mondorestore/mondo-rstr-tools.c
r2776 r2833 721 721 run_program_and_log_output("mkdir -p " MNT_RESTORING 722 722 "/var/run/console", FALSE); 723 /* To support latest Ubuntu where /var is a separate FS Cf: http://linux.derkeiler.com/Mailing-Lists/Ubuntu/2007-04/msg01319.html */ 724 run_program_and_log_output("mkdir -p " MNT_RESTORING 725 "/var/lock /var/run", FALSE); 723 726 run_program_and_log_output("chmod 777 " MNT_RESTORING "/dev/null", 724 727 FALSE); … … 2086 2089 sprintf(command, "umount " MNT_RESTORING "%s", 2087 2090 mountlist->el[lino].mountpoint); 2088 2089 /* To support latest Ubuntu where /var is a separate FS2090 * Cf: http://linux.derkeiler.com/Mailing-Lists/Ubuntu/2007-04/msg01319.html2091 * we need to create some dirs under the real / before unmounting it */2092 if (!strcmp(mountlist->el[lino].mountpoint, "/")) {2093 run_program_and_log_output("mkdir -p " MNT_RESTORING "/var/lock", FALSE);2094 run_program_and_log_output("mkdir -p " MNT_RESTORING "/var/run", FALSE);2095 }2096 2091 } 2097 2092 } -
branches/2.2.8/mondo/src/mondorestore/mondorestore.c
r2776 r2833 655 655 protect_against_braindead_sysadmins(); 656 656 retval += unmount_all_devices(mountlist); 657 658 657 /* if (restore_some || restore_all || */ 659 658 if (ask_me_yes_or_no
Note:
See TracChangeset
for help on using the changeset viewer.