~ubuntu-branches/debian/wheezy/netatalk/wheezy

« back to all changes in this revision

Viewing changes to include/atalk/cnid_private.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2011-06-05 21:04:21 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20110605210421-19gag2srevj0ocxh
Tags: 2.2~beta4-1
* New upstream release.
  + Fixes "Internal Error" after ad_open on sparc.
    Closes: bug#606005. Thanks to Alfredo Sola.
* Adjust references to unofficial packages in README.Debian.
* Use dversionmangle (not uversionmangle) in watch file. Fix add
  leading dash (-) to upstream version in mangling.
* Update patches:
  + Drop patches 107 and 294 (Zeroconf support): Implemented
    (differently) upstream now.
  + Drop patches 109 and 112 (avoid broken XFS linkage) obsolete.
  + Drop patch 200 (hostname resolving): adopted upstream.
  + Refresh patch 205.
* Rewrite copyright file using draft 174 of DEP-5 format.
* Build-depend on and recommend unversioned (i.e. default) BerkeleyDB
  packages.
  Closes: bug#621413. Thanks to Ondřej Surý.
  Simplify suggestions on older versioned BerkeleyDB packages.
* Stop installing some documentation dropped upstream, and let CDBS
  automagically handle some of the remains.
* Update control file:
  + Bump policy compliance to standards-version 3.9.2.
  + Shorten Vcs-* URLs.
* Add patches 115 and (for automade file) 214 to avoid installing
  unneeded /default dir.
  Closes: bug#628119. Thanks to Russell Muetzelfeldt and Luk Claes.
* Don't ship .la files. Closes: bug#621849. Thanks to Andreas Metzler
  and Luk Claes.
* Stop renaming afile and achfile, dropped upstream.
* Explicitly enable DDP (AppleTalk), now disabled by default.
* Enable Zeroconf, should be stable now.
* Simplify package relations:
  + Drop (build-)dependency fallback unneeded even for oldstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#define CNID_INO_LEN             8
19
19
 
20
20
#define CNID_DEVINO_OFS          CNID_LEN
21
 
#define CNID_DEVINO_LEN          (CNID_DEV_LEN +CNID_INO_LEN)
 
21
#define CNID_DEVINO_LEN          (CNID_DEV_LEN + CNID_INO_LEN)
22
22
 
23
 
#define CNID_TYPE_OFS            (CNID_DEVINO_OFS +CNID_DEVINO_LEN)
 
23
#define CNID_TYPE_OFS            (CNID_DEVINO_OFS + CNID_DEVINO_LEN)
24
24
#define CNID_TYPE_LEN            4
25
25
 
26
 
#define CNID_DID_OFS             (CNID_TYPE_OFS +CNID_TYPE_LEN)
 
26
#define CNID_DID_OFS             (CNID_TYPE_OFS + CNID_TYPE_LEN)
27
27
#define CNID_DID_LEN             CNID_LEN
28
28
 
29
29
#define CNID_NAME_OFS            (CNID_DID_OFS + CNID_DID_LEN)
38
38
#define ROOTINFO_KEYLEN 4
39
39
 
40
40
/* 
41
 
   Rootinfo data:
42
 
   4 unused bytes (cnid) 
43
 
   8 bytes, in first 4 bytes db stamp: struct stat.st_ctime of database file (dev)
44
 
   8 unused bytes (inode)
 
41
   Rootinfo data, fields as they are used by normal entries for CNIDs (for reference):
 
42
   4 bytes: CNID 
 
43
   8 bytes: dev
 
44
   8 bytes: inode
45
45
   4 bytes: is a file/directory (type)
46
 
   4 unused bytes (did)
47
 
   9 bytes name "RootInfo"
 
46
   4 bytes: DID
 
47
   x bytes: name
 
48
 
 
49
   Contents in Rootinfo entry:
 
50
   4 bytes: 0
 
51
   8 bytes: db stamp: struct stat.st_ctime of database file
 
52
   8 bytes: unused
 
53
   4 bytes: last used CNID
 
54
   4 bytes: version as htonl(uint32_t)
 
55
   9 bytes: name "RootInfo"
48
56
*/
49
57
#define ROOTINFO_DATA    "\0\0\0\0" \
50
58
                         "\0\0\0\0\0\0\0\0" \
54
62
                         "RootInfo"
55
63
#define ROOTINFO_DATALEN (3*4 + 2*8 + 9)
56
64
 
 
65
/* 
 
66
 * CNID version history:
 
67
 * 0: up to Netatalk 2.1.x
 
68
 * 1: starting with 2.2, additional name index, used in cnid_find
 
69
 */
 
70
#define CNID_VERSION_0               0
 
71
#define CNID_VERSION_1               1
 
72
#define CNID_VERSION_UNINTIALIZED_DB UINT32_MAX
 
73
 
 
74
/* Current CNID version */
 
75
#define CNID_VERSION CNID_VERSION_1
 
76
 
57
77
#endif