vserver 1.9.5.x5
[linux-2.6.git] / fs / ntfs / volume.h
index 330c3a2..4b97fa8 100644 (file)
@@ -24,6 +24,8 @@
 #ifndef _LINUX_NTFS_VOLUME_H
 #define _LINUX_NTFS_VOLUME_H
 
+#include <linux/rwsem.h>
+
 #include "types.h"
 #include "layout.h"
 
@@ -73,16 +75,30 @@ typedef struct {
        /* Mount specific NTFS information. */
        u32 upcase_len;                 /* Number of entries in upcase[]. */
        ntfschar *upcase;               /* The upcase table. */
+
+       s32 attrdef_size;               /* Size of the attribute definition
+                                          table in bytes. */
+       ATTR_DEF *attrdef;              /* Table of attribute definitions.
+                                          Obtained from FILE_AttrDef. */
+
+#ifdef NTFS_RW
+       /* Variables used by the cluster and mft allocators. */
+       s64 mft_data_pos;               /* Mft record number at which to
+                                          allocate the next mft record. */
        LCN mft_zone_start;             /* First cluster of the mft zone. */
        LCN mft_zone_end;               /* First cluster beyond the mft zone. */
+       LCN mft_zone_pos;               /* Current position in the mft zone. */
+       LCN data1_zone_pos;             /* Current position in the first data
+                                          zone. */
+       LCN data2_zone_pos;             /* Current position in the second data
+                                          zone. */
+#endif /* NTFS_RW */
+
        struct inode *mft_ino;          /* The VFS inode of $MFT. */
 
        struct inode *mftbmp_ino;       /* Attribute inode for $MFT/$BITMAP. */
        struct rw_semaphore mftbmp_lock; /* Lock for serializing accesses to the
                                            mft record bitmap ($MFT/$BITMAP). */
-       unsigned long nr_mft_records;   /* Number of mft records == number of
-                                          bits in mft bitmap. */
-
 #ifdef NTFS_RW
        struct inode *mftmirr_ino;      /* The VFS inode of $MFTMirr. */
        int mftmirr_size;               /* Size of mft mirror in mft records. */