1 /*
2  * attr.h -  Header file for attr.c
3  *
4  * Copyright (C) 1997 R�gis Duchesne
5  * Copyright (c) 2001 Anton Altaparmakov (AIA)
6  */
7 #include <linux/nls.h>
8 
9 ntfs_u8* ntfs_find_attr_in_mft_rec(ntfs_volume *vol, ntfs_u8 *m, __u32 type,
10 			wchar_t *name, __u32 name_len, int ic, __u16 instance);
11 
12 int ntfs_extend_attr(ntfs_inode *ino, ntfs_attribute *attr, const __s64 len);
13 
14 int ntfs_resize_attr(ntfs_inode *ino, ntfs_attribute *attr, __s64 newsize);
15 
16 int ntfs_insert_attribute(ntfs_inode *ino, unsigned char* attrdata);
17 
18 int ntfs_read_compressed(ntfs_inode *ino, ntfs_attribute *attr, __s64 offset,
19 			 ntfs_io *dest);
20 
21 int ntfs_write_compressed(ntfs_inode *ino, ntfs_attribute *attr, __s64 offset,
22 			  ntfs_io *dest);
23 
24 int ntfs_create_attr(ntfs_inode *ino, int anum, char *aname, void *data,
25 		     int dsize, ntfs_attribute **rattr);
26 
27 int ntfs_read_zero(ntfs_io *dest, int size);
28 
29 int ntfs_make_attr_nonresident(ntfs_inode *ino, ntfs_attribute *attr);
30 
31 int ntfs_attr_allnonresident(ntfs_inode *ino);
32 
33 int ntfs_new_attr(ntfs_inode *ino, int type, void *name, int namelen,
34 		  void *value, int value_len, int *pos, int *found);
35 
36 int ntfs_insert_run(ntfs_attribute *attr, int cnum, ntfs_cluster_t cluster,
37 		     int len);
38 
39