From: Kern Sibbald Date: Sat, 12 May 2007 13:01:27 +0000 (+0000) Subject: Add Eric's comments X-Git-Tag: Release-7.0.0~6370 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c7ba4d1250eaaea705d3221c8df00fb779677c9b;p=bacula%2Fbacula Add Eric's comments git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4761 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/dird/fd_cmds.c b/bacula/src/dird/fd_cmds.c index cb9f6dd3e5..b53b53d5c9 100644 --- a/bacula/src/dird/fd_cmds.c +++ b/bacula/src/dird/fd_cmds.c @@ -623,6 +623,7 @@ int get_attributes_and_put_in_catalog(JCR *jcr) /* Start transaction allocates jcr->attr and jcr->ar if needed */ db_start_transaction(jcr, jcr->db); /* start transaction if not already open */ p = fd->msg; + /* The following three fields were sscanf'ed above so skip them */ skip_nonspaces(&p); /* skip FileIndex */ skip_spaces(&p); skip_nonspaces(&p); /* skip Stream */ @@ -665,6 +666,12 @@ int get_attributes_and_put_in_catalog(JCR *jcr) Dmsg2(dbglvl, "dirdfname); Dmsg1(dbglvl, "dirdFileId = ar->FileId; + /* + * First, get STREAM_UNIX_ATTRIBUTES and fill ATTR_DBR structure + * Next, we CAN have a CRYPTO_DIGEST, so we fill ATTR_DBR with it (or not) + * When we get a new STREAM_UNIX_ATTRIBUTES, we known that we can add file to the catalog + * At the end, we have to add the last file + */ } else if (crypto_digest_stream_type(stream) != CRYPTO_DIGEST_NONE) { if (jcr->FileIndex != (uint32_t)file_index) { Jmsg3(jcr, M_ERROR, 0, _("%s index %d not same as attributes %d\n"),