~wb-munzinger/+junk/ocfs2-tools

« back to all changes in this revision

Viewing changes to libocfs2/dir_iterate.h

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2011-01-14 12:46:49 UTC
  • mfrom: (1.1.10 upstream) (0.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20110114124649-vbe5qz211f3zxwuf
Tags: 1.6.3-1ubuntu1
* Merge from debian unstable (LP: #703008).  Remaining changes:
  - Fix configure tests for ld --as-needed.
  - Fix build failure with ld --no-add-needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        int (*func)(uint64_t dir,
36
36
                    int entry,
37
37
                    struct ocfs2_dir_entry *dirent,
 
38
                    uint64_t blocknr,
38
39
                    int offset,
39
40
                    int blocksize,
40
41
                    char *buf,
49
50
                                   uint16_t     ext_flags,
50
51
                                   void         *priv_data);
51
52
 
 
53
#define OCFS2_DIR_PAD                   4
 
54
#define OCFS2_DIR_ROUND                 (OCFS2_DIR_PAD - 1)
 
55
#define OCFS2_DIR_MEMBER_LEN            offsetof(struct ocfs2_dir_entry, name)
 
56
#define OCFS2_DIR_REC_LEN(name_len)     (((name_len) + OCFS2_DIR_MEMBER_LEN + \
 
57
                                          OCFS2_DIR_ROUND) & \
 
58
                                         ~OCFS2_DIR_ROUND)
 
59
 
52
60
#endif  /* _DIR_ITERATE_H */