Changeset 2569 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-filelist.c
- Timestamp:
- Feb 2, 2010, 10:40:28 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-filelist.c
r2523 r2569 279 279 } 280 280 if (siz > max_sane_size_for_a_file) { 281 log_msg(10, "Adding %s to big files\n", incoming); 281 282 fprintf(fbig, "%s\n", incoming); 282 283 } else { 283 284 curr_set_size += siz; 285 log_msg(10, "Adding %s to filelist %d\n", incoming, curr_set_no); 284 286 fprintf(fout, "%s\n", incoming); 285 287 if (curr_set_size > maxsetsizeK) { … … 464 466 mr_free(strtmp); 465 467 468 log_msg(20,"calling %s\n",syscall); 466 469 call_exe_and_pipe_output_to_fd(syscall, pout); 467 470 mr_free(syscall); … … 485 488 mr_free(command); 486 489 487 mr_asprintf(command, "getfacl --all-effective -P %s 2>> %s | gzip -c1 > %s 2>> %s", filelist, MONDO_LOGFILE, facl_fname, MONDO_LOGFILE); 488 log_it("%s",command); 489 retval = system(command); 490 mr_free(command); 490 retval = 491 gen_aux_list(filelist, "getfacl --all-effective -P %s", facl_fname); 491 492 } 492 493 return (retval); … … 504 505 mr_free(command); 505 506 retval = 506 gen_aux_list(filelist, "getfattr --en=hex -P -m - -d \"%s\"", 507 fattr_fname); 507 gen_aux_list(filelist, "getfattr --en=hex -m - -h -d \"%s\"", fattr_fname); 508 508 } 509 509 return (retval); … … 531 531 || !does_file_exist(orig_msklist)) { 532 532 log_msg(1, "No masklist provided. I shall therefore set ALL attributes."); 533 mr_asprintf(command, "gzip -dc %s | %s - -restore - 2>> %s", original_exat_fname, executable, MONDO_LOGFILE);533 mr_asprintf(command, "gzip -dc %s | %s -h --restore - 2>> %s", original_exat_fname, executable, MONDO_LOGFILE); 534 534 log_msg(1, "command = %s", command); 535 535 retval = system(command); … … 1356 1356 #if linux 1357 1357 // 2.6 has /sys as a proc-type thing -- must be excluded 1358 mr_asprintf(strtmp, "find '%s' -fstype mvfs -prune -o -fstype devpts -prune -o -fstype tmpfs -prune -o -fstype proc -prune -o -fstype sysfs -prune -o %s -type d -print > %s 2> /dev/null", dir, find_excludes, g_skeleton_filelist);1358 mr_asprintf(strtmp, "find '%s' -fstype mvfs -prune -o -fstype devpts -prune -o -fstype tmpfs -prune -o -fstype proc -prune -o -fstype sysfs -prune -o -fstype rpc_pipefs -prune -o %s -type d -print > %s 2> /dev/null", dir, find_excludes, g_skeleton_filelist); 1359 1359 #else 1360 1360 // On BSD, for example, /sys is the kernel sources -- don't exclude
Note:
See TracChangeset
for help on using the changeset viewer.