Changeset 2053 in MondoRescue for branches/2.2.8/mondo/src/common/libmondo-cli.c
- Timestamp:
- Oct 23, 2008, 3:16:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.8/mondo/src/common/libmondo-cli.c
r2036 r2053 414 414 { 415 415 int i = 0; 416 int lastpos = 0;417 416 int mount_cnt = 0; 418 417 char *mounted_file_system = NULL; … … 559 558 i = 0; 560 559 lastpos = 0; 561 while ( token = mr_strtok(partition_list, token_chars, &lastpos)) {560 while ((token = mr_strtok(partition_list, token_chars, &lastpos)) != NULL) { 562 561 log_msg (5, "Found partition: %s", token); 563 562 strcpy(partitions[i++], token); … … 654 653 log_msg(4, " VG %s mount_list: %s", VG, mount_list); 655 654 lastpos = 0; 656 while ( token = mr_strtok(mount_list, token_chars, &lastpos)) {655 while ((token = mr_strtok(mount_list, token_chars, &lastpos)) != NULL) { 657 656 log_msg (5, "mount point token: %s", token); 658 657 if ((DSFptr = find_mount_point_in_list(token)) == NULL) { … … 675 674 log_msg(4, " Software raid device list: %s", mount_list); 676 675 lastpos = 0; 677 while ( token = mr_strtok(mount_list, token_chars, &lastpos)) {676 while ((token = mr_strtok(mount_list, token_chars, &lastpos)) != NULL) { 678 677 asprintf(&command, "mdadm --detail %s 2>/dev/null | grep -c %s", token, VG); 679 678 log_msg (5, "Running: %s", command); … … 728 727 /* Loop through the software raid device list to see if we can find the partition */ 729 728 lastpos = 0; 730 while ( token = mr_strtok(mount_list, token_chars, &lastpos)) {729 while ((token = mr_strtok(mount_list, token_chars, &lastpos)) != NULL) { 731 730 asprintf(&command, "mdadm --detail %s 2>/dev/null | grep -c %s", token, tmp); 732 731 log_msg(4, " Running: %s", command); … … 931 930 } 932 931 paranoid_free(tmp1); 933 while ( token = mr_strtok(flag_val['I'], token_chars, &lastpos)) {932 while ((token = mr_strtok(flag_val['I'], token_chars, &lastpos)) != NULL) { 934 933 switch (get_dsf_mount_list(token, &mounted_on_dsf, ¬_mounted_on_dsf)) { 935 934 /* It's a dsf but not a whole disk dsf */ … … 1238 1237 paranoid_free(tmp1); 1239 1238 lastpos = 0; 1240 while ( token = mr_strtok(flag_val['E'], token_chars, &lastpos)) {1239 while ((token = mr_strtok(flag_val['E'], token_chars, &lastpos)) != NULL) { 1241 1240 switch (get_dsf_mount_list(token, &mounted_on_dsf, ¬_mounted_on_dsf)) { 1242 1241 case 1:
Note:
See TracChangeset
for help on using the changeset viewer.