Changes by: cha0smaster
Update of /cvsroot/linux-ntfs/ntfsprogs/include/ntfs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4532/include/ntfs
Modified Files:
inode.h layout.h
Log Message:
* layout.h: update about special INTX files.
* ntfsmount: implement readlink() and add support of symlinks, charcter and block devices to stat().
Index: inode.h
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/include/ntfs/inode.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -p -r1.20 -r1.21
--- inode.h 3 Nov 2005 19:20:14 -0000 1.20
+++ inode.h 5 Nov 2005 22:54:43 -0000 1.21
@@ -122,6 +122,8 @@ struct _ntfs_inode {
ntfs_volume *vol; /* Pointer to the ntfs volume of this inode. */
unsigned long state; /* NTFS specific flags describing this inode.
See ntfs_inode_state_bits above. */
+ FILE_ATTR_FLAGS flags; /* Flags describing the file.
+ (Copy from STANDARD_INFORMATION) */
/*
* Attribute list support (for use by the attribute lookup functions).
* Setup during ntfs_open_inode() for all inodes with attribute lists.
Index: layout.h
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/include/ntfs/layout.h,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -p -r1.41 -r1.42
--- layout.h 3 Nov 2005 19:20:14 -0000 1.41
+++ layout.h 5 Nov 2005 22:54:43 -0000 1.42
@@ -2608,4 +2608,27 @@ typedef struct {
typedef EFS_DF_CERTIFICATE_THUMBPRINT_HEADER EFS_DF_CERT_THUMBPRINT_HEADER;
+typedef enum {
+ INTX_SYMBOLIC_LINK =
+ const_cpu_to_le64(0x014B4E4C78746E49ULL), /* "IntxLNK\1" */
+ INTX_CHARACTER_DEVICE =
+ const_cpu_to_le64(0x0052484378746E49ULL), /* "IntxCHR\0" */
+ INTX_BLOCK_DEVICE =
+ const_cpu_to_le64(0x004B4C4278746E49ULL), /* "IntxBLK\0" */
+} INTX_FILE_TYPES;
+
+typedef struct {
+ INTX_FILE_TYPES magic; /* Intx file magic. */
+ union {
+ /* For character and block devices. */
+ struct {
+ u64 major; /* Major device number. */
+ u64 minor; /* Minor device number. */
+ void *device_end[0]; /* Marker for offsetof(). */
+ } __attribute__((__packed__));
+ /* For symbolic links. */
+ ntfschar target[0];
+ } __attribute__((__packed__));
+} __attribute__((__packed__)) INTX_FILE;
+
#endif /* defined _NTFS_LAYOUT_H */
|