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/common/libmondo-files.c

    r116 r126  
    569569        return (output);
    570570    }
    571     sprintf(command, "cat %s | tail -n1", filename);
     571    sprintf(command, "tail -n1 %s", filename);
    572572    fin = popen(command, "r");
    573573    (void) fgets(output, MAX_STR_LEN, fin);
     
    13091309    if (scratchLL <= 1) {
    13101310        sprintf(tmp,
    1311                 "Your backup will probably occupy a single CD/tape/ISO. Maybe two.");
     1311                "Your backup will probably occupy a single %s. Maybe two.",
     1312                media_descriptor_string(bkpinfo->backup_media_type));
    13121313    } else if (scratchLL > 4) {
    13131314        sprintf(tmp,
Note: See TracChangeset for help on using the changeset viewer.