Changeset 2406


Ignore:
Timestamp:
Sep 17, 2009, 6:21:53 PM (10 years ago)
Author:
bruno
Message:

Remove useless conf files created under /tmp and never used

Location:
branches/2.2.10
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mindi/mindi

    r2396 r2406  
    559559        if [ -e "$MINDI_TMP/NETFS-DEV" ] ; then
    560560            LogAll "\nIncorporating NFS-related settings"
    561             for r in NETFS-* ISO-PREFIX ; do
     561            for r in NETFS-* ; do
    562562                cp -f $MINDI_TMP/$r $bigdir/tmp 2>> $LOGFILE || Die "Cannot copy $r - did you run out of disk space?"
    563563                LogFile "Copying $r to ramdisk"
     
    936936    echo "datestamp `date`" >> $outfile
    937937    [ "$ESTIMATED_TOTAL_NOOF_SLICES" ] && echo "total-slices $ESTIMATED_TOTAL_NOOF_SLICES" >> $outfile
    938     AddFileToCfgIfExists $MINDI_TMP/NETFS-CLIENT-IPADDR netfs-client-ipaddr $outfile
    939     AddFileToCfgIfExists $MINDI_TMP/NETFS-CLIENT-NETMASK netfs-client-netmask $outfile
    940     AddFileToCfgIfExists $MINDI_TMP/NETFS-CLIENT-BROADCAST netfs-client-broadcast $outfile
    941     AddFileToCfgIfExists $MINDI_TMP/NETFS-CLIENT-DEFGW  netfs-client-defgw  $outfile
    942938    AddFileToCfgIfExists $MINDI_TMP/NETFS-SERVER-MOUNT  netfs-server-mount  $outfile
    943939    AddFileToCfgIfExists $MINDI_TMP/NETFS-SERVER-PATH   netfs-server-path   $outfile
    944940    AddFileToCfgIfExists $MINDI_TMP/NETFS-DEV           netfs-dev           $outfile
    945     AddFileToCfgIfExists $MINDI_TMP/NETFS-PROTO         netfs-proto           $outfile
    946     AddFileToCfgIfExists $MINDI_TMP/NETFS-SERVER-IPADDR netfs-server-ipaddr $outfile
    947     AddFileToCfgIfExists $MINDI_TMP/ISO-DEV           iso-dev           $outfile
    948     AddFileToCfgIfExists $MINDI_TMP/ISO-MNT           iso-mnt           $outfile
    949     AddFileToCfgIfExists $MINDI_TMP/ISO-PREFIX        iso-prefix        $outfile
    950     AddFileToCfgIfExists $MINDI_TMP/ISODIR            isodir            $outfile
    951941    AddFileToCfgIfExists $MINDI_TMP/BOOTLOADER.DEVICE bootloader.device $outfile
    952942    AddFileToCfgIfExists $MINDI_TMP/BOOTLOADER.NAME   bootloader.name   $outfile
    953943    AddFileToCfgIfExists $MINDI_TMP/KEYMAP-LIVES-HERE keymap-lives-here $outfile
    954944    AddFileToCfgIfExists $MINDI_TMP/TAPEDEV-HAS-DATA-DISKS tapedev-has-data-disks $outfile
    955     AddFileToCfgIfExists $MINDI_TMP/BACKUP-MEDIA-TYPE backup-media-type $outfile
    956     AddFileToCfgIfExists $MINDI_TMP/DIFFERENTIAL      differential      $outfile
    957     AddFileToCfgIfExists $MINDI_TMP/ACL      acl      $outfile
    958     AddFileToCfgIfExists $MINDI_TMP/XATTR      xattr      $outfile
    959     AddFileToCfgIfExists $MINDI_TMP/OBDR      obdr      $outfile
    960945}
    961946
  • branches/2.2.10/mondo/src/common/libmondo-archive.c

    r2405 r2406  
    771771        fatal_error("Unknown backup_media_type");
    772772    }
     773    mr_free(value);
     774
    773775    if ((bkpinfo->backup_media_type == usb) && (bkpinfo->media_device)) {
    774776        mr_asprintf(tmp2, "--usb %s", bkpinfo->media_device);
     
    777779    }
    778780
    779     mr_asprintf(tmp, "%s/BACKUP-MEDIA-TYPE", bkpinfo->tmpdir);
    780     if (write_one_liner_data_file(tmp, value)) {
    781         res++;
    782         log_msg(1, "%ld: Unable to write one-liner backup-media-type", __LINE__);
    783     }
    784     mr_free(value);
    785     mr_free(tmp);
    786 
    787781    mr_asprintf(tmp, "%s/BOOTLOADER.NAME", bkpinfo->tmpdir);
    788782    if (write_one_liner_data_file(tmp, bootldr_str)) {
     
    792786    mr_free(bootldr_str);
    793787    mr_free(tmp);
    794 
    795     mr_asprintf(tmp, "%s/DIFFERENTIAL", bkpinfo->tmpdir);
    796     if (bkpinfo->differential) {
    797         res += write_one_liner_data_file(tmp, "1");
    798     } else {
    799         res += write_one_liner_data_file(tmp, "0");
    800     }
    801     mr_free(tmp);
    802 
    803     if (g_getfattr) {
    804         mr_asprintf(tmp1, "%s/XATTR", bkpinfo->tmpdir);
    805         if (write_one_liner_data_file(tmp1, "TRUE")) {
    806             log_msg(1, "%ld: Unable to write one-liner XATTR",
    807                 __LINE__);
    808         }
    809         mr_free(tmp1);
    810     }
    811     if (g_getfacl) {
    812         mr_asprintf(tmp1, "%s/ACL", bkpinfo->tmpdir);
    813         if (write_one_liner_data_file(tmp1, "TRUE")) {
    814             log_msg(1, "%ld: Unable to write one-liner ACL", __LINE__);
    815         }
    816         mr_free(tmp1);
    817     }
    818     if (bkpinfo->use_obdr) {
    819         mr_asprintf(tmp1, "%s/OBDR", bkpinfo->tmpdir);
    820         if (write_one_liner_data_file(tmp1, "TRUE")) {
    821             log_msg(1, "%ld: Unable to write one-liner OBDR", __LINE__);
    822         }
    823         mr_free(tmp1);
    824     }
    825788
    826789    estimated_total_noof_slices = size_of_all_biggiefiles_K(bkpinfo) / bkpinfo->optimal_set_size + 1;
  • branches/2.2.10/mondo/src/common/libmondo-files.c

    r2383 r2406  
    11541154    mr_free(tmp);
    11551155
    1156     mr_asprintf(tmp, "%s/NETFS-PROTO", bkpinfo->tmpdir);
    1157     write_one_liner_data_file(tmp, bkpinfo->netfs_proto);
    1158 
    1159     mr_asprintf(tmp, "%s/NETFS-CLIENT-IPADDR", bkpinfo->tmpdir);
    1160     write_one_liner_data_file(tmp, netfs_client_ipaddr);
    1161     mr_free(netfs_client_ipaddr);
    1162     mr_free(tmp);
    1163 
    1164     mr_asprintf(tmp, "%s/NETFS-CLIENT-NETMASK", bkpinfo->tmpdir);
    1165     write_one_liner_data_file(tmp, netfs_client_netmask);
    1166     mr_free(netfs_client_netmask);
    1167     mr_free(tmp);
    1168 
    1169     mr_asprintf(tmp, "%s/NETFS-CLIENT-BROADCAST", bkpinfo->tmpdir);
    1170     write_one_liner_data_file(tmp, netfs_client_broadcast);
    1171     mr_free(netfs_client_broadcast);
    1172     mr_free(tmp);
    1173 
    1174     mr_asprintf(tmp, "%s/NETFS-CLIENT-DEFGW", bkpinfo->tmpdir);
    1175     write_one_liner_data_file(tmp, netfs_client_defgw);
    1176     mr_free(netfs_client_defgw);
    1177     mr_free(tmp);
    1178 
    1179     mr_asprintf(tmp, "%s/NETFS-SERVER-IPADDR", bkpinfo->tmpdir);
    1180     write_one_liner_data_file(tmp, netfs_server_ipaddr);
    1181     mr_free(tmp);
    1182     mr_free(netfs_server_ipaddr);
    1183 
    11841156    mr_asprintf(tmp, "%s/NETFS-SERVER-MOUNT", bkpinfo->tmpdir);
    11851157    write_one_liner_data_file(tmp, bkpinfo->netfs_mount);
     
    11891161    mr_asprintf(tmp, "%s/NETFS-SERVER-PATH", bkpinfo->tmpdir);
    11901162    write_one_liner_data_file(tmp, bkpinfo->netfs_remote_dir);
    1191     mr_free(tmp);
    1192 
    1193     mr_asprintf(tmp, "%s/ISO-PREFIX", bkpinfo->tmpdir);
    1194     write_one_liner_data_file(tmp, bkpinfo->prefix);
    11951163    mr_free(tmp);
    11961164
  • branches/2.2.10/mondo/src/common/libmondo-tools.c

    r2405 r2406  
    616616        iso_dev = call_program_and_get_last_line_of_output(command);
    617617        log_it("res of it = %s", iso_dev);
    618         mr_asprintf(tmp, "%s/ISO-DEV", bkpinfo->tmpdir);
    619         write_one_liner_data_file(tmp, iso_dev);
    620         mr_free(tmp);
    621618        mr_free(command);
    622619
     
    627624        iso_mnt = call_program_and_get_last_line_of_output(command);
    628625        log_it("res of it = %s", iso_mnt);
    629         mr_asprintf(tmp, "%s/ISO-MNT", bkpinfo->tmpdir);
    630         write_one_liner_data_file(tmp, iso_mnt);
    631         mr_free(tmp);
    632626        mr_free(command);
    633627
     
    642636        mr_free(iso_tmp);
    643637
    644         mr_asprintf(tmp, "%s/ISODIR", bkpinfo->tmpdir);
    645         write_one_liner_data_file(tmp, iso_path);
    646         mr_free(tmp);
    647 
    648638        log_it("isodir: %s", iso_path);
    649639        mr_free(iso_path);
    650 
    651         mr_asprintf(tmp, "%s/ISO-PREFIX", bkpinfo->tmpdir);
    652         write_one_liner_data_file(tmp, bkpinfo->prefix);
    653         mr_free(tmp);
    654640
    655641        log_it("iso-prefix: %s",  bkpinfo->prefix);
Note: See TracChangeset for help on using the changeset viewer.