mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +00:00
- Missed fs_rec in last commit
svn path=/trunk/; revision=39094
This commit is contained in:
parent
ba67551bdf
commit
931eb2e0b0
2 changed files with 11 additions and 2 deletions
|
@ -178,7 +178,7 @@ FsRecReadBlock(IN PDEVICE_OBJECT DeviceObject,
|
||||||
{
|
{
|
||||||
/* He didn't, allocate one */
|
/* He didn't, allocate one */
|
||||||
*Buffer = ExAllocatePoolWithTag(NonPagedPool,
|
*Buffer = ExAllocatePoolWithTag(NonPagedPool,
|
||||||
PAGE_ROUND_UP(Length),
|
ROUND_TO_PAGES(Length),
|
||||||
FSREC_TAG);
|
FSREC_TAG);
|
||||||
if (!*Buffer) return FALSE;
|
if (!*Buffer) return FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
#include <ntifs.h>
|
#include <ntifs.h>
|
||||||
#include <ntdddisk.h>
|
#include <ntdddisk.h>
|
||||||
#include <ntddcdrm.h>
|
#include <ntddcdrm.h>
|
||||||
#include "helper.h"
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Tag for memory allocations
|
// Tag for memory allocations
|
||||||
//
|
//
|
||||||
|
#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
|
||||||
#define FSREC_TAG TAG('F', 's', 'R', 'c')
|
#define FSREC_TAG TAG('F', 's', 'R', 'c')
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -26,6 +26,15 @@
|
||||||
#define UDFS_VRS_START_OFFSET 32768
|
#define UDFS_VRS_START_OFFSET 32768
|
||||||
#define UDFS_AVDP_SECTOR 256
|
#define UDFS_AVDP_SECTOR 256
|
||||||
|
|
||||||
|
//
|
||||||
|
// Non-standard rounding macros
|
||||||
|
//
|
||||||
|
#define ROUND_UP(n, align) \
|
||||||
|
ROUND_DOWN(((ULONG)n) + (align) - 1, (align))
|
||||||
|
|
||||||
|
#define ROUND_DOWN(n, align) \
|
||||||
|
(((ULONG)n) & ~((align) - 1l))
|
||||||
|
|
||||||
//
|
//
|
||||||
// Conversion types and macros taken from internal ntifs headers
|
// Conversion types and macros taken from internal ntifs headers
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue