Next: mdtxCOLL.md5, Previous: mdtx.conf, Up: Relational schema [Contents][Index]
CLIENT
(see Client) backup the support’s status into the ~mdtx/git/mdtx/supports.txt file.
Support’s checksum is compute using md5sum
for internal identification like for all MEDIATEX archives, but is also using sha1
… who know.
Relational schema:
There is 2 kind of records
Example: (line is cut to display it here)
# firstSeen lastCheck lastSeen… 2010-01-01,01:00:00 2010-01-01,01:00:00 2010-01-01,01:00:00… … quickMd5sum fullMd5sum… …de5008799752552b7963a2670dc5eb18 de5008799752552b7963a2670dc5eb18… … quickShasum… …6ed0e67ccd882f6e94f931a07834bc6bc6394583… … fullShasum… …6ed0e67ccd882f6e94f931a07834bc6bc6394583… …size status name …391168 ok ex-cd1
Grammar:
file: lines | //empty file lines: lines line | line line: date date date md5 md5 sha sha [[:digit:]]+ status name date: {year}-{month}-{day},{hour}:{min}:{sec} year: [[:digit:]]{4} month: [[:digit:]]{2} day: [[:digit:]]{2} hour: [[:digit:]]{2} min: [[:digit:]]{2} sec: [[:digit:]]{2} md5: [[:xdigit:]]{32} sha: [[:xdigit:]]{40} status: [^[:blank:]\r\n]{1,10} name: [^[:blank:]\r\n]{1,64}
Code:
This function is used to differenciate external supports from external supports’s files:
int isSupportFile(Support* self) { int rc = FALSE; checkSupport(self); rc = (*self->name == '/'); error: return rc; }
Next: mdtxCOLL.md5, Previous: mdtx.conf, Up: Relational schema [Contents][Index]