3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
6 .\" Manual: Netatalk 3.0
7 .\" Source: Netatalk 3.0
10 .TH "DBD" "1" "14 Sep 2012" "Netatalk 3.0" "Netatalk 3.0"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
16 .\" disable justification (adjust text to left margin only)
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
22 dbd \- CNID database maintenance
24 .HP \w'\fBdbd\fR\fB\fR\ 'u
25 \fBdbd\fR\fB\fR [\-evx] {\-d\ [\-i] | \-s\ [\-c|\-n] | \-r\ [\-c|\-f|\-C] | \-u} \fIvolumepath\fR
29 can dump, scan, reindex and rebuild
31 dbd CNID databases\&. It must be run with appropiate permissions i\&.e\&. as root\&.
34 can be run on active volumes, but
35 \fBdbd \-rf\fR, which wipes the db before rebuilding it, checks and enforces that the chosen volume is not in use\&.
40 Dump CNID database\&. With
41 \fB\-i \fRdump indexes too\&.
48 Compare CNIDs in database with volume, test if \&.AppleDouble directories exist, test if AppleDouble files exist, report orphaned AppleDouble files, report directories inside \&.AppleDouble directories, check name encoding, heck for orphaned CNIDs in database (requires
55 Don\'t check \&.AppleDouble stuff, only check orphaned\&.
60 Don\'t open CNID database, skip CNID checks, only traverse filesystem
68 Sync CNIDSs from database with volume, ensure \&.AppleDouble directories exist, ensure AppleDouble files exist, delete orphaned AppleDouble files, report directories inside \&.AppleDouble directories, check name encoding by roundtripping, delete orphaned CNIDs in database (requires
75 Converts volume from adouble:v2 to adouble:ea
80 Don\'t create \&.AppleDouble stuff, only cleanup orphaned\&.
85 Wipe database and rebuild from IDs stored in AppleDouble files, only available for volumes without
96 Opens the database which triggers any necessary upgrades, then closes and exits\&.
102 Only work on inactive volumes and lock them (exclusive)
107 Rebuild indexes (just for completeness, mostly useless!)
116 In order to be able to run
118 reconstructing the CNIDs in the database from the
120 files, make sure you\'ve run a
122 rebuild sometimes before, where the CNIDs then would have been synched between database and
126 Also be careful about the option
127 \fBnocnidcache\fR\&. Avoid this option if at all possible, because if prevents you from being able to use
129 .SH "CNID BACKGROUND"
131 The CNID backends maintains name to ID mappings\&. If you change a filename outside afpd(8) (shell, samba), the CNID db will not know and not reflect that change\&. Netatalk tries to recover from such inconsistencies as gracefully as possible\&. The mechanisms to resolve such inconsistencies may fail sometimes, though, as this is not an easy task to accomplish\&. E\&.g\&. if several names in the path to the file or directory have changed, things may go wrong\&.
133 If you change a lot of filenames at once, chances are higher that the afpds fallback mechanisms fail, i\&.e\&. files will be assigned new IDs, even though the file hasn\'t changed\&.