Is there a way to get an ad-hoc error log to show up as an Information entry
in the System log? No matter what I do it always shows up as an Error.
Thanks.
Set the high two bits in the message as
0 - success, 1 - Informational, 2 - Warning, 3 - Error.
Pete
Kernel Drivers
Windows Filesystem and Device Driver Consulting
www.KernelDrivers.com
(303)546-0300
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Neil Weicher
Sent: Friday, November 18, 2005 11:58 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] IoWriteErrorLogEntry
Is there a way to get an ad-hoc error log to show up as an Information entry
in the System log? No matter what I do it always shows up as an Error.
Thanks.
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@kerneldrivers.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Unfortunately that does not appear to be it. All the fields in the
PIO_ERROR_LOG_PACKET are zeroed, but it still shows up in the log as an
error. Thanks for the reply tho.
----- Original Message -----
From: “Peter Scott”
To: “Windows File Systems Devs Interest List”
Sent: Friday, November 18, 2005 2:17 PM
Subject: RE: [ntfsd] IoWriteErrorLogEntry
>
> Set the high two bits in the message as
>
> 0 - success, 1 - Informational, 2 - Warning, 3 - Error.
>
> Pete
>
> Kernel Drivers
> Windows Filesystem and Device Driver Consulting
> www.KernelDrivers.com
> (303)546-0300
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Neil Weicher
> Sent: Friday, November 18, 2005 11:58 AM
> To: Windows File Systems Devs Interest List
> Subject: [ntfsd] IoWriteErrorLogEntry
>
> Is there a way to get an ad-hoc error log to show up as an Information
entry
> in the System log? No matter what I do it always shows up as an Error.
> Thanks.
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@kerneldrivers.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@netlib.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
Declare the particular event as Information or Error in the MC file (the
Severity= clause). This works for me.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Neil Weicher”
To: “Windows File Systems Devs Interest List”
Sent: Saturday, November 19, 2005 8:32 AM
Subject: Re: [ntfsd] IoWriteErrorLogEntry
> Unfortunately that does not appear to be it. All the fields in the
> PIO_ERROR_LOG_PACKET are zeroed, but it still shows up in the log as an
> error. Thanks for the reply tho.
>
> ----- Original Message -----
> From: “Peter Scott”
> To: “Windows File Systems Devs Interest List”
> Sent: Friday, November 18, 2005 2:17 PM
> Subject: RE: [ntfsd] IoWriteErrorLogEntry
>
>
> >
> > Set the high two bits in the message as
> >
> > 0 - success, 1 - Informational, 2 - Warning, 3 - Error.
> >
> > Pete
> >
> > Kernel Drivers
> > Windows Filesystem and Device Driver Consulting
> > www.KernelDrivers.com
> > (303)546-0300
> >
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Neil Weicher
> > Sent: Friday, November 18, 2005 11:58 AM
> > To: Windows File Systems Devs Interest List
> > Subject: [ntfsd] IoWriteErrorLogEntry
> >
> > Is there a way to get an ad-hoc error log to show up as an Information
> entry
> > in the System log? No matter what I do it always shows up as an Error.
> > Thanks.
> >
> >
> >
> > —
> > Questions? First check the IFS FAQ at
> > https://www.osronline.com/article.cfm?id=17
> >
> > You are currently subscribed to ntfsd as: xxxxx@kerneldrivers.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> >
> >
> > —
> > Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
> >
> > You are currently subscribed to ntfsd as: xxxxx@netlib.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
Maxim,
Thanks - I’ve tried adding the messages to the SYS file. However, there
doesnt seem to be any way to specify an event source. How do you tell
IoWriteErrorLogEntry where to look for the event information?
Neil
----- Original Message -----
From: “Maxim S. Shatskih”
To: “Windows File Systems Devs Interest List”
Sent: Saturday, November 19, 2005 6:05 AM
Subject: Re: [ntfsd] IoWriteErrorLogEntry
> Declare the particular event as Information or Error in the MC file
(the
> Severity= clause). This works for me.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “Neil Weicher”
> To: “Windows File Systems Devs Interest List”
> Sent: Saturday, November 19, 2005 8:32 AM
> Subject: Re: [ntfsd] IoWriteErrorLogEntry
>
>
> > Unfortunately that does not appear to be it. All the fields in the
> > PIO_ERROR_LOG_PACKET are zeroed, but it still shows up in the log as an
> > error. Thanks for the reply tho.
> >
> > ----- Original Message -----
> > From: “Peter Scott”
> > To: “Windows File Systems Devs Interest List”
> > Sent: Friday, November 18, 2005 2:17 PM
> > Subject: RE: [ntfsd] IoWriteErrorLogEntry
> >
> >
> > >
> > > Set the high two bits in the message as
> > >
> > > 0 - success, 1 - Informational, 2 - Warning, 3 - Error.
> > >
> > > Pete
> > >
> > > Kernel Drivers
> > > Windows Filesystem and Device Driver Consulting
> > > www.KernelDrivers.com
> > > (303)546-0300
> > >
> > >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf Of Neil Weicher
> > > Sent: Friday, November 18, 2005 11:58 AM
> > > To: Windows File Systems Devs Interest List
> > > Subject: [ntfsd] IoWriteErrorLogEntry
> > >
> > > Is there a way to get an ad-hoc error log to show up as an Information
> > entry
> > > in the System log? No matter what I do it always shows up as an
Error.
> > > Thanks.
> > >
> > >
> > >
> > > —
> > > Questions? First check the IFS FAQ at
> > > https://www.osronline.com/article.cfm?id=17
> > >
> > > You are currently subscribed to ntfsd as: xxxxx@kerneldrivers.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> > >
> > >
> > >
> > > —
> > > Questions? First check the IFS FAQ at
> > https://www.osronline.com/article.cfm?id=17
> > >
> > > You are currently subscribed to ntfsd as: xxxxx@netlib.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> >
> >
> >
> > —
> > Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
> >
> > You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@netlib.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
You must register the event message file in the registry, it is documented.
The event message file is not used in IoWriteErrorLogEntry while writing, it is
used in EventVwr.Exe while browsing.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Neil Weicher”
To: “Windows File Systems Devs Interest List”
Sent: Wednesday, November 30, 2005 6:39 AM
Subject: Re: [ntfsd] IoWriteErrorLogEntry
> Maxim,
>
> Thanks - I’ve tried adding the messages to the SYS file. However, there
> doesnt seem to be any way to specify an event source. How do you tell
> IoWriteErrorLogEntry where to look for the event information?
>
> Neil
>
> ----- Original Message -----
> From: “Maxim S. Shatskih”
> To: “Windows File Systems Devs Interest List”
> Sent: Saturday, November 19, 2005 6:05 AM
> Subject: Re: [ntfsd] IoWriteErrorLogEntry
>
>
> > Declare the particular event as Information or Error in the MC file
> (the
> > Severity= clause). This works for me.
> >
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > xxxxx@storagecraft.com
> > http://www.storagecraft.com
> >
> > ----- Original Message -----
> > From: “Neil Weicher”
> > To: “Windows File Systems Devs Interest List”
> > Sent: Saturday, November 19, 2005 8:32 AM
> > Subject: Re: [ntfsd] IoWriteErrorLogEntry
> >
> >
> > > Unfortunately that does not appear to be it. All the fields in the
> > > PIO_ERROR_LOG_PACKET are zeroed, but it still shows up in the log as an
> > > error. Thanks for the reply tho.
> > >
> > > ----- Original Message -----
> > > From: “Peter Scott”
> > > To: “Windows File Systems Devs Interest List”
> > > Sent: Friday, November 18, 2005 2:17 PM
> > > Subject: RE: [ntfsd] IoWriteErrorLogEntry
> > >
> > >
> > > >
> > > > Set the high two bits in the message as
> > > >
> > > > 0 - success, 1 - Informational, 2 - Warning, 3 - Error.
> > > >
> > > > Pete
> > > >
> > > > Kernel Drivers
> > > > Windows Filesystem and Device Driver Consulting
> > > > www.KernelDrivers.com
> > > > (303)546-0300
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: xxxxx@lists.osr.com
> > > > [mailto:xxxxx@lists.osr.com] On Behalf Of Neil Weicher
> > > > Sent: Friday, November 18, 2005 11:58 AM
> > > > To: Windows File Systems Devs Interest List
> > > > Subject: [ntfsd] IoWriteErrorLogEntry
> > > >
> > > > Is there a way to get an ad-hoc error log to show up as an Information
> > > entry
> > > > in the System log? No matter what I do it always shows up as an
> Error.
> > > > Thanks.
> > > >
> > > >
> > > >
> > > > —
> > > > Questions? First check the IFS FAQ at
> > > > https://www.osronline.com/article.cfm?id=17
> > > >
> > > > You are currently subscribed to ntfsd as: xxxxx@kerneldrivers.com
> > > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > > >
> > > >
> > > >
> > > >
> > > > —
> > > > Questions? First check the IFS FAQ at
> > > https://www.osronline.com/article.cfm?id=17
> > > >
> > > > You are currently subscribed to ntfsd as: xxxxx@netlib.com
> > > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > > >
> > >
> > >
> > >
> > > —
> > > Questions? First check the IFS FAQ at
> > https://www.osronline.com/article.cfm?id=17
> > >
> > > You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> >
> > —
> > Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
> >
> > You are currently subscribed to ntfsd as: xxxxx@netlib.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
And if you compile the message resource into your driver binary you can
specify the binary as the source. Of course, you can specify ANY binary as
the source of the message information.
Pete
Kernel Drivers
Windows Filesystem and Device Driver Consulting
www.KernelDrivers.com
(303)546-0300
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Wednesday, November 30, 2005 7:32 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] IoWriteErrorLogEntry
You must register the event message file in the registry, it is
documented.
The event message file is not used in IoWriteErrorLogEntry while writing, it
is
used in EventVwr.Exe while browsing.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Neil Weicher”
To: “Windows File Systems Devs Interest List”
Sent: Wednesday, November 30, 2005 6:39 AM
Subject: Re: [ntfsd] IoWriteErrorLogEntry
> Maxim,
>
> Thanks - I’ve tried adding the messages to the SYS file. However, there
> doesnt seem to be any way to specify an event source. How do you tell
> IoWriteErrorLogEntry where to look for the event information?
>
> Neil
>
> ----- Original Message -----
> From: “Maxim S. Shatskih”
> To: “Windows File Systems Devs Interest List”
> Sent: Saturday, November 19, 2005 6:05 AM
> Subject: Re: [ntfsd] IoWriteErrorLogEntry
>
>
> > Declare the particular event as Information or Error in the MC file
> (the
> > Severity= clause). This works for me.
> >
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > xxxxx@storagecraft.com
> > http://www.storagecraft.com
> >
> > ----- Original Message -----
> > From: “Neil Weicher”
> > To: “Windows File Systems Devs Interest List”
> > Sent: Saturday, November 19, 2005 8:32 AM
> > Subject: Re: [ntfsd] IoWriteErrorLogEntry
> >
> >
> > > Unfortunately that does not appear to be it. All the fields in the
> > > PIO_ERROR_LOG_PACKET are zeroed, but it still shows up in the log as
an
> > > error. Thanks for the reply tho.
> > >
> > > ----- Original Message -----
> > > From: “Peter Scott”
> > > To: “Windows File Systems Devs Interest List”
> > > Sent: Friday, November 18, 2005 2:17 PM
> > > Subject: RE: [ntfsd] IoWriteErrorLogEntry
> > >
> > >
> > > >
> > > > Set the high two bits in the message as
> > > >
> > > > 0 - success, 1 - Informational, 2 - Warning, 3 - Error.
> > > >
> > > > Pete
> > > >
> > > > Kernel Drivers
> > > > Windows Filesystem and Device Driver Consulting
> > > > www.KernelDrivers.com
> > > > (303)546-0300
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: xxxxx@lists.osr.com
> > > > [mailto:xxxxx@lists.osr.com] On Behalf Of Neil Weicher
> > > > Sent: Friday, November 18, 2005 11:58 AM
> > > > To: Windows File Systems Devs Interest List
> > > > Subject: [ntfsd] IoWriteErrorLogEntry
> > > >
> > > > Is there a way to get an ad-hoc error log to show up as an
Information
> > > entry
> > > > in the System log? No matter what I do it always shows up as an
> Error.
> > > > Thanks.
> > > >
> > > >
> > > >
> > > > —
> > > > Questions? First check the IFS FAQ at
> > > > https://www.osronline.com/article.cfm?id=17
> > > >
> > > > You are currently subscribed to ntfsd as: xxxxx@kerneldrivers.com
> > > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > > >
> > > >
> > > >
> > > >
> > > > —
> > > > Questions? First check the IFS FAQ at
> > > https://www.osronline.com/article.cfm?id=17
> > > >
> > > > You are currently subscribed to ntfsd as: xxxxx@netlib.com
> > > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > > >
> > >
> > >
> > >
> > > —
> > > Questions? First check the IFS FAQ at
> > https://www.osronline.com/article.cfm?id=17
> > >
> > > You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> >
> > —
> > Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
> >
> > You are currently subscribed to ntfsd as: xxxxx@netlib.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@kerneldrivers.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
I compiled the messages into the SYS file, added the SYS file into the
registry, but the messages are still showing up as Error, even though I have
them marked as Severity=Success (0x00).
I know it is picking up the message file because the text is showing up
correctly.
Here is part of the MC file –>
MessageIdTypedef=NTSTATUS
LanguageNames=(English=0x409:MSG00409)
SeverityNames=(Success=0x0:STATUS_SEVERITY_SUCCESS … )
FacilityNames=(System=0x0)
MessageId=0x0
Severity=Success
Facility=System
SymbolicName=TEST_EVENT
Language=English
This is a test
.
Inside the driver I issue IoAllocateErrorLogEntry, set all fields to zero,
then call IoWriteErrorLogEntry.
The log entry shows up as follows –>
Category: none
EventId: 0
Type: Error
Description: This is a test
Any advice would be appreciated.
Thanks.
Neil
----- Original Message -----
From: “Maxim S. Shatskih”
To: “Windows File Systems Devs Interest List”
Sent: Wednesday, November 30, 2005 9:32 AM
Subject: Re: [ntfsd] IoWriteErrorLogEntry
> You must register the event message file in the registry, it is
documented.
> The event message file is not used in IoWriteErrorLogEntry while writing,
it is
> used in EventVwr.Exe while browsing.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “Neil Weicher”
> To: “Windows File Systems Devs Interest List”
> Sent: Wednesday, November 30, 2005 6:39 AM
> Subject: Re: [ntfsd] IoWriteErrorLogEntry
>
>
> > Maxim,
> >
> > Thanks - I’ve tried adding the messages to the SYS file. However, there
> > doesnt seem to be any way to specify an event source. How do you tell
> > IoWriteErrorLogEntry where to look for the event information?
> >
> > Neil
> >
> > ----- Original Message -----
> > From: “Maxim S. Shatskih”
> > To: “Windows File Systems Devs Interest List”
> > Sent: Saturday, November 19, 2005 6:05 AM
> > Subject: Re: [ntfsd] IoWriteErrorLogEntry
> >
> >
> > > Declare the particular event as Information or Error in the MC
file
> > (the
> > > Severity= clause). This works for me.
> > >
> > > Maxim Shatskih, Windows DDK MVP
> > > StorageCraft Corporation
> > > xxxxx@storagecraft.com
> > > http://www.storagecraft.com
> > >
> > > ----- Original Message -----
> > > From: “Neil Weicher”
> > > To: “Windows File Systems Devs Interest List”
> > > Sent: Saturday, November 19, 2005 8:32 AM
> > > Subject: Re: [ntfsd] IoWriteErrorLogEntry
> > >
> > >
> > > > Unfortunately that does not appear to be it. All the fields in the
> > > > PIO_ERROR_LOG_PACKET are zeroed, but it still shows up in the log as
an
> > > > error. Thanks for the reply tho.
> > > >
> > > > ----- Original Message -----
> > > > From: “Peter Scott”
> > > > To: “Windows File Systems Devs Interest List”
> > > > Sent: Friday, November 18, 2005 2:17 PM
> > > > Subject: RE: [ntfsd] IoWriteErrorLogEntry
> > > >
> > > >
> > > > >
> > > > > Set the high two bits in the message as
> > > > >
> > > > > 0 - success, 1 - Informational, 2 - Warning, 3 - Error.
> > > > >
> > > > > Pete
> > > > >
> > > > > Kernel Drivers
> > > > > Windows Filesystem and Device Driver Consulting
> > > > > www.KernelDrivers.com
> > > > > (303)546-0300
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: xxxxx@lists.osr.com
> > > > > [mailto:xxxxx@lists.osr.com] On Behalf Of Neil
Weicher
> > > > > Sent: Friday, November 18, 2005 11:58 AM
> > > > > To: Windows File Systems Devs Interest List
> > > > > Subject: [ntfsd] IoWriteErrorLogEntry
> > > > >
> > > > > Is there a way to get an ad-hoc error log to show up as an
Information
> > > > entry
> > > > > in the System log? No matter what I do it always shows up as an
> > Error.
> > > > > Thanks.
> > > > >
> > > > >
> > > > >
> > > > > —
> > > > > Questions? First check the IFS FAQ at
> > > > > https://www.osronline.com/article.cfm?id=17
> > > > >
> > > > > You are currently subscribed to ntfsd as: xxxxx@kerneldrivers.com
> > > > > To unsubscribe send a blank email to
xxxxx@lists.osr.com
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > —
> > > > > Questions? First check the IFS FAQ at
> > > > https://www.osronline.com/article.cfm?id=17
> > > > >
> > > > > You are currently subscribed to ntfsd as: xxxxx@netlib.com
> > > > > To unsubscribe send a blank email to
xxxxx@lists.osr.com
> > > > >
> > > >
> > > >
> > > >
> > > > —
> > > > Questions? First check the IFS FAQ at
> > > https://www.osronline.com/article.cfm?id=17
> > > >
> > > > You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> > > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> > >
> > >
> > > —
> > > Questions? First check the IFS FAQ at
> > https://www.osronline.com/article.cfm?id=17
> > >
> > > You are currently subscribed to ntfsd as: xxxxx@netlib.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> >
> >
> >
> > —
> > Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
> >
> > You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@netlib.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
Ok - I finally figured out what the problem is - Success (0) actually shows
up as an error. I had to use Informational instead. I dont know if that is
a bug, a feature, or a result of the way I am using it.
I’m still not quite sure what the Facility is, as it does not seem to be
reflected in the log entry.
Neil
----- Original Message -----
From: “Maxim S. Shatskih”
To: “Windows File Systems Devs Interest List”
Sent: Saturday, November 19, 2005 6:05 AM
Subject: Re: [ntfsd] IoWriteErrorLogEntry
Declare the particular event as Information or Error in the MC file (the
Severity= clause). This works for me.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Neil Weicher”
To: “Windows File Systems Devs Interest List”
Sent: Saturday, November 19, 2005 8:32 AM
Subject: Re: [ntfsd] IoWriteErrorLogEntry
> Unfortunately that does not appear to be it. All the fields in the
> PIO_ERROR_LOG_PACKET are zeroed, but it still shows up in the log as an
> error. Thanks for the reply tho.
>
> ----- Original Message -----
> From: “Peter Scott”
> To: “Windows File Systems Devs Interest List”
> Sent: Friday, November 18, 2005 2:17 PM
> Subject: RE: [ntfsd] IoWriteErrorLogEntry
>
>
> >
> > Set the high two bits in the message as
> >
> > 0 - success, 1 - Informational, 2 - Warning, 3 - Error.
> >
> > Pete
> >
> > Kernel Drivers
> > Windows Filesystem and Device Driver Consulting
> > www.KernelDrivers.com
> > (303)546-0300
> >
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Neil Weicher
> > Sent: Friday, November 18, 2005 11:58 AM
> > To: Windows File Systems Devs Interest List
> > Subject: [ntfsd] IoWriteErrorLogEntry
> >
> > Is there a way to get an ad-hoc error log to show up as an Information
> entry
> > in the System log? No matter what I do it always shows up as an Error.
> > Thanks.
> >
> >
> >
> > —
> > Questions? First check the IFS FAQ at
> > https://www.osronline.com/article.cfm?id=17
> >
> > You are currently subscribed to ntfsd as: xxxxx@kerneldrivers.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> >
> >
> > —
> > Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
> >
> > You are currently subscribed to ntfsd as: xxxxx@netlib.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@netlib.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Are you using NT_SUCCESS(status) or !NT_SUCCESS(status)? An error is
indicated by setting the high order bit of the 32 bit status word. The
NT_XXXX macros properly test for success, error, warning and information
and should be used instead of (STATUS_SUCCESS != status).
Gary G. Little
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Neil Weicher
Sent: Friday, December 02, 2005 8:20 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] IoWriteErrorLogEntry
Ok - I finally figured out what the problem is - Success (0) actually
shows
up as an error. I had to use Informational instead. I dont know if that
is
a bug, a feature, or a result of the way I am using it.
I’m still not quite sure what the Facility is, as it does not seem to be
reflected in the log entry.
Neil
----- Original Message -----
From: “Maxim S. Shatskih”
To: “Windows File Systems Devs Interest List”
Sent: Saturday, November 19, 2005 6:05 AM
Subject: Re: [ntfsd] IoWriteErrorLogEntry
Declare the particular event as Information or Error in the MC file
(the
Severity= clause). This works for me.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Neil Weicher”
To: “Windows File Systems Devs Interest List”
Sent: Saturday, November 19, 2005 8:32 AM
Subject: Re: [ntfsd] IoWriteErrorLogEntry
> Unfortunately that does not appear to be it. All the fields in the
> PIO_ERROR_LOG_PACKET are zeroed, but it still shows up in the log as an
> error. Thanks for the reply tho.
>
> ----- Original Message -----
> From: “Peter Scott”
> To: “Windows File Systems Devs Interest List”
> Sent: Friday, November 18, 2005 2:17 PM
> Subject: RE: [ntfsd] IoWriteErrorLogEntry
>
>
> >
> > Set the high two bits in the message as
> >
> > 0 - success, 1 - Informational, 2 - Warning, 3 - Error.
> >
> > Pete
> >
> > Kernel Drivers
> > Windows Filesystem and Device Driver Consulting
> > www.KernelDrivers.com
> > (303)546-0300
> >
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Neil Weicher
> > Sent: Friday, November 18, 2005 11:58 AM
> > To: Windows File Systems Devs Interest List
> > Subject: [ntfsd] IoWriteErrorLogEntry
> >
> > Is there a way to get an ad-hoc error log to show up as an Information
> entry
> > in the System log? No matter what I do it always shows up as an
Error.
> > Thanks.
> >
> >
> >
> > —
> > Questions? First check the IFS FAQ at
> > https://www.osronline.com/article.cfm?id=17
> >
> > You are currently subscribed to ntfsd as: xxxxx@kerneldrivers.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> >
> >
> > —
> > Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
> >
> > You are currently subscribed to ntfsd as: xxxxx@netlib.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@netlib.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@seagate.com
To unsubscribe send a blank email to xxxxx@lists.osr.com