Re: How to detect disk activity?



To detect disk activity one does not need any driver.
Just poll the perf. counters from user mode.

--PA


<soviet_bloke@xxxxxxxxxxx> wrote in message news:1163215956.791390.251080@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Can you write 2 lines of code that inform you when disk
access is in progress? and just say where you would
put them in diskperf ?

Let's say someone does it for you. What are you going to learn this
way?????


Your project of monitoring disk activity is really good for someone who
wants to learn driver basics. What you have to do is to attach your
device(s) to the storage stack, so that you are able to capture all
requests that are sent to the disk. As far as I understand, you just
want to passively monitor disk activity, so that the project is really
easy ( for the time being, let's ignore PnP stuff - this is going to be
the next step). For the time being, SC Manager-based service is
perfectly acceptable


Therefore, go and write your code - this is the *ONLY* way to learn
things

Good luck

Anton Bassov




deean wrote:
You don't need to hook anything. Modify diskperf to add a control
device and use that to communicate with your application. Nobody is
going to write this for you and give you the source code.


Can you write 2 lines of code that inform you when disk
access is in progress? and just say where you would
put them in diskperf ?




=====================
Mark Roddy DDK MVP
Windows Vista/2003/XP/2000 Consulting
Device and Filesystem Drivers
Hollis Technology Solutions 603-321-1032
www.hollistech.com



.



Relevant Pages

  • Re: Verifier causes immediate crash on bootup
    ... You can send me the most recent minidump and I'll see if I can find ... > I've been getting 0xc4 errors (driver error) and following advice in the ... > sure where to look for the driver at fault...or if it's even listed in the ... > disk activity, extremely long app startups again with disk activity, and ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: ProLiant DL380 Frequent Lock-ups - SCSI driver?
    ... > has almost constant disk activity. ... > disk activity that makes me say this, but could it be an issue with the ... > SCSI subsystem driver Revision: ...
    (RedHat)
  • Verifier causes immediate crash on bootup
    ... I have dozens of minidumps but am not ... I suppose it would be too much to ask for XP to identify the driver in it's ... disk activity, extremely long app startups again with disk activity, and ...
    (microsoft.public.windowsxp.help_and_support)
  • ProLiant DL380 Frequent Lock-ups - SCSI driver?
    ... with the default 2.4.18-14smp kernel (the machine is a dual Xeon), ... disk activity that makes me say this, but could it be an issue with the ... SCSI subsystem driver Revision: 1.00 ...
    (RedHat)
  • Re: F8 - upgrading impossible
    ... Mark C. Allman wrote: ... disk activity, but no progress. ...
    (Fedora)