le16
le16 inherited)
BOOL fordir, le16 inherited);
*(le16*)((u8*)b+count-2) = cpu_to_le16(efs_padding_length);
le16 cs;
le16 spcomp;
if (cb == cb_end || !le16_to_cpup((le16*)cb) || dest == dest_end) {
cb_sb_end = cb_sb_start + (le16_to_cpup((le16*)cb) & NTFS_SB_SIZE_MASK)
if (!(le16_to_cpup((le16*)cb) & NTFS_SB_IS_COMPRESSED)) {
pt = le16_to_cpup((le16*)cb);
le16 appended_bytes;
#define const_cpu_to_le16(x) ((le16) __constant_cpu_to_le16(x))
#define const_sle16_to_cpu(x) ((s16) __constant_le16_to_cpu((le16) x))
le16 flags;
*(le16 *)((char *)ib + le16_to_cpu(ib->usa_ofs)) = const_cpu_to_le16(1);
/* 4*/ le16 length; /* Byte size of this entry. */
/* 24*/ le16 instance; /* If lowest_vcn = 0, the instance of the
/* 3c*/ le16 packed_ea_size; /* Size of the buffer needed to
/* 3e*/ le16 reserved; /* Reserved for alignment. */
le16 data2; /* The first group of four hexadecimal digits. */
le16 data3; /* The second group of four hexadecimal digits. */
le16 size; /* Size in bytes of the ACE. */
le16 size; /* Size in bytes of the ACE. */
le16 size; /* Size in bytes of the ACE. */
le16 size; /* Allocated space in bytes for ACL. Includes this
le16 ace_count; /* Number of ACEs in the ACL. */
le16 alignment2;
le16 usa_ofs; /* Offset to the Update Sequence Array (usa)
le16 usa_count; /* Number of le16 sized entries in the usa
le16 usa_ofs; /* See NTFS_RECORD definition. */
le16 usa_count; /* See NTFS_RECORD definition. */
le16 data_offset;
le16 data_length;
/* 8*/ le16 length;
/* 10*/ le16 key_length;
/* 14*/ le16 reserved;
le16 data_offset; /* Data byte offset from this
le16 data_length; /* Data length in bytes. */
/* 8*/ le16 length; /* Byte size of this index entry, multiple of
/* 10*/ le16 key_length; /* Byte size of the key value, which is in the
/* 14*/ le16 reserved; /* Reserved/align to 8-byte boundary. */
le16 reparse_data_length; /* Byte size of reparse data. */
le16 reserved; /* Align to 8-byte boundary. */
le16 ea_length; /* Byte size of the packed extended
le16 need_ea_count; /* The number of extended attributes which have
le16 value_length; /* Byte size of the EA's value. */
le16 usa_ofs; /* See NTFS_RECORD definition above. */
le16 usa_count; /* See NTFS_RECORD definition above. */
/* 16*/ le16 sequence_number; /* Number of times this mft record has been
/* 18*/ le16 link_count; /* Number of hard links, i.e. the number of
/* 20*/ le16 attrs_offset; /* Byte offset to the first attribute in this
/* 40*/ le16 next_attr_instance; /* The instance number that will be
/* 42*/ le16 reserved; /* Reserved/alignment. */
le16 usa_ofs; /* See NTFS_RECORD definition above. */
le16 usa_count; /* See NTFS_RECORD definition above. */
/* 16*/ le16 sequence_number; /* Number of times this mft record has been
/* 18*/ le16 link_count; /* Number of hard links, i.e. the number of
/* 20*/ le16 attrs_offset; /* Byte offset to the first attribute in this
/* 40*/ le16 next_attr_instance; /* The instance number that will be
le16 bytes_per_sector; /* Size of a sector in bytes. */
le16 reserved_sectors; /* zero */
le16 root_entries; /* zero */
le16 sectors; /* zero */
le16 sectors_per_fat; /* zero */
/*0x0d*/le16 sectors_per_track; /* Required to boot Windows. */
/*0x0f*/le16 heads; /* Required to boot Windows. */
/* 10*/ le16 name_offset; /* If name_length != 0, the byte offset to the
/* 14*/ le16 instance; /* The instance of this attribute record. This
/* 20 */ le16 value_offset; /* Byte offset of the attribute
/* 32*/ le16 mapping_pairs_offset; /* Byte offset from the
le16 end_of_sector_marker; /* End of bootsector magic. Always is
typedef le16 RESTART_AREA_FLAGS;
/* 8*/ le16 log_clients; /* Number of log client records in the array of
/* 10*/ le16 client_free_list; /* The index of the first free log client record
/* 12*/ le16 client_in_use_list;/* The index of the first in-use log client
/* 20*/ le16 restart_area_length;/* Length of the restart area including the
/* 22*/ le16 client_array_offset;/* Offset from the start of this record to
/* 36*/ le16 log_record_header_length;/* Byte size of the log record header.
/* 38*/ le16 log_page_data_offset;/* Offset to the start of data in a log record
/* 16*/ le16 prev_client; /* The offset to the previous log client record
/* 18*/ le16 next_client; /* The offset to the next log client record in
/* 20*/ le16 seq_number; /* On Win2k and presumably earlier, this is set
le16 usa_ofs; /* See NTFS_RECORD definition in layout.h.
le16 usa_count; /* See NTFS_RECORD definition in layout.h. */
le16 page_count;
le16 page_position;
le16 next_record_offset;
le16 reserved[3];
le16 seq_number;
le16 client_index;
typedef le16 ATTRIBUTE_FLAGS;
le16 reserved_or_alignment[3];
le16 redo_operation;
le16 undo_operation;
le16 redo_offset;
le16 redo_length;
le16 undo_offset;
le16 undo_length;
le16 target_attribute;
le16 lcns_to_follow; /* Number of lcn_list entries
le16 record_offset;
le16 attribute_offset;
le16 cluster_index;
/* 4*/ le16 usa_ofs; /* See NTFS_RECORD definition in layout.h.
/* 6*/ le16 usa_count; /* See NTFS_RECORD definition in layout.h. */
/* 24*/ le16 restart_area_offset;/* Byte offset from the start of this header to
/* 30*/ le16 usn;
le16 seq_no, usn;
usn = *(le16*)((u8*)m + (le16_to_cpu(m->usa_ofs) & -2));
*(le16*)((u8*)m + le16_to_cpu(m->usa_ofs)) = usn;
le16 seq_no, usn;
usn = *(le16*)((u8*)m + usa_ofs);
*(le16*)((u8*)m + le16_to_cpu(m->usa_ofs)) = usn;
le16 old_seq_no;
le16 *usnp;
usnp = (le16*)((char*)mrec + le16_to_cpu(mrec->usa_ofs));
*(le16*)((u8*)mrec + le16_to_cpu(mrec->usa_ofs)) = const_cpu_to_le16(1);
le16 le_usn;
le16 *usa_pos, *data_pos;
usa_pos = (le16*)((u8*)b + usa_ofs);
data_pos = (le16*)b + NTFS_BLOCK_SIZE/sizeof(le16) - 1;
data_pos += NTFS_BLOCK_SIZE/sizeof(le16);
le16 seqn;
le16 subst_name_offset;
le16 subst_name_length;
le16 print_name_offset;
le16 print_name_length;
le16 subst_name_offset;
le16 subst_name_length;
le16 print_name_offset;
le16 print_name_length;
le16 seqn;
le16 seqn;
le16 offs;
le16 size;
le16 indexsz;
le16 indexksz;
le16 flags;
le16 fill2;
le16 control;
le16 control;
le16 offs;
le16 size;
le16 indexsz;
le16 indexksz;
le16 flags;
le16 fill2;
typedef le16 ntfschar; /* 2-byte Unicode character type. */
int ntfs_volume_write_flags(ntfs_volume *vol, const le16 flags)
le16 flags; /* Bit array of VOLUME_* flags. */
extern int ntfs_volume_write_flags(ntfs_volume *vol, const le16 flags);
le16 tag;
le16 perms;
le16 filler;
le16 packmajor;
le16 packminor;
*(le16*)((char*)ia_val + le16_to_cpu(ia_val->usa_ofs)) =