Can I presume the size of buffer of Paging IO is multiple of 4K?

Hi all,
I am developing a file system filter driver and it seems to work very
well in most cases. In my driver, I always presume the size of Read/Write
buffer size is multiple of 4K when paging IO. Is that right? If not, can I
force IO manager always creates
multiple of 4K buffer?

Thanks in advance.

Cary

Thank you.
I saw defines of PAGE_SIZE, they are 0x1000 or 0x2000 in ntifs.h. But
in my driver, I have caught a buffer size as 0x18 bytes when Paging IO.
(irp->flags = 0x43 ). That is reason why I post this question.

Cary
----- Original Message -----
From: “Nate Bushman”
To:
Sent: Friday, January 10, 2003 1:35 PM
Subject: RE: Can I presume the size of buffer of Paging IO is multiple of
4K?

Depending on the platform, the size of a page may vary. Try using
PAGE_SIZE which is defined in both ntddk.h and ntifs.h instead of 4K.
You’re probably already doing that though.

Nate

-----Original Message-----
From: Cary Fu [mailto:xxxxx@authenex.com]
Sent: Friday, January 10, 2003 12:08 PM
To: File Systems Developers
Subject: [ntfsd] Can I presume the size of buffer of Paging IO is
multiple of 4K?

Hi all,
I am developing a file system filter driver and it seems to work
very
well in most cases. In my driver, I always presume the size of
Read/Write
buffer size is multiple of 4K when paging IO. Is that right? If not,
can I
force IO manager always creates
multiple of 4K buffer?

Thanks in advance.

Cary


You are currently subscribed to ntfsd as: xxxxx@powerquest.com
To unsubscribe send a blank email to xxxxx@lists.osr.com