Hi , this is mrunal from Pune Institute Of Computer Technology.
I m trying to access raw partition in windows2000 from my filter driver which lies below NTFS drivers and above disk drivers. I tried ZwCreateFile call but it is returning FILE_SUPERSEDED in IoStatus. Wht does it mean?
Help me as soon as possible I need it in my Under Graduate Project.
Regards
Mrunal Rege
Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
PLEASE DON’T CROSS POST.
If you’re gonna post to the list the first day you join (which is never a good idea), at least have the common decency to read the list FAQ before posting.
Arrrgh…
Peter
OSR
Mrunal,
if you are not done yet, here’s a working snippet.
Look at sharing flags.
HANDLE FileHandle = 0;
NTSTATUS OpenRaw() {
UNICODE_STRING FileName;
NTSTATUS ntStatus;
OBJECT_ATTRIBUTES ObjectAttributes;
WCHAR PathPrefix = L"\Device\Harddisk0\Partition1";
//ULONG FileNameLength;
IO_STATUS_BLOCK IoStatus;
RtlInitUnicodeString(&FileName, PathPrefix);
InitializeObjectAttributes(&ObjectAttributes, &FileName,
OBJ_CASE_INSENSITIVE, NULL, NULL);
ntStatus = ZwCreateFile(&FileHandle,
FILE_READ_DATA | FILE_WRITE_DATA,
&ObjectAttributes,
&IoStatus,
NULL,
FILE_ATTRIBUTE_NORMAL,
//0, // ntStatus = 0xC0000043L = STATUS_SHARING_VIOLATION
FILE_SHARE_READ | FILE_SHARE_WRITE, // ntStatus = 0, FileHandle = 0x400 or 0x208 etc.
FILE_OPEN_IF,
FILE_NON_DIRECTORY_FILE,
NULL, 0);
return ntStatus;
}
----- Original Message -----
From: yuvraj rege
To: Windows File Systems Devs Interest List
Sent: Friday, March 03, 2006 1:13 PM
Subject: [ntfsd] How to access the raw partition from filter driver
Hi , this is mrunal from Pune Institute Of Computer Technology.
I m trying to access raw partition in windows2000 from my filter driver which lies below NTFS drivers and above disk drivers. I tried ZwCreateFile call but it is returning FILE_SUPERSEDED in IoStatus. Wht does it mean?
Help me as soon as possible I need it in my Under Graduate Project.
Regards
Mrunal Rege
Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time. — Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17 You are currently subscribed to ntfsd as: xxxxx@bellsouth.net To unsubscribe send a blank email to xxxxx@lists.osr.com
Hello Sir,
Thank you for your kind help!
I have tried path name as “\Device\Harddisk0\Partition1”
but it is working only for formatted partitions. When I tried this on formatted
partition I got STATUS_SUCCESS but as soon as I made the patition unformatted using ‘Partition Magic’ software it returned me
STATUS_INVALID_PARAMETER . Why this is? If my driver is below file system
drivers where “DiskPerf” exists then it should not behave with the formatted and unformatted partition distinctly , I think.
Is ZwCreateFile suitable for only formatted partitions? Is there any other way to access unformatted partition?
Best Regards
Mrunal
“xxxxx@Home” wrote: Mrunal,
if you are not done yet, here’s a working snippet.
Look at sharing flags.
HANDLE FileHandle = 0;
NTSTATUS OpenRaw() {
UNICODE_STRING FileName;
NTSTATUS ntStatus;
OBJECT_ATTRIBUTES ObjectAttributes;
WCHAR PathPrefix = L"\Device\Harddisk0\Partition1";
//ULONG FileNameLength;
IO_STATUS_BLOCK IoStatus;
RtlInitUnicodeString(&FileName, PathPrefix);
InitializeObjectAttributes(&ObjectAttributes, &FileName,
OBJ_CASE_INSENSITIVE, NULL, NULL);
ntStatus = ZwCreateFile(&FileHandle,
FILE_READ_DATA | FILE_WRITE_DATA,
&ObjectAttributes,
&IoStatus,
NULL,
FILE_ATTRIBUTE_NORMAL,
//0, // ntStatus = 0xC0000043L = STATUS_SHARING_VIOLATION
FILE_SHARE_READ | FILE_SHARE_WRITE, // ntStatus = 0, FileHandle = 0x400 or 0x208 etc.
FILE_OPEN_IF,
FILE_NON_DIRECTORY_FILE,
NULL, 0);
return ntStatus;
}
----- Original Message -----
From: yuvraj rege
To: Windows File Systems Devs Interest List
Sent: Friday, March 03, 2006 1:13 PM
Subject: [ntfsd] How to access the raw partition from filter driver
Hi , this is mrunal from Pune Institute Of Computer Technology.
I m trying to access raw partition in windows2000 from my filter driver which lies below NTFS drivers and above disk drivers. I tried ZwCreateFile call but it is returning FILE_SUPERSEDED in IoStatus. Wht does it mean?
Help me as soon as possible I need it in my Under Graduate Project.
Regards
Mrunal Rege
---------------------------------
Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time. — Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17 You are currently subscribed to ntfsd as: xxxxx@bellsouth.net 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: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
---------------------------------
Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
Touch the partition, trigger mount processing. Thus, my guess is that
it is RAW that returns this error. RAW only supports non-cached I/O to
the volume.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
Looking forward to seeing you at the next OSR File Systems class in
Boston, MA April 18-21, 2006 (note new date - MS scheduled plugfest the
same week again.)
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of yuvraj rege
Sent: Monday, March 06, 2006 12:37 PM
To: ntfsd redirect
Subject: Re: [ntfsd] How to access the raw partition from filter driver
Hello Sir,
Thank you for your kind help!
I have tried path name as "\Device\Harddisk0\Partition1
<file:> “
but it is working only for formatted partitions. When I tried this on
formatted
partition I got STATUS_SUCCESS but as soon as I made the patition
unformatted using ‘Partition Magic’ software it returned me
STATUS_INVALID_PARAMETER . Why this is? If my driver is below file
system
drivers where “DiskPerf” exists then it should not behave with the
formatted and unformatted partition distinctly , I think.
Is ZwCreateFile suitable for only formatted partitions? Is there
any other way to access unformatted partition?
Best Regards
Mrunal
“xxxxx@Home” wrote:
Mrunal,
if you are not done yet, here’s a working snippet.
Look at sharing flags.
HANDLE FileHandle = 0;
NTSTATUS OpenRaw() {
UNICODE_STRING FileName;
NTSTATUS ntStatus;
OBJECT_ATTRIBUTES ObjectAttributes;
WCHAR PathPrefix = L”\Device\Harddisk0\Partition1
<file:> ";
//ULONG FileNameLength;
IO_STATUS_BLOCK IoStatus;
RtlInitUnicodeString(&FileName, PathPrefix);
InitializeObjectAttributes(&ObjectAttributes, &FileName,
OBJ_CASE_INSENSITIVE, NULL, NULL);
ntStatus = ZwCreateFile(&FileHandle,
FILE_READ_DATA | FILE_WRITE_DATA,
&ObjectAttributes,
&IoStatus,
NULL,
FILE_ATTRIBUTE_NORMAL,
//0, // ntStatus = 0xC0000043L =
STATUS_SHARING_VIOLATION
FILE_SHARE_READ | FILE_SHARE_WRITE, // ntStatus = 0,
FileHandle = 0x400 or 0x208 etc.
FILE_OPEN_IF,
FILE_NON_DIRECTORY_FILE,
NULL, 0);
return ntStatus;
}
----- Original Message -----
From: yuvraj rege mailto:xxxxx
To: Windows File Systems Devs Interest List
mailto:xxxxx
Sent: Friday, March 03, 2006 1:13 PM
Subject: [ntfsd] How to access the raw partition from filter
driver
Hi , this is mrunal from Pune Institute Of Computer Technology.
I m trying to access raw partition in windows2000 from my filter
driver which lies below NTFS drivers and above disk drivers. I tried
ZwCreateFile call but it is returning FILE_SUPERSEDED in IoStatus. Wht
does it mean?
Help me as soon as possible I need it in my Under Graduate
Project.
Regards
Mrunal Rege
Jiyo cricket on Yahoo! India cricket
http:ricket/>
Yahoo! Messenger Mobile
http:oo.com/new/messenger/> Stay in touch with your buddies all the time.
— Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17 You are currently subscribed
to ntfsd as: xxxxx@bellsouth.net 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: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Jiyo cricket on Yahoo! India cricket
http:ricket/>
Yahoo! Messenger Mobile
http:oo.com/new/messenger/> Stay in touch with your buddies all the time.
— Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17 You are currently subscribed
to ntfsd as: xxxxx@osr.com To unsubscribe send a blank email to
xxxxx@lists.osr.com</http:></http:></http:></http:></mailto:xxxxx></mailto:xxxxx></file:></file:>
Is this true that ZwCreateFile or ZwReadFile/ZwWriteFile works only for the recognised/formatted partitions?
Can’t I use these functions with unformatted partitions?
Please tell me if there is any other way for accessing unformatted partitions?
I want to use unformatted partition as a nonvolatile buffer for I/O operations in my filter driver. Actually I want to avoid the overhead of seek and latencies
causes due to fragmentation of partitions.Thats why I want to use unformatted contiguous space in the harddisk.
Regards
Mrunal Rege
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of yuvraj rege
Sent: Monday, March 06, 2006 12:37 PM
To: ntfsd redirect
Subject: Re: [ntfsd] How to access the raw partition from filter driver
Hello Sir,
Thank you for your kind help!
I have tried path name as “\Device\Harddisk0\Partition1”
but it is working only for formatted partitions. When I tried this on formatted
partition I got STATUS_SUCCESS but as soon as I made the patition unformatted using ‘Partition Magic’ software it returned me
STATUS_INVALID_PARAMETER . Why this is? If my driver is below file system
drivers where “DiskPerf” exists then it should not behave with the formatted and unformatted partition distinctly , I think.
Is ZwCreateFile suitable for only formatted partitions? Is there any other way to access unformatted partition?
Best Regards
Mrunal
“xxxxx@Home” wrote:
Mrunal,
if you are not done yet, here’s a working snippet.
Look at sharing flags.
HANDLE FileHandle = 0;
NTSTATUS OpenRaw() {
UNICODE_STRING FileName;
NTSTATUS ntStatus;
OBJECT_ATTRIBUTES ObjectAttributes;
WCHAR PathPrefix = L"\Device\Harddisk0\Partition1";
//ULONG FileNameLength;
IO_STATUS_BLOCK IoStatus;
RtlInitUnicodeString(&FileName, PathPrefix);
InitializeObjectAttributes(&ObjectAttributes, &FileName,
OBJ_CASE_INSENSITIVE, NULL, NULL);
ntStatus = ZwCreateFile(&FileHandle,
FILE_READ_DATA | FILE_WRITE_DATA,
&ObjectAttributes,
&IoStatus,
NULL,
FILE_ATTRIBUTE_NORMAL,
//0, // ntStatus = 0xC0000043L = STATUS_SHARING_VIOLATION
FILE_SHARE_READ | FILE_SHARE_WRITE, // ntStatus = 0, FileHandle = 0x400 or 0x208 etc.
FILE_OPEN_IF,
FILE_NON_DIRECTORY_FILE,
NULL, 0);
return ntStatus;
}
----- Original Message -----
From: yuvraj rege
To: Windows File Systems Devs Interest List
Sent: Friday, March 03, 2006 1:13 PM
Subject: [ntfsd] How to access the raw partition from filter driver
Hi , this is mrunal from Pune Institute Of Computer Technology.
I m trying to access raw partition in windows2000 from my filter driver which lies below NTFS drivers and above disk drivers. I tried ZwCreateFile call but it is returning FILE_SUPERSEDED in IoStatus. Wht does it mean?
Help me as soon as possible I need it in my Under Graduate Project.
Regards
Mrunal Rege
---------------------------------
Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time. — Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17 You are currently subscribed to ntfsd as: xxxxx@bellsouth.net 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: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
---------------------------------
Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time. — Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17 You are currently subscribed to ntfsd as: xxxxx@osr.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: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
---------------------------------
Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
yuvraj,
Peter, OSR’s founder, has already asked you to stop cross posting. In
case you forgot what he told you, here it is again:
m.
yuvraj rege wrote:
Is this true that ZwCreateFile or ZwReadFile/ZwWriteFile works only
for the recognised/formatted partitions?
Can’t I use these functions with unformatted partitions?
Please tell me if there is any other way for accessing unformatted
partitions?
I want to use unformatted partition as a nonvolatile buffer for I/O
operations in my filter driver. Actually I want to avoid the overhead
of seek and latencies
causes due to fragmentation of partitions.Thats why I want to use
unformatted contiguous space in the harddisk.
Regards
Mrunal Rege
*From:* xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] *On Behalf Of *yuvraj rege
*Sent:* Monday, March 06, 2006 12:37 PM
*To:* ntfsd redirect
*Subject:* Re: [ntfsd] How to access the raw partition from filter
driver
Hello Sir,
Thank you for your kind help!
I have tried path name as “\Device\Harddisk0\Partition1
<file:></file:>”
but it is working only for formatted partitions. When I tried this
on formatted
partition I got STATUS_SUCCESS but as soon as I made the
patition unformatted using ‘Partition Magic’ software it returned me
STATUS_INVALID_PARAMETER . Why this is? If my driver is below file
system
drivers where “DiskPerf” exists then it should not behave with the
formatted and unformatted partition distinctly , I think.
Is ZwCreateFile suitable for only formatted partitions? Is
there any other way to access unformatted partition?
Best Regards
Mrunal
*/“xxxxx@Home” /* wrote:
> Mrunal,
>
> if you are not done yet, here’s a working snippet.
> Look at sharing flags.
>
> HANDLE FileHandle = 0;
> NTSTATUS OpenRaw() {
> UNICODE_STRING FileName;
> NTSTATUS ntStatus;
> OBJECT_ATTRIBUTES ObjectAttributes;
> WCHAR PathPrefix = L"\Device\Harddisk0\Partition1
> <file:></file:>";
> //ULONG FileNameLength;
> IO_STATUS_BLOCK IoStatus;
> RtlInitUnicodeString(&FileName, PathPrefix);
> InitializeObjectAttributes(&ObjectAttributes, &FileName,
> OBJ_CASE_INSENSITIVE, NULL, NULL);
> ntStatus = ZwCreateFile(&FileHandle,
> FILE_READ_DATA | FILE_WRITE_DATA,
> &ObjectAttributes,
> &IoStatus,
> NULL,
> FILE_ATTRIBUTE_NORMAL,
> //0, // ntStatus = 0xC0000043L =
> STATUS_SHARING_VIOLATION
> FILE_SHARE_READ | FILE_SHARE_WRITE, // ntStatus = 0,
> FileHandle = 0x400 or 0x208 etc.
> FILE_OPEN_IF,
> FILE_NON_DIRECTORY_FILE,
> NULL, 0);
> return ntStatus;
> }
>
> ----- Original Message -----
> From: yuvraj rege mailto:xxxxx
> To: Windows File Systems Devs Interest List
> mailto:xxxxx
> Sent: Friday, March 03, 2006 1:13 PM
> Subject: [ntfsd] How to access the raw partition from filter
> driver
>
> Hi , this is mrunal from Pune Institute Of Computer Technology.
> I m trying to access raw partition in windows2000 from my
> filter driver which lies below NTFS drivers and above disk
> drivers. I tried ZwCreateFile call but it is returning
> FILE_SUPERSEDED in IoStatus. Wht does it mean?
> Help me as soon as possible I need it in my Under Graduate
> Project.
>
>
> Regards
> Mrunal Rege
> ------------------------------------------------------------------------
> Jiyo cricket on Yahoo! India cricket
> http:</http:>
> Yahoo! Messenger Mobile
> http:</http:>
> Stay in touch with your buddies all the time. — Questions?
> First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17 You are currently
> subscribed to ntfsd as: xxxxx@bellsouth.net 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: unknown lmsubst tag
> argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
> ------------------------------------------------------------------------
> Jiyo cricket on Yahoo! India cricket
> http:</http:>
> Yahoo! Messenger Mobile
> http:</http:>
> Stay in touch with your buddies all the time. — Questions? First
> check the IFS FAQ at https://www.osronline.com/article.cfm?id=17
> You are currently subscribed to ntfsd as: xxxxx@osr.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: unknown lmsubst tag
> argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> ------------------------------------------------------------------------
> Jiyo cricket on Yahoo! India cricket
> http:</http:>
> Yahoo! Messenger Mobile
> http:</http:>
> Stay in touch with your buddies all the time. — Questions? First
> check the IFS FAQ at https://www.osronline.com/article.cfm?id=17 You
> are currently subscribed to ntfsd as: xxxxx@comcast.net To
> unsubscribe send a blank email to xxxxx@lists.osr.com</mailto:xxxxx></mailto:xxxxx>
You can only access the unformatted partition in raw blockwise mode without
caching (with sector-aligned IO).
Surely you cannot create named disk files on it.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “yuvraj rege”
To: “Windows File Systems Devs Interest List”
Sent: Tuesday, March 07, 2006 11:28 AM
Subject: RE: [ntfsd] How to access the raw partition from filter driver
> Is this true that ZwCreateFile or ZwReadFile/ZwWriteFile works only for the
recognised/formatted partitions?
> Can’t I use these functions with unformatted partitions?
> Please tell me if there is any other way for accessing unformatted
partitions?
> I want to use unformatted partition as a nonvolatile buffer for I/O
operations in my filter driver. Actually I want to avoid the overhead of seek
and latencies
> causes due to fragmentation of partitions.Thats why I want to use
unformatted contiguous space in the harddisk.
>
> Regards
>
> Mrunal Rege
>
>
>
>
>
>
> ---------------------------------
>
> From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]
On Behalf Of yuvraj rege
> Sent: Monday, March 06, 2006 12:37 PM
> To: ntfsd redirect
> Subject: Re: [ntfsd] How to access the raw partition from filter driver
>
>
> Hello Sir,
> Thank you for your kind help!
> I have tried path name as “\Device\Harddisk0\Partition1”
> but it is working only for formatted partitions. When I tried this on
formatted
> partition I got STATUS_SUCCESS but as soon as I made the patition
unformatted using ‘Partition Magic’ software it returned me
> STATUS_INVALID_PARAMETER . Why this is? If my driver is below file system
> drivers where “DiskPerf” exists then it should not behave with the formatted
and unformatted partition distinctly , I think.
> Is ZwCreateFile suitable for only formatted partitions? Is there any
other way to access unformatted partition?
>
> Best Regards
>
> Mrunal
>
>
>
>
>
>
>
> “xxxxx@Home” wrote:
> Mrunal,
>
>
>
> if you are not done yet, here’s a working snippet.
>
> Look at sharing flags.
>
>
>
> HANDLE FileHandle = 0;
> NTSTATUS OpenRaw() {
> UNICODE_STRING FileName;
> NTSTATUS ntStatus;
> OBJECT_ATTRIBUTES ObjectAttributes;
> WCHAR PathPrefix = L"\Device\Harddisk0\Partition1";
> //ULONG FileNameLength;
> IO_STATUS_BLOCK IoStatus;
> RtlInitUnicodeString(&FileName, PathPrefix);
> InitializeObjectAttributes(&ObjectAttributes, &FileName,
> OBJ_CASE_INSENSITIVE, NULL, NULL);
> ntStatus = ZwCreateFile(&FileHandle,
> FILE_READ_DATA | FILE_WRITE_DATA,
> &ObjectAttributes,
> &IoStatus,
> NULL,
> FILE_ATTRIBUTE_NORMAL,
> //0, // ntStatus = 0xC0000043L =
STATUS_SHARING_VIOLATION
> FILE_SHARE_READ | FILE_SHARE_WRITE, // ntStatus = 0, FileHandle =
0x400 or 0x208 etc.
> FILE_OPEN_IF,
> FILE_NON_DIRECTORY_FILE,
> NULL, 0);
> return ntStatus;
> }
>
> ----- Original Message -----
>
> From: yuvraj rege
>
> To: Windows File Systems Devs Interest List
>
> Sent: Friday, March 03, 2006 1:13 PM
>
> Subject: [ntfsd] How to access the raw partition from filter driver
>
>
>
> Hi , this is mrunal from Pune Institute Of Computer Technology.
>
> I m trying to access raw partition in windows2000 from my filter driver
which lies below NTFS drivers and above disk drivers. I tried ZwCreateFile call
but it is returning FILE_SUPERSEDED in IoStatus. Wht does it mean?
>
> Help me as soon as possible I need it in my Under Graduate Project.
>
>
>
>
>
> Regards
>
> Mrunal Rege
>
>
> ---------------------------------
>
> Jiyo cricket on Yahoo! India cricket
> Yahoo! Messenger Mobile Stay in touch with your buddies all the time. —
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17 You are currently subscribed to
ntfsd as: xxxxx@bellsouth.net 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: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> ---------------------------------
>
> Jiyo cricket on Yahoo! India cricket
> Yahoo! Messenger Mobile Stay in touch with your buddies all the time. —
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17 You are currently subscribed to
ntfsd as: xxxxx@osr.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: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> ---------------------------------
> Jiyo cricket on Yahoo! India cricket
> Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
> —
> 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
I am sorry if I have done cross posting. I am thankfull to you for alerting me.
But I don’t understand what is crossposting . If you could tell me I will not repeat the same mistake.
Thank you!
MM wrote:
yuvraj,
Peter, OSR’s founder, has already asked you to stop cross posting. In
case you forgot what he told you, here it is again:
PLEASE DON’T CROSS POST.
If you’re gonna post to the list the first day you join (which is never a good idea), at least have the common decency to read the list FAQ before posting.
Arrrgh…
Peter
OSR
m.
yuvraj rege wrote:
> Is this true that ZwCreateFile or ZwReadFile/ZwWriteFile works only
> for the recognised/formatted partitions?
> Can’t I use these functions with unformatted partitions?
> Please tell me if there is any other way for accessing unformatted
> partitions?
> I want to use unformatted partition as a nonvolatile buffer for I/O
> operations in my filter driver. Actually I want to avoid the overhead
> of seek and latencies
> causes due to fragmentation of partitions.Thats why I want to use
> unformatted contiguous space in the harddisk.
>
> Regards
>
> Mrunal Rege
>
>
>
>
>
>
> ------------------------------------------------------------------------
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] *On Behalf Of *yuvraj rege
> Sent: Monday, March 06, 2006 12:37 PM
> To: ntfsd redirect
> Subject: Re: [ntfsd] How to access the raw partition from filter
> driver
>
> Hello Sir,
> Thank you for your kind help!
> I have tried path name as "\Device\Harddisk0\Partition1
> “
> but it is working only for formatted partitions. When I tried this
> on formatted
> partition I got STATUS_SUCCESS but as soon as I made the
> patition unformatted using ‘Partition Magic’ software it returned me
> STATUS_INVALID_PARAMETER . Why this is? If my driver is below file
> system
> drivers where “DiskPerf” exists then it should not behave with the
> formatted and unformatted partition distinctly , I think.
> Is ZwCreateFile suitable for only formatted partitions? Is
> there any other way to access unformatted partition?
>
> Best Regards
>
> Mrunal
>
>
>
>
>
>
>
> /“xxxxx@Home” / wrote:
> Mrunal,
>
> if you are not done yet, here’s a working snippet.
> Look at sharing flags.
>
> HANDLE FileHandle = 0;
> NTSTATUS OpenRaw() {
> UNICODE_STRING FileName;
> NTSTATUS ntStatus;
> OBJECT_ATTRIBUTES ObjectAttributes;
> WCHAR PathPrefix = L”\Device\Harddisk0\Partition1
> ";
> //ULONG FileNameLength;
> IO_STATUS_BLOCK IoStatus;
> RtlInitUnicodeString(&FileName, PathPrefix);
> InitializeObjectAttributes(&ObjectAttributes, &FileName,
> OBJ_CASE_INSENSITIVE, NULL, NULL);
> ntStatus = ZwCreateFile(&FileHandle,
> FILE_READ_DATA | FILE_WRITE_DATA,
> &ObjectAttributes,
> &IoStatus,
> NULL,
> FILE_ATTRIBUTE_NORMAL,
> //0, // ntStatus = 0xC0000043L =
> STATUS_SHARING_VIOLATION
> FILE_SHARE_READ | FILE_SHARE_WRITE, // ntStatus = 0,
> FileHandle = 0x400 or 0x208 etc.
> FILE_OPEN_IF,
> FILE_NON_DIRECTORY_FILE,
> NULL, 0);
> return ntStatus;
> }
>
> ----- Original Message -----
> From: yuvraj rege
> To: Windows File Systems Devs Interest List
>
> Sent: Friday, March 03, 2006 1:13 PM
> Subject: [ntfsd] How to access the raw partition from filter
> driver
>
> Hi , this is mrunal from Pune Institute Of Computer Technology.
> I m trying to access raw partition in windows2000 from my
> filter driver which lies below NTFS drivers and above disk
> drivers. I tried ZwCreateFile call but it is returning
> FILE_SUPERSEDED in IoStatus. Wht does it mean?
> Help me as soon as possible I need it in my Under Graduate
> Project.
>
>
> Regards
> Mrunal Rege
> ------------------------------------------------------------------------
> Jiyo cricket on Yahoo! India cricket
>
> Yahoo! Messenger Mobile
>
> Stay in touch with your buddies all the time. — Questions?
> First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17 You are currently
> subscribed to ntfsd as: xxxxx@bellsouth.net 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: unknown lmsubst tag
> argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
> ------------------------------------------------------------------------
> Jiyo cricket on Yahoo! India cricket
>
> Yahoo! Messenger Mobile
>
> Stay in touch with your buddies all the time. — Questions? First
> check the IFS FAQ at https://www.osronline.com/article.cfm?id=17
> You are currently subscribed to ntfsd as: xxxxx@osr.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: unknown lmsubst tag
> argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> ------------------------------------------------------------------------
> Jiyo cricket on Yahoo! India cricket
>
> Yahoo! Messenger Mobile
>
> Stay in touch with your buddies all the time. — Questions? First
> check the IFS FAQ at https://www.osronline.com/article.cfm?id=17 You
> are currently subscribed to ntfsd as: xxxxx@comcast.net 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@yahoo.co.in
To unsubscribe send a blank email to xxxxx@lists.osr.com
---------------------------------
Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
Lol have you even heard of google http://en.wikipedia.org/wiki/Crossposting
“yuvraj rege” wrote in message news:xxxxx@ntfsd…
I am sorry if I have done cross posting. I am thankfull to you for alerting
me.
But I don’t understand what is crossposting . If you could tell me I will
not repeat the same mistake.
Thank you!
MM wrote:
yuvraj,
Peter, OSR’s founder, has already asked you to stop cross posting. In
case you forgot what he told you, here it is again:
PLEASE DON’T CROSS POST.
If you’re gonna post to the list the first day you join (which is never a
good idea), at least have the common decency to read the list FAQ before
posting.
Arrrgh…
Peter
OSR
m.
yuvraj rege wrote:
> Is this true that ZwCreateFile or ZwReadFile/ZwWriteFile works only
> for the recognised/formatted partitions?
> Can’t I use these functions with unformatted partitions?
> Please tell me if there is any other way for accessing unformatted
> partitions?
> I want to use unformatted partition as a nonvolatile buffer for I/O
> operations in my filter driver. Actually I want to avoid the overhead
> of seek and latencies
> causes due to fragmentation of partitions.Thats why I want to use
> unformatted contiguous space in the harddisk.
>
> Regards
>
> Mrunal Rege
>
>
>
>
>
>
> ------------------------------------------------------------------------
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] *On Behalf Of *yuvraj rege
> Sent: Monday, March 06, 2006 12:37 PM
> To: ntfsd redirect
> Subject: Re: [ntfsd] How to access the raw partition from filter
> driver
>
> Hello Sir,
> Thank you for your kind help!
> I have tried path name as "\Device\Harddisk0\Partition1
> “
> but it is working only for formatted partitions. When I tried this
> on formatted
> partition I got STATUS_SUCCESS but as soon as I made the
> patition unformatted using ‘Partition Magic’ software it returned me
> STATUS_INVALID_PARAMETER . Why this is? If my driver is below file
> system
> drivers where “DiskPerf” exists then it should not behave with the
> formatted and unformatted partition distinctly , I think.
> Is ZwCreateFile suitable for only formatted partitions? Is
> there any other way to access unformatted partition?
>
> Best Regards
>
> Mrunal
>
>
>
>
>
>
>
> /“xxxxx@Home” / wrote:
> Mrunal,
>
> if you are not done yet, here’s a working snippet.
> Look at sharing flags.
>
> HANDLE FileHandle = 0;
> NTSTATUS OpenRaw() {
> UNICODE_STRING FileName;
> NTSTATUS ntStatus;
> OBJECT_ATTRIBUTES ObjectAttributes;
> WCHAR PathPrefix = L”\Device\Harddisk0\Partition1
> ";
> //ULONG FileNameLength;
> IO_STATUS_BLOCK IoStatus;
> RtlInitUnicodeString(&FileName, PathPrefix);
> InitializeObjectAttributes(&ObjectAttributes, &FileName,
> OBJ_CASE_INSENSITIVE, NULL, NULL);
> ntStatus = ZwCreateFile(&FileHandle,
> FILE_READ_DATA | FILE_WRITE_DATA,
> &ObjectAttributes,
> &IoStatus,
> NULL,
> FILE_ATTRIBUTE_NORMAL,
> //0, // ntStatus = 0xC0000043L =
> STATUS_SHARING_VIOLATION
> FILE_SHARE_READ | FILE_SHARE_WRITE, // ntStatus = 0,
> FileHandle = 0x400 or 0x208 etc.
> FILE_OPEN_IF,
> FILE_NON_DIRECTORY_FILE,
> NULL, 0);
> return ntStatus;
> }
>
> ----- Original Message -----
> From: yuvraj rege
> To: Windows File Systems Devs Interest List
>
> Sent: Friday, March 03, 2006 1:13 PM
> Subject: [ntfsd] How to access the raw partition from filter
> driver
>
> Hi , this is mrunal from Pune Institute Of Computer Technology.
> I m trying to access raw partition in windows2000 from my
> filter driver which lies below NTFS drivers and above disk
> drivers. I tried ZwCreateFile call but it is returning
> FILE_SUPERSEDED in IoStatus. Wht does it mean?
> Help me as soon as possible I need it in my Under Graduate
> Project.
>
>
> Regards
> Mrunal Rege
> ------------------------------------------------------------------------
> Jiyo cricket on Yahoo! India cricket
>
> Yahoo! Messenger Mobile
>
> Stay in touch with your buddies all the time. — Questions?
> First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17 You are currently
> subscribed to ntfsd as: xxxxx@bellsouth.net 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: unknown lmsubst tag
> argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
> ------------------------------------------------------------------------
> Jiyo cricket on Yahoo! India cricket
>
> Yahoo! Messenger Mobile
>
> Stay in touch with your buddies all the time. — Questions? First
> check the IFS FAQ at https://www.osronline.com/article.cfm?id=17
> You are currently subscribed to ntfsd as: xxxxx@osr.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: unknown lmsubst tag
> argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> ------------------------------------------------------------------------
> Jiyo cricket on Yahoo! India cricket
>
> Yahoo! Messenger Mobile
>
> Stay in touch with your buddies all the time. — Questions? First
> check the IFS FAQ at https://www.osronline.com/article.cfm?id=17 You
> are currently subscribed to ntfsd as: xxxxx@comcast.net 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@yahoo.co.in
To unsubscribe send a blank email to xxxxx@lists.osr.com
Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.