3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
10 .TH "DBD" "1" "26 May 2009" "2.1dev" "Netatalk"
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 maintanance
24 .HP \w'\fBdbd\fR\fB\fR\ 'u
25 \fBdbd\fR\fB\fR [\-evx] \-d\ [\-i] | \-s | \-r\ [\-f] \fIvolumepath\fR
29 can dump, scan, reindex and rebuild
31 dbd CNID databases\&. It must be run with appropiate permissions i\&.e\&. as root\&.
36 Dump CNID database\&. With
37 \fB\-i \fRdump indexes too\&.
52 Compare CNIDs in database with volume
63 Test if AppleDouble directories exist
74 Test if AppleDouble files exist
85 Report orphaned AppleDouble files
96 Report directories inside AppleDouble directories
107 Check name encoding by roundtripping, log on error
118 Check for orphaned CNIDs in database (requires
125 Rebuild volume\&. With
127 wipe database and rebuild from CNIIDs stored in AppleDouble files, only available for volumes with \'cachecnid\' option\&. Implies
138 Sync CNIDSs from database with volume
149 Ensure AppleDouble directories exist
160 Ensure AppleDouble files exist
171 Delete orphaned AppleDouble files
182 Report directories inside AppleDouble directories
193 Check name encoding by roundtripping, log on error
204 Delete orphaned CNIDs in database (requires
212 Only work on inactive volumes and lock them (exclusive)
217 Rebuild indexes (just for completeness, mostly useless!)
226 If you want/need to run an \-r \-f rebuild after adding \'cachecnid\' to a volume configuration, you must run a rebuild with \-r alone at first in order to sync all existing CNIDs from the db to the AppleDouble files!
227 .SH "CNID BACKGROUND"
229 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 doesn\'t 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\&.
231 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\&.