Linux 2.2.0
[davej-history.git] / fs / ntfs / dir.h
blob9c86e60638d0a0567c59a5ae349e4d9c3ec21cda
1 /*
2 * dir.h
3 * Header file for dir.c
5 * Copyright (C) 1997 RĂ©gis Duchesne
6 */
8 #define ITERATE_SPLIT_DONE 1
10 enum ntfs_iterate_e {
11 BY_POSITION,
12 BY_NAME,
13 DIR_INSERT
16 /* not all fields are used for all operations */
17 typedef struct ntfs_iterate_s{
18 enum ntfs_iterate_e type;
19 ntfs_inode *dir;
20 union{
21 ntfs_u64 pos;
22 int flags;
23 }u;
24 char *result; /* pointer to entry if found */
25 ntfs_u16* name;
26 int namelen;
27 int block; /* current index record */
28 int newblock; /* index record created in a split */
29 char *new_entry;
30 int new_entry_size;
31 /*ntfs_inode* new;*/
32 } ntfs_iterate_s;
34 int ntfs_getdir_unsorted(ntfs_inode *ino, ntfs_u32 *p_high, ntfs_u32* p_low,
35 int(*cb)(ntfs_u8*,void*), void *param);
36 int ntfs_getdir_byname(ntfs_iterate_s *walk);
37 int ntfs_dir_add(ntfs_inode *dir, ntfs_inode *new, ntfs_attribute *name);
38 int ntfs_check_index_record(ntfs_inode *ino, char *record);
39 int ntfs_getdir_byposition(ntfs_iterate_s *walk);
40 int ntfs_mkdir(ntfs_inode* dir,const char* name,int namelen, ntfs_inode *ino);
41 int ntfs_split_indexroot(ntfs_inode *ino);