Changes by: antona
Update of /cvsroot/linux-ntfs/linux-ntfs/include
In directory usw-pr-cvs1:/tmp/cvs-serv9476/include
Modified Files:
attrib.h logfile.h mft.h
Log Message:
Added a logfile dumper as a new utility.
Almost finished the first ntfsfix release. (Still missingin CVS are attrib.c
for ntfslib and the makefiles to build everything.)
Fixes for nested packed structure/union typedefs as gcc doesn't automatically
nest the __attribute__ ((__packed__)), even though according to the gcc info
page it does. (Thanks to Yuri Per <yu...@ac...> for pointing this out.)
Index: attrib.h
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/include/attrib.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** attrib.h 2001/01/26 02:36:10 1.2
--- attrib.h 2001/01/27 14:22:02 1.3
***************
*** 427,436 ****
pack the extended attributes
(EAs), if such are present.*/
! };
__u32 reparse_point_tag; /* Type of reparse point,
present only in reparse
points and only if there are
no EAs. */
! };
__u8 filename_length; /* Length of filename in
Unicode characters. */
--- 427,436 ----
pack the extended attributes
(EAs), if such are present.*/
! } __attribute__ ((__packed__));
__u32 reparse_point_tag; /* Type of reparse point,
present only in reparse
points and only if there are
no EAs. */
! } __attribute__ ((__packed__));
__u8 filename_length; /* Length of filename in
Unicode characters. */
***************
*** 479,485 ****
GUID domain_id; /* Reserved.
NOTE: Optional. */
! };
__u8 extended_info[48];
! };
} __attribute__ ((__packed__)) OBJECT_ID_ATTRIBUTE;
--- 479,485 ----
GUID domain_id; /* Reserved.
NOTE: Optional. */
! } __attribute__ ((__packed__));
__u8 extended_info[48];
! } __attribute__ ((__packed__));
} __attribute__ ((__packed__)) OBJECT_ID_ATTRIBUTE;
Index: logfile.h
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/include/logfile.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** logfile.h 2001/01/24 21:02:37 1.2
--- logfile.h 2001/01/27 14:22:02 1.3
***************
*** 164,168 ****
__u64 last_lsn;
__u32 file_offset;
! } copy;
__u32 flags;
__u16 page_count;
--- 164,168 ----
__u64 last_lsn;
__u32 file_offset;
! } __attribute__ ((__packed__)) copy;
__u32 flags;
__u16 page_count;
***************
*** 172,177 ****
__u64 next_record_offset;
__u64 last_end_lsn;
! } packed;
! } header;
} __attribute__ ((__packed__)) RECORD_PAGE_HEADER;
--- 172,177 ----
__u64 next_record_offset;
__u64 last_end_lsn;
! } __attribute__ ((__packed__)) packed;
! } __attribute__ ((__packed__)) header;
} __attribute__ ((__packed__)) RECORD_PAGE_HEADER;
***************
*** 197,201 ****
__u16 seq_number;
__u16 client_index;
! } client_id;
__u32 record_type;
__u32 transaction_id;
--- 197,201 ----
__u16 seq_number;
__u16 client_index;
! } __attribute__ ((__packed__)) client_id;
__u32 record_type;
__u32 transaction_id;
***************
*** 221,225 ****
__u32 lcn;
__u32 alignment_or_reserved;
! } lcn_list[0];
} __attribute__ ((__packed__)) LOG_RECORD;
--- 221,225 ----
__u32 lcn;
__u32 alignment_or_reserved;
! } __attribute__((__packed__)) lcn_list[0];
} __attribute__ ((__packed__)) LOG_RECORD;
Index: mft.h
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/include/mft.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** mft.h 2001/01/24 02:13:24 1.1
--- mft.h 2001/01/27 14:22:02 1.2
***************
*** 69,75 ****
__u32 low_part; /* Mft record number being referenced split */
__u16 high_part;/* into the low 32-bits and the high 16-bits. */
! };
__u16 sequence_number; /* The sequence number, see above. */
! };
__u64 mft_reference; /* The whole mft reference as one number. */
} __attribute__ ((__packed__)) MFT_REFERENCE;
--- 69,75 ----
__u32 low_part; /* Mft record number being referenced split */
__u16 high_part;/* into the low 32-bits and the high 16-bits. */
! } __attribute__ ((__packed__));
__u16 sequence_number; /* The sequence number, see above. */
! } __attribute__ ((__packed__));
__u64 mft_reference; /* The whole mft reference as one number. */
} __attribute__ ((__packed__)) MFT_REFERENCE;
|