Ignore:
Timestamp:
Nov 19, 2005, 1:53:52 AM (18 years ago)
Author:
bcornec
Message:

This patch avoids useless invocations of `cat <file> |' where the second
process in the pipe can more efficiently read its input file itself.
It replaces also some grep'+sed' commands by an unique `sed' command.
This patch also improves readability of shell commands by
replacing \" by ' where possible.
This patch instructs mondo to say DVD' instead of CD' when appropriate.
This patch forces growisofs to use speed=1 for DVD burning. In my
experience, DVD burning time is only a small part of the total backup
time so this should not make a big difference in backup time, but
a big one in reliability of mondo. On my installation, without
the option `speed=1', mondo/growisofs is unable to burn a DVD. With
the option `speed=1', mondo works.
(Philippe De Muyter)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.05/mondo/mondo/mondorestore/mondo-prep.c

    r88 r126  
    478478              {
    479479                strcpy(tmp, call_program_and_get_last_line_of_output
    480                     ("cat /var/log/mondo-archive.log | tail -n5 | grep Insufficient | tail -n1"));
     480                    ("tail -n5 /var/log/mondo-archive.log | grep Insufficient | tail -n1"));
    481481              }
    482482            else
    483483              {
    484484                strcpy(tmp, call_program_and_get_last_line_of_output
    485                     ("cat /var/log/mondo-archive.log | tail -n5 | grep lvcreate | tail -n1"));
     485                    ("tail -n5 /var/log/mondo-archive.log | grep lvcreate | tail -n1"));
    486486              }
    487487            for(p=tmp; *p!='\0' && !isdigit(*p); p++);
Note: See TracChangeset for help on using the changeset viewer.