Changes by: antona
Update of /cvsroot/linux-ntfs/linux-ntfs/include
In directory usw-pr-cvs1:/tmp/cvs-serv13301/include
Modified Files:
dir.h inode.h volume.h
Log Message:
The beginning of the directory operations! Introduce dir.[hc] and ntfs_lookup_inode_by_name().
Index: dir.h
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/include/dir.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -U2 -r1.1 -r1.2
--- dir.h 6 Jun 2002 15:41:29 -0000 1.1
+++ dir.h 6 Jun 2002 20:47:29 -0000 1.2
@@ -26,8 +26,8 @@
/* The little endian Unicode string $I30 as a global constant. */
-extern const uchar_t I30[5];
+extern uchar_t I30[5];
-extern u64 ntfs_lookup_inode_by_name(ntfs_inode *dir_ni, const uchar_t *uname,
- const int uname_len);
+extern __u64 ntfs_lookup_inode_by_name(ntfs_inode *dir_ni,
+ const uchar_t *uname, const int uname_len);
#endif /* defined NTFS_DIR_H */
Index: inode.h
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/include/inode.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -U2 -r1.8 -r1.9
--- inode.h 1 Jun 2002 00:41:45 -0000 1.8
+++ inode.h 6 Jun 2002 20:47:31 -0000 1.9
@@ -24,4 +24,5 @@
#include "types.h"
+#include "support.h"
/*
Index: volume.h
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/include/volume.h,v
retrieving revision 1.23
retrieving revision 1.24
diff -U2 -r1.23 -r1.24
--- volume.h 2 Jun 2002 23:02:20 -0000 1.23
+++ volume.h 6 Jun 2002 20:47:32 -0000 1.24
@@ -33,4 +33,5 @@
#include "types.h"
+#include "support.h"
/*
@@ -46,4 +47,24 @@
/*
+ * Defined bits for the state field in the ntfs_volume structure.
+ */
+typedef enum {
+ NV_ReadOnly, /* 1: Volume is read-only. */
+ NV_CaseSensitive, /* 1: Volume is mounted case-sensitive. */
+} ntfs_volume_state_bits;
+
+#define test_nvol_flag(nv, flag) test_bit(NV_##flag, (nv)->state)
+#define set_nvol_flag(nv, flag) set_bit(NV_##flag, (nv)->state)
+#define clear_nvol_flag(nv, flag) clear_bit(NV_##flag, (nv)->state)
+
+#define NVolReadOnly(nv) test_nvol_flag(nv, ReadOnly)
+#define NVolSetReadOnly(nv) set_nvol_flag(nv, ReadOnly)
+#define NVolClearReadOnly(nv) clear_nvol_flag(nv, ReadOnly)
+
+#define NVolCaseSensitive(nv) test_nvol_flag(nv, CaseSensitive)
+#define NVolSetCaseSensitive(nv) set_nvol_flag(nv, CaseSensitive)
+#define NVolClearCaseSensitive(nv) clear_nvol_flag(nv, CaseSensitive)
+
+/*
* ntfs_volume - structure describing an open volume in memory
*/
@@ -52,8 +73,12 @@
char *dev_name; /* Name of the device/file the volume is in. */
char *vol_name; /* Name of the volume. */
+ unsigned long state; /* NTFS specific flags describing this volume.
+ See ntfs_volume_state_bits above. */
__u8 major_ver; /* Ntfs major version of volume. */
__u8 minor_ver; /* Ntfs minor version of volume. */
__u16 flags; /* Bit array of VOLUME_* flags. */
+ __u16 sector_size; /* Byte size of a sector. */
+ __u8 sector_size_bits; /* Log(2) of the byte size of a sector. */
__u32 cluster_size; /* Byte size of a cluster. */
__u32 mft_record_size; /* Byte size of a mft record. */
|