Simple Question about DiskPerf-Please Help

  • Thread starter Thread starter Shalini
  • Start date Start date
S

Shalini

Hello All
I have modified the DiskPerf source code to add Encryption and Decryption
and it is working successfully with no problems.
But i have one question regarding htat..
Is it possible in any way i can access what file is being accessed..from the
MyDriverReadWrite and MyDriverIoCompletion functions.
For example consider i have mapped IRP_MJ_READ and IRP_MJ_WRITE to
MyDriverReadWrite ..
When i edit a file called Somefile.txt immediately i get my
MyDriverReadWrite Called.
Is it possible in any way i know in MyDriverReadWrite that the file accessed
currently is somefile.txt in the driver.
My main question is i have to avoid certain files from being
encrypted/decrypted at all. is it possible in any way other than this????
I know we can also write a File System Filter Driver. But that will really
take weeks. So i just wanted to avoid the work effort.
Is it possible in any way??
Expecting ur replies..
Thanks
Shal
 
Short answer: no - you are doing your encrypt/decrypt at the wrong level if
you need to be 'file aware'. A file aware encrypt/decrypt function has to be
done at the file system filter level, not at the disk filter level.

Long answer: under some circumstances, with lots of constraints, you could
identify your 'special files' by the volume offset or physical disk LBA. How
you would deal with somebody running for example a defrag utility on top of
your volume-containing-special-files is an exercise left to the reader :-)
See my short answer.

--

=====================
Mark Roddy
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com
(e-mail address removed)
 
thanks Mark .Is there any sample available for File System Filter Driver
(Including Encryption)
I have the IFS Kit and have the SFilter sample code. Apart from this
anything else is available?
 
You aren't going to find a legitimate encryption filter sample on the net.
There are quite a few consultants who will be happy to transfer this
technology to you at a price.
--

=====================
Mark Roddy
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com
(e-mail address removed)
 
Hi,

My problem is somewhat related -- It is possible to encrypt files ove
a drive using a modified version of SFilter (the FileSpy example i
also a good one). If wanted to say encrypt a "virtually mapped drive
say z: mapped to some local folder such that all accessed files vi
that Z: are encrypted -- How would I do that in a efficient way? Th
issue here is that the virtua; drive is just a symlink rite -- ho
would I possibly put a upper level filter drive on top of a virtua
drive.

Thanx,
Prithvi





Mark said:
*You aren't going to find a legitimate encryption filter sample o
the net.
There are quite a few consultants who will be happy to transfe
this
technology to you at a price.
--

=====================
Mark Roddy
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com
(e-mail address removed)


Shalini said:
thanks Mark .Is there any sample available for File System Filte Driver
(Including Encryption)
I have the IFS Kit and have the SFilter sample code. Apart fro this
anything else is available?

if to
 
Back
Top