Jump-start your project by learning from devs who
write Windows drivers and file systems every day.
Take an OSR seminar!

OSR is Hiring! Click here to find out more.

Windows Internals & Software Drivers Lab, Santa Clara, CA 5-9 August, 2013
Kernel Debugging & Crash Analysis for Windows Lab, Santa Clara, CA 9-13 September, 2013
Upcoming OSR Seminars:
Writing WDF Drivers for Windows Lab, Boston, MA 7-11 October, 2013
Developing File Systems for Windows, Seattle, WA 5-8 November, 2013


Go Back   OSR Online Lists > ntdev
Welcome, Guest
You must login to post to this list
  Message 1 of 3  
21 Aug 12 08:53
Paul Smith
xxxxxx@yahoo.com
Join Date: 13 Aug 2012
Posts To This List: 6
Help in Volume Bitmap

Hi, I have developed an upper volume filter driver which is working like a charm, it tracks the sectors that are modified. I have used diskperf sample as the base. Now I want this filter driver to create our own bitmap that would represent volume blocks that have changed vs unchanged, but I am stuck over here, not getting where to start from, can any one give some input for this. Is there any sample code available in the sdk that implements bitmap or which function can be used to implement the same? Any kind of help appreciated. Thanks in advance.
  Message 2 of 3  
21 Aug 12 09:12
Don Burn
xxxxxx@windrvr.com
Join Date: 23 Feb 2011
Posts To This List: 650
Re: Help in Volume Bitmap

In the WDK take a look at RtlInitializeBitMap, and the referenced routines at the bottom. Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr "xxxxx@yahoo.com" <xxxxx@yahoo.com> wrote in message news:181200@ntdev: > Hi, > > I have developed an upper volume filter driver which is working like a charm, it tracks the sectors that are modified. I have used diskperf sample as the base. > Now I want this filter driver to create our own bitmap that would represent volume blocks that have changed vs unchanged, but I am stuck over here, not getting where to start from, can any one give some input for this. Is there any sample code available in the sdk that implements bitmap or which function can be used to implement the same? > Any kind of help appreciated. > > Thanks in advance.
  Message 3 of 3  
22 Aug 12 02:06
Dmitriy Boiko
xxxxxx@rambler.ru
Join Date: 21 Jun 2010
Posts To This List: 13
RE: Help in Volume Bitmap

The simpliest way is to create your own bitmap file on the tracked volume. Open the bitmap file exclusively in your volume filter. No caching mode. When any cluster is modified, mark Irp as pending, then just set the required bit or byte in your bitmap file, then complete Irp. If the bitmap file is opened in non-exclusive mode, then any application can corrupt your bitmap data. The problem here that another application can't open the tracked volume exclusively. So if you run chkdsk utility for the tracked volume you'll get access error. You can also store bitmap data on another volume or disk.
Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You must login to OSR Online AND be a member of the ntdev list to be able to post.

All times are GMT -5. The time now is 05:06.


Copyright ©2012, OSR Open Systems Resources, Inc.
Based on vBulletin Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Modified under license