src/findlib/find_one.c
void
ff_pkt_set_link_digest(FF_PKT *ff_pkt,
                       int32_t digest_stream, const char *digest, uint32_t len)
{
   if (ff_pkt->linked && !ff_pkt->linked->digest) {     /* is a hardlink */
      ff_pkt->linked->digest = (char *) bmalloc(len);
      memcpy(ff_pkt->linked->digest, digest, len);
      ff_pkt->linked->digest_len = len;
      ff_pkt->linked->digest_stream = digest_stream;
   }
}
/*
 * When the current file is a hardlink, the backup code can compute
 * the checksum and store it into the link_t structure.
 */
When the current file is a hardlink, the backup code can compute
the checksum and store it into the link_t structure.
When the current file is a hardlink the backup code can compute the checksum and store it into the link_t structure .
void
ff_pkt_set_link_digest(FF_PKT *ff_pkt,
                       int32_t digest_stream, const char *digest, uint32_t len)
{
   if (ff_pkt->linked && !ff_pkt->linked->digest) {     
      ff_pkt->linked->digest = (char *) bmalloc(len);
      memcpy(ff_pkt->linked->digest, digest, len);
      ff_pkt->linked->digest_len = len;
      ff_pkt->linked->digest_stream = digest_stream;
   }
}
void ff_pkt_set_link_digest ( FF_PKT * ff_pkt , int32_t digest_stream , const char * digest , uint32_t len ) { if ( ff_pkt -> linked && ! ff_pkt -> linked -> digest ) { ff_pkt -> linked -> digest = ( char * ) bmalloc ( len ) ; memcpy ( ff_pkt -> linked -> digest , digest , len ) ; ff_pkt -> linked -> digest_len = len ; ff_pkt -> linked -> digest_stream = digest_stream ; } }
When the current file is a hardlink, the backup code can compute
 the checksum and store it into the link_t structure.
When the current file is a hardlink the backup code can compute the checksum and store it into the link_t structure .
/* is a hardlink */