Hi, Everyone
I’m test file system filter driver but I have some problem.
I did test txt file about 5Kbyte. At first, file encrypt and decrypt test
is Ok before 10. But after 10 test, computer not response.
I know that encryption file size and decryption file size is different
during debugging.
The get the file size code is following.
FileSize = currentIrpStack->Parameters.Write.Length;
// is correct file size
if (FileSize >= currentIrpStack->FileObject->FsContext->FileSize.LowPart)
{
FileSize = currentIrpStack->FileObject->FsContext->FileSize.LowPart;
}
For writing file from cache to disk, FileSize is 0x2000 and
FileSize.LowPart = 0x12A9.
Real encryption file size is 0x12A9 at once, But Reading data from disk to
cache, it is different.
First read file, FileSize = 0x1000 and FileSize.LowPart = 0x12A9.
Real decryption file isze is 0x1000. Second reading operation is occur
becase paging io. Second reading is same.
Total encryption file size is 0x12A9, but total decryption file size is
0x2000.
I thougt that computer was not response after 10 read/wirte file test
because different file size.
Is it somthing wrong?
How can I get the correct file size?
Give me a some help, please.
ÀÌ Å×½ºÆ® °úÁ¤À» °ÅÄ¡´Ù º¸¸é óÀ½¿¡´Â µ¥ÀÌÅÍ ÆÄÀÏÀÇ ¾Ïº¹È£È°¡ µÇ´Âµ¥,
ÁøÇàÁß¿¡ DeadLockÀÇ ÇüŰ¡ ³ª
Ÿ³³´Ï´Ù. Áï, ÄÄÇ»ÅͰ¡ ÀÀ´äÀ» ÇÏÁö ¾Ê´Â °ÍÀÌÁÒ.
Ȥ½Ã cache¿¡ ÀúÀåµÇ´Â Å×ÀÌÅÍÀÇ ¾ÏÈ£È ¹× º¹È£ÈÀÇ ±æÀ̰¡ ¼·Î ´Ù¸£¸é À§¿Í
°°Àº Çö»óÀÌ ³ªÅ¸³¯ ¼ö ÀÖ´ÂÁö¿ä?
±×¸®°í Á¤È®ÇÑ FileÀÇ Å©±â¸¦ ¾òÀ» ¼ö ÀÖ´Â ¹æ¹ýÀº ¾ø³ª¿ä? (Àü¿ª º¯¼ö·Î õÁ¦
±æÀ̸¦ Àâ°í³ª¼ ó¸®ÇØ¾ß Çϳª¿ä?)
±×·³ ÁÁÀº ÇÏ·ç µÇ½Ê½Ã¿ä…
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com