Changeset 19 for trunk/src/sh_files.c


Ignore:
Timestamp:
Feb 12, 2006, 10:49:56 PM (19 years ago)
Author:
rainer
Message:

Rewrite of test suite, checksum for growing logs, fix for minor bug with dead client detection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_files.c

    r8 r19  
    590590        if (0 == strncmp(myword, _("HLN"), 3))
    591591          sh_files_set_mask (mask, MODI_HLN, act);
     592/* size may grow */
     593        if (0 == strncmp(myword, _("GROW"), 3))
     594          sh_files_set_mask (mask, MODI_SGROW, act);
     595/* use prelink */
     596        if (0 == strncmp(myword, _("PRE"), 3))
     597          sh_files_set_mask (mask, MODI_PREL, act);
    592598       
    593599      }
     
    10101016              ++dcount;
    10111017            }
    1012           ptr->checked = S_TRUE;
     1018          ptr->checked        = S_TRUE;
     1019          ptr->childs_checked = S_TRUE;
    10131020        }
    10141021
     
    14251432
    14261433  dirstack_t *    dst_ptr;
     1434  dirstack_t *    tmp_ptr;
    14271435
    14281436  int             hardlink_num = 0;
     
    16451653        file_class_next    = dst_ptr->class;
    16461654        checked_flag       = dst_ptr->checked;
    1647         cchecked_flag      = dst_ptr->childs_checked;
     1655        /* not set, hence always FALSE                   */
     1656        /* cchecked_flag      = dst_ptr->childs_checked; */
    16481657      }
    16491658   
     
    17081717            cchecked_flag = -1;
    17091718           
    1710             dst_ptr     = (dirstack_t *) zAVLSearch(zdirListOne, tmpcat);
    1711 
    1712             if (dst_ptr)
     1719            tmp_ptr     = (dirstack_t *) zAVLSearch(zdirListOne, tmpcat);
     1720
     1721            if (tmp_ptr)
    17131722              {
    17141723                TPT((0, FIL__, __LINE__,
    17151724                     _("msg=<%s -> recursion depth %d\n>"),
    1716                      dst_ptr->name, dst_ptr->rdepth));
    1717                 rdepth_next   = dst_ptr->rdepth;
    1718                 class_next    = dst_ptr->class;
     1725                     tmp_ptr->name, tmp_ptr->rdepth));
     1726                rdepth_next   = tmp_ptr->rdepth;
     1727                class_next    = tmp_ptr->class;
    17191728                /* 28. Aug 2001 reversed
    17201729                 */
    1721                 cchecked_flag = dst_ptr->childs_checked;
    1722                 checked_flag  = dst_ptr->checked;
     1730                cchecked_flag = tmp_ptr->childs_checked;
     1731                checked_flag  = tmp_ptr->checked;
    17231732              }
    17241733           
    17251734            if (checked_flag == -1)
    17261735              {
    1727                 dst_ptr     = (dirstack_t *) zAVLSearch(zdirListTwo, tmpcat);
    1728 
    1729                 if (dst_ptr)
     1736                tmp_ptr     = (dirstack_t *) zAVLSearch(zdirListTwo, tmpcat);
     1737
     1738                if (tmp_ptr)
    17301739                  {
    17311740                    TPT((0, FIL__, __LINE__,
    17321741                         _("msg=<%s -> recursion depth %d\n>"),
    1733                          dst_ptr->name, dst_ptr->rdepth));
    1734                     rdepth_next   = dst_ptr->rdepth;
    1735                     class_next    = dst_ptr->class;
     1742                         tmp_ptr->name, tmp_ptr->rdepth));
     1743                    rdepth_next   = tmp_ptr->rdepth;
     1744                    class_next    = tmp_ptr->class;
    17361745                    /* 28. Aug 2001 reversed
    17371746                     */
    1738                     cchecked_flag = dst_ptr->childs_checked;
    1739                     checked_flag  = dst_ptr->checked;
     1747                    cchecked_flag = tmp_ptr->childs_checked;
     1748                    checked_flag  = tmp_ptr->checked;
    17401749                  }
    17411750              }
     
    17451754                sh_files_checkdir (class_next, rdepth_next, tmpcat,
    17461755                                   dirlist->sh_d_name);
    1747                 dst_ptr->childs_checked = S_TRUE;
     1756                tmp_ptr->childs_checked = S_TRUE;
     1757                /*
     1758                 * 04. Feb 2006 avoid double checking
     1759                 */
     1760                tmp_ptr->checked        = S_TRUE;
    17481761              }
    17491762            else if (checked_flag == -1)
     
    17681781   
    17691782    dirlist = dirlist->next;
     1783
     1784    if (dst_ptr)
     1785      dst_ptr->childs_checked = S_TRUE;
    17701786   
    17711787  } while (dirlist != NULL);
     
    18201836   */
    18211837  char            fullpath[PATH_MAX];
    1822   char            fileHash[KEY_LEN + 1];
     1838  char            fileHash[2*(KEY_LEN + 1)];
    18231839  int             status;
    18241840  file_type       theFile;
Note: See TracChangeset for help on using the changeset viewer.