Reorder struct members in order to align to 32 and 64 bit bounderies.

(Logical change 1.505)
edge.strict_endians
!uv 2004-08-20 12:01:17 +00:00
parent b15ad70b99
commit 97df123793
4 changed files with 14 additions and 14 deletions

View File

@ -71,10 +71,10 @@ static LPFN_FINDVOLUMECLOSE fnFindVolumeClose = NULL;
typedef struct win32_fd {
HANDLE handle;
int part_hidden_sectors;
s64 part_start;
s64 part_end;
LARGE_INTEGER current_pos;
int part_hidden_sectors;
} win32_fd;
#ifdef EMULATE_SETFILEPOINTEREX

View File

@ -159,11 +159,6 @@ ntfs_volume *vol;
char *dev_name;
struct {
int sector_size; /* -s, in bytes, power of 2, default is
512 bytes. */
int sectors_per_track; /* number of sectors per track on
device */
int heads; /* number of heads on device */
long long part_start_sect; /* start sector of partition on parent
device */
long long nr_sectors; /* size of device in sectors */
@ -179,27 +174,32 @@ struct {
long long logfile_lcn; /* lcn of $LogFile, $DATA. */
int logfile_size; /* in bytes, determined from
volume_size. */
char mft_zone_multiplier; /* -z, value from 1 to 4. Default is
int mft_zone_multiplier; /* -z, value from 1 to 4. Default is
1. */
long long mft_zone_end; /* Determined from volume_size and
mft_zone_multiplier, in clusters. */
char no_action; /* -n, do not write to device, only
display what would be done. */
char check_bad_blocks; /* read-only test for bad
clusters. */
long long *bad_blocks; /* Array of bad clusters. */
long long nr_bad_blocks; /* Number of bad clusters. */
long long *bad_blocks; /* Array of bad clusters. */
char *bad_blocks_filename; /* filename, file to read list of
bad clusters from. */
ATTR_DEF *attr_defs; /* filename, attribute defs. */
int attr_defs_len; /* in bytes */
ntfschar *upcase; /* filename, upcase table. */
u32 upcase_len; /* Determined automatically. */
int sector_size; /* -s, in bytes, power of 2, default is
512 bytes. */
int sectors_per_track; /* number of sectors per track on
device */
int heads; /* number of heads on device */
int quiet; /* -q, quiet execution. */
int verbose; /* -v, verbose execution, given twice,
* really verbose execution (debug
* mode). */
int force; /* -F, force fs creation. */
int no_action; /* -n, do not write to device, only
display what would be done. */
char check_bad_blocks; /* read-only test for bad
clusters. */
char quick_format; /* -f or -Q, fast format, don't zero
the volume first. */
char enable_compression; /* -C, enables compression of all files

View File

@ -31,8 +31,8 @@
struct options {
char *device; /* Device/File to work with */
char *file; /* File to display */
ATTR_TYPES attr; /* Attribute type to display */
s64 inode; /* Inode to work with */
ATTR_TYPES attr; /* Attribute type to display */
int force; /* Override common sense */
int quiet; /* Less output */
int verbose; /* Extra output */

View File

@ -125,8 +125,8 @@ struct mft_search_ctx {
int flags_search;
int flags_match;
ntfs_inode *inode;
u64 mft_num;
ntfs_volume *vol;
u64 mft_num;
};
struct mft_search_ctx * mft_get_search_ctx (ntfs_volume *vol);