* ntdll.h (struct _FILE_COMPRESSION_INFORMATION): Align with definition
in w32api / MSDN. * fhandler_disk_file.cc (fhandler_base::fstat_helper): Accommodate change to struct _FILE_COMPRESSION_INFORMATION.
This commit is contained in:
parent
dfbd95d35d
commit
b75971ef8a
|
@ -1,3 +1,10 @@
|
||||||
|
2007-09-27 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* ntdll.h (struct _FILE_COMPRESSION_INFORMATION): Align with definition
|
||||||
|
in w32api / MSDN.
|
||||||
|
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Accommodate
|
||||||
|
change to struct _FILE_COMPRESSION_INFORMATION.
|
||||||
|
|
||||||
2007-09-26 Corinna Vinschen <corinna@vinschen.de>
|
2007-09-26 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* termios.cc (setspeed): Support new baud rates introduced 2007-02-05.
|
* termios.cc (setspeed): Support new baud rates introduced 2007-02-05.
|
||||||
|
|
|
@ -506,7 +506,8 @@ fhandler_base::fstat_helper (struct __stat64 *buf,
|
||||||
sizeof fci, FileCompressionInformation))
|
sizeof fci, FileCompressionInformation))
|
||||||
/* Otherwise we request the actual amount of bytes allocated for
|
/* Otherwise we request the actual amount of bytes allocated for
|
||||||
compressed and sparsed files. */
|
compressed and sparsed files. */
|
||||||
buf->st_blocks = (fci.CompressedSize.QuadPart + S_BLKSIZE - 1) / S_BLKSIZE;
|
buf->st_blocks = (fci.CompressedFileSize.QuadPart + S_BLKSIZE - 1)
|
||||||
|
/ S_BLKSIZE;
|
||||||
else
|
else
|
||||||
/* Otherwise compute no. of blocks from file size. */
|
/* Otherwise compute no. of blocks from file size. */
|
||||||
buf->st_blocks = (buf->st_size + S_BLKSIZE - 1) / S_BLKSIZE;
|
buf->st_blocks = (buf->st_size + S_BLKSIZE - 1) / S_BLKSIZE;
|
||||||
|
|
|
@ -651,11 +651,12 @@ typedef struct _FILE_PIPE_LOCAL_INFORMATION
|
||||||
|
|
||||||
typedef struct _FILE_COMPRESSION_INFORMATION
|
typedef struct _FILE_COMPRESSION_INFORMATION
|
||||||
{
|
{
|
||||||
LARGE_INTEGER CompressedSize;
|
LARGE_INTEGER CompressedFileSize;
|
||||||
USHORT CompressionFormat;
|
USHORT CompressionFormat;
|
||||||
UCHAR CompressionUnitShift;
|
UCHAR CompressionUnitShift;
|
||||||
UCHAR Unknown;
|
UCHAR ChunkShift;
|
||||||
UCHAR ClusterSizeShift;
|
UCHAR ClusterShift;
|
||||||
|
UCHAR Reserved[3];
|
||||||
} FILE_COMPRESSION_INFORMATION, *PFILE_COMPRESSION_INFORMATION;
|
} FILE_COMPRESSION_INFORMATION, *PFILE_COMPRESSION_INFORMATION;
|
||||||
|
|
||||||
typedef struct _FILE_FS_DEVICE_INFORMATION
|
typedef struct _FILE_FS_DEVICE_INFORMATION
|
||||||
|
|
Loading…
Reference in New Issue