Changeset 3855 in MondoRescue
- Timestamp:
- Mar 6, 2024, 3:43:29 AM (4 months ago)
- Location:
- branches/3.3/mondo/src/common
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mondo/src/common/libmondo-fork.c
r3849 r3855 11 11 #include "mr_sys.h" 12 12 #include "mondostructures.h" 13 #include "libmondo-fork.h"14 13 #include "libmondo-string-EXT.h" 15 14 #include "libmondo-gui-EXT.h" -
branches/3.3/mondo/src/common/libmondo-raid-EXT.h
r2982 r3855 27 27 FILE * fout); 28 28 29 extern void30 save_disklist_to_file(char *listname,31 struct list_of_disks *disklist, FILE * fout);32 33 34 29 #ifdef __FreeBSD__ 35 30 extern void add_disk_to_raid_device(struct vinum_plex *p, -
branches/3.3/mondo/src/common/libmondo-raid.c
r3614 r3855 320 320 } 321 321 322 323 /** 324 * Save a disklist to a stream in raidtab format. 325 * @param listname One of "raid-disk", "spare-disk", "parity-disk", or "failed-disk". 326 * @param disklist The disklist to save to @p fout. 327 * @param fout The stream to write to. 328 */ 329 void save_disklist_to_file(const char *listname, struct list_of_disks *disklist, FILE * fout) 330 { 331 int i; 332 333 assert_string_is_neither_NULL_nor_zerolength(listname); 334 assert(disklist != NULL); 335 assert(fout != NULL); 336 337 for (i = 0; i < disklist->entries; i++) { 338 fprintf(fout, " device %s\n", disklist->el[i].device); 339 fprintf(fout, " %-21s %d\n", listname, disklist->el[i].index); 340 } 341 } 322 342 323 343 /** … … 732 752 } 733 753 #endif 734 735 736 /**737 * Save a disklist to a stream in raidtab format.738 * @param listname One of "raid-disk", "spare-disk", "parity-disk", or "failed-disk".739 * @param disklist The disklist to save to @p fout.740 * @param fout The stream to write to.741 */742 void743 save_disklist_to_file(char *listname, struct list_of_disks *disklist, FILE * fout)744 {745 int i;746 747 assert_string_is_neither_NULL_nor_zerolength(listname);748 assert(disklist != NULL);749 assert(fout != NULL);750 751 for (i = 0; i < disklist->entries; i++) {752 fprintf(fout, " device %s\n", disklist->el[i].device);753 fprintf(fout, " %-21s %d\n", listname, disklist->el[i].index);754 }755 }756 757 758 759 754 760 755 -
branches/3.3/mondo/src/common/libmondo-raid.h
r2982 r3855 22 22 char *fname); 23 23 void save_raidrec_to_file(struct raid_device_record *raidrec, FILE * fout); 24 void25 save_disklist_to_file(char *listname,26 struct list_of_disks *disklist, FILE * fout);27 24 #ifdef __FreeBSD__ 28 25 void add_disk_to_raid_device(struct vinum_plex *p, char *device_to_add); -
branches/3.3/mondo/src/common/libmondo-string-EXT.h
r3552 r3855 17 17 extern char *number_to_text(int i); 18 18 extern void resolve_naff_tokens(char *output, char *ip, char *value, 19 c har *token);19 const char *token); 20 20 extern char *slice_fname(long bigfileno, long sliceno, char *path, 21 21 char *s);
Note:
See TracChangeset
for help on using the changeset viewer.