2 * struct.h - Structure definitions
4 * Copyright (C) 1997 RĂ©gis Duchesne
5 * Copyright (C) 2000-2001 Anton Altaparmakov (AIA)
7 #include <linux/ntfs_fs.h>
9 /* Necessary forward definition. */
12 /* Which files should be returned from a director listing. */
13 #define ngt_dos 1 /* only short names, no system files */
14 #define ngt_nt 2 /* only long names, all-uppercase becomes
15 * all-lowercase, no system files */
16 #define ngt_posix 3 /* all names except system files */
17 #define ngt_full 4 /* all entries */
19 typedef struct ntfs_sb_info ntfs_volume;
26 typedef struct ntfs_attribute {
31 __s64 size, allocated, initialized, compsize;
33 __u8 resident, indexed;
36 void *data; /* if resident */
38 ntfs_runlist *runlist;
44 typedef struct ntfs_inode_info ntfs_inode;
46 /* Structure to define IO to user buffer. do_read means that the destination
47 * has to be written using fn_put, do_write means that the destination has to
48 * read using fn_get. So, do_read is from a user's point of view, while put and
49 * get are from the driver's point of view. The first argument is always the
50 * destination of the IO. */
51 typedef struct ntfs_io{
53 void (*fn_put)(struct ntfs_io *dest, void *buf, ntfs_size_t);
54 void (*fn_get)(void *buf, struct ntfs_io *src, ntfs_size_t len);