Changeset 2011 in MondoRescue for branches/2.2.7/mondo/src
- Timestamp:
- Aug 11, 2008, 2:46:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.7/mondo/src/common/libmondo-cli.c
r2007 r2011 625 625 /* It's not swap. See if we can find the mount point from the mount command. */ 626 626 asprintf(&command, "mount 2>/dev/null | awk '{if((NF>0)&&($1==\"%s\")){print $3}}'", partitions[i]); 627 sprintf(&tmp, "%s", call_program_and_get_last_line_of_output(command));627 asprintf(&tmp, "%s", call_program_and_get_last_line_of_output(command)); 628 628 paranoid_free(command); 629 629 if (strlen(tmp)) { … … 682 682 *******/ 683 683 paranoid_free(mount_list); 684 asprintf(&command, 684 asprintf(&command, "%s", 685 685 "cat /proc/mdstat|grep -iv Personal|awk '{if($0~\"^.*[ ]+:\"){printf(\"/dev/%s \", $1)}}END{print \"\"}'"); 686 686 log_msg (5, "Running: %s", command); … … 724 724 ********/ 725 725 log_msg (5, "It's not swap, mounted, or LVM. See if it's used in a software raid device."); 726 asprintf( command, "mdadm --examine %s 2>/dev/null | awk '{if($1 == \"UUID\"){print $3}}'", partitions[i]);726 asprintf(&command, "mdadm --examine %s 2>/dev/null | awk '{if($1 == \"UUID\"){print $3}}'", partitions[i]); 727 727 log_msg(4, " Running: %s", command); 728 728 asprintf(&tmp, "%s", call_program_and_get_last_line_of_output(command)); … … 735 735 log_msg (5, " UUID: %s", tmp); 736 736 /* Get the Software raid device list */ 737 asprintf(&command, 737 asprintf(&command, "%s", 738 738 "cat /proc/mdstat|grep -iv Personal|awk '{if($0~\"^.*[ ]+:\"){printf(\"/dev/%s \", $1)}}END{print \"\"}'"); 739 739 log_msg (5, " Running: %s", command); … … 1222 1222 if (strlen(mounted_on_dsf)) { 1223 1223 log_to_screen("Excluding the following file systems on %s:\n", flag_val['E']); 1224 `log_to_screen(" %s\n", mounted_on_dsf);1224 log_to_screen(" %s\n", mounted_on_dsf); 1225 1225 log_msg (5, "Adding to bkpinfo->exclude_paths due to -E option: %s", mounted_on_dsf); 1226 1226 strcat(bkpinfo->exclude_paths, mounted_on_dsf);
Note:
See TracChangeset
for help on using the changeset viewer.