File: dir.h

package info (click to toggle)
kernel-image-2.4.17-hppa 32.4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 156,356 kB
  • ctags: 442,585
  • sloc: ansic: 2,542,442; asm: 144,771; makefile: 8,468; sh: 3,097; perl: 2,578; yacc: 1,177; tcl: 577; lex: 352; awk: 251; lisp: 218; sed: 72
file content (48 lines) | stat: -rw-r--r-- 1,157 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
 * dir.h - Header file for dir.c
 *
 * Copyright (C) 1997 Rgis Duchesne
 */
#define ITERATE_SPLIT_DONE      1

enum ntfs_iterate_e {
    BY_POSITION,
    BY_NAME,
    DIR_INSERT
};

/* not all fields are used for all operations */
typedef struct ntfs_iterate_s {
	enum ntfs_iterate_e type;
	ntfs_inode *dir;
	union{
		ntfs_u64 pos;
		int flags;
	}u;
	char *result;      /* pointer to entry if found */
	ntfs_u16* name;
	int namelen;
	int block;         /* current index record */
	int newblock;      /* index record created in a split */
	char *new_entry;
	int new_entry_size;
	/*ntfs_inode* new;*/
} ntfs_iterate_s;

int ntfs_getdir_unsorted(ntfs_inode *ino, ntfs_u32 *p_high, ntfs_u32* p_low,
			 int (*cb)(ntfs_u8*, void*), void *param);

int ntfs_getdir_byname(ntfs_iterate_s *walk);

int ntfs_dir_add(ntfs_inode *dir, ntfs_inode *new, ntfs_attribute *name);

int ntfs_check_index_record(ntfs_inode *ino, char *record);

int ntfs_getdir_byposition(ntfs_iterate_s *walk);

int ntfs_mkdir(ntfs_inode* dir,const char* name,int namelen, ntfs_inode *ino);

int ntfs_split_indexroot(ntfs_inode *ino);

int ntfs_add_index_root(ntfs_inode *ino, int type);