NtCreatePagingFile documentation

Hello,

An engineer from my team pointed that IFS Test complains about our
CreatePagingFileTest implementation returning status STATUS_ACCESS_DENIED.
More exactly:

418.2CC : +TEST+SEV2 : Test :CreatePagingFileTest
Group :OpenCreateGeneral
File
:e:\nttest\base\testsrc\filesystem\ifstests\code\opcreatg\crpagef.c
Line :102
Status :C000001E (IFSTEST_TEST_NTAPI_FAILURE_CODE)
LastNtStatus :C0000022 STATUS_ACCESS_DENIED
ExpectedNtStatus :00000000 STATUS_SUCCESS
Description :{Msg# OpCreatG!crpagef!11} Failure returned by
NtCreatePagingFile. Name \crpagef.dat Min 1048576
Max 2097152 Be sure the SeCreatePagefilePrivilege
privilege is applied on the current user. This is
called “Create paging file” in the user manager rights
dialog box.
Lookup Query :
http://www.microsoft.com/ContentRedirect.asp?prd=IFSKit&id=OpCreatG!crpagef!
11&pver=2195

Actually, our fsd is working on removable media so we have to fail the
request. But what will be the appropriate status to return? I looked for
NtCreatePagingFile documentation on MSDN, IFS Kit help file, osronline ntfsd
archive, google… But could find any documentation of valid status for
NtCreatePagingFile failure.

I found a book describing statuses STATUS_PRIVILEGE_NOT_HELD,
STATUS_OBJECT_NAME_INVALID, STATUS_TOO_MANY_PAGING_FILES and
STATUS_FLOPPY_VOLUME as valid failures. However none of those seems to
appropriately define the failure our fsd would like to report (the best
approximation we see is STATUS_FLOPPY_VOLUME - not much satisfying).

Can someone points me to the documentation of NtCreatePagingFile?

Best regards,

David Burg


David Burg
Software Development,
InCD and Low Level Drivers Project Leader

Ahead Software AG phone: +49 (0)7248 911 862 (direct line)
Im Stoeckmaedle 18 fax: +49 (0)7248 911 888
76307 Karlsbad email: xxxxx@nero.com
Germany http://www.nero.com

If your device is reporting that it is removable media, then the test is in
error. If you don’t tell the OS that the media is removable, then you can’t
fail the test, I guess.

“David Burg” wrote in message news:xxxxx@ntfsd…
Hello,

An engineer from my team pointed that IFS Test complains about our
CreatePagingFileTest implementation returning status STATUS_ACCESS_DENIED.
More exactly:

418.2CC : +TEST+SEV2 : Test :CreatePagingFileTest
Group :OpenCreateGeneral
File
:e:\nttest\base\testsrc\filesystem\ifstests\code\opcreatg\crpagef.c
Line :102
Status :C000001E (IFSTEST_TEST_NTAPI_FAILURE_CODE)
LastNtStatus :C0000022 STATUS_ACCESS_DENIED
ExpectedNtStatus :00000000 STATUS_SUCCESS
Description :{Msg# OpCreatG!crpagef!11} Failure returned by
NtCreatePagingFile. Name \crpagef.dat Min 1048576
Max 2097152 Be sure the SeCreatePagefilePrivilege
privilege is applied on the current user. This is
called “Create paging file” in the user manager rights
dialog box.
Lookup Query :
http://www.microsoft.com/ContentRedirect.asp?prd=IFSKit&id=OpCreatG!crpagef!
11&pver=2195

Actually, our fsd is working on removable media so we have to fail the
request. But what will be the appropriate status to return? I looked for
NtCreatePagingFile documentation on MSDN, IFS Kit help file, osronline ntfsd
archive, google… But could find any documentation of valid status for
NtCreatePagingFile failure.

I found a book describing statuses STATUS_PRIVILEGE_NOT_HELD,
STATUS_OBJECT_NAME_INVALID, STATUS_TOO_MANY_PAGING_FILES and
STATUS_FLOPPY_VOLUME as valid failures. However none of those seems to
appropriately define the failure our fsd would like to report (the best
approximation we see is STATUS_FLOPPY_VOLUME - not much satisfying).

Can someone points me to the documentation of NtCreatePagingFile?

Best regards,

David Burg

----------------------------------------------------------------
David Burg
Software Development,
InCD and Low Level Drivers Project Leader

Ahead Software AG phone: +49 (0)7248 911 862 (direct line)
Im Stoeckmaedle 18 fax: +49 (0)7248 911 888
76307 Karlsbad email: xxxxx@nero.com
Germany http://www.nero.com
----------------------------------------------------------------

The problem is that ACCESS_DENIED indicates a security related failure.
We generally return STATUS_NOT_IMPLEMENTED when asked to open a paging
file.

Interestingly enough, FAT does return ACCESS_DENIED under some
circumstances, which suggests that the IFS Kit test is probably being
overly restrictive in this case.

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of David Burg
Sent: Tuesday, September 07, 2004 10:42 AM
To: ntfsd redirect
Subject: [ntfsd] NtCreatePagingFile documentation

Hello,

An engineer from my team pointed that IFS Test complains about our
CreatePagingFileTest implementation returning status
STATUS_ACCESS_DENIED.
More exactly:

418.2CC : +TEST+SEV2 : Test :CreatePagingFileTest
Group :OpenCreateGeneral
File
:e:\nttest\base\testsrc\filesystem\ifstests\code\opcreatg\crpagef.c
Line :102
Status :C000001E (IFSTEST_TEST_NTAPI_FAILURE_CODE)
LastNtStatus :C0000022 STATUS_ACCESS_DENIED
ExpectedNtStatus :00000000 STATUS_SUCCESS
Description :{Msg# OpCreatG!crpagef!11} Failure returned by
NtCreatePagingFile. Name \crpagef.dat Min 1048576
Max 2097152 Be sure the SeCreatePagefilePrivilege
privilege is applied on the current user. This is
called “Create paging file” in the user manager rights
dialog box.
Lookup Query :
http://www.microsoft.com/ContentRedirect.asp?prd=IFSKit&id=OpCreatG!crpa
gef!
11&pver=2195

Actually, our fsd is working on removable media so we have to fail the
request. But what will be the appropriate status to return? I looked for
NtCreatePagingFile documentation on MSDN, IFS Kit help file, osronline
ntfsd
archive, google… But could find any documentation of valid status for
NtCreatePagingFile failure.

I found a book describing statuses STATUS_PRIVILEGE_NOT_HELD,
STATUS_OBJECT_NAME_INVALID, STATUS_TOO_MANY_PAGING_FILES and
STATUS_FLOPPY_VOLUME as valid failures. However none of those seems to
appropriately define the failure our fsd would like to report (the best
approximation we see is STATUS_FLOPPY_VOLUME - not much satisfying).

Can someone points me to the documentation of NtCreatePagingFile?

Best regards,

David Burg


David Burg
Software Development,
InCD and Low Level Drivers Project Leader

Ahead Software AG phone: +49 (0)7248 911 862 (direct line)
Im Stoeckmaedle 18 fax: +49 (0)7248 911 888
76307 Karlsbad email: xxxxx@nero.com
Germany http://www.nero.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

Hello,

The devices where our fsd mounts are cd/dvd-rom class devices. I assume the
OS is aware that these devices are removable. Or did you mean that the fsd
has to return precise particular value to a given inquiry about the volume?
Does IFS Test issue this inquiry before running the page file creation test?

Best regards,

David Burg

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of David J. Craig
Sent: Tuesday, September 07, 2004 7:12 PM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] NtCreatePagingFile documentation

If your device is reporting that it is removable media, then the test is in
error. If you don’t tell the OS that the media is removable, then you can’t

fail the test, I guess.

“David Burg” wrote in message news:xxxxx@ntfsd…
Hello,

An engineer from my team pointed that IFS Test complains about our
CreatePagingFileTest implementation returning status STATUS_ACCESS_DENIED.
More exactly:

418.2CC : +TEST+SEV2 : Test :CreatePagingFileTest
Group :OpenCreateGeneral
File
:e:\nttest\base\testsrc\filesystem\ifstests\code\opcreatg\crpagef.c
Line :102
Status :C000001E (IFSTEST_TEST_NTAPI_FAILURE_CODE)
LastNtStatus :C0000022 STATUS_ACCESS_DENIED
ExpectedNtStatus :00000000 STATUS_SUCCESS
Description :{Msg# OpCreatG!crpagef!11} Failure returned by
NtCreatePagingFile. Name \crpagef.dat Min 1048576
Max 2097152 Be sure the SeCreatePagefilePrivilege
privilege is applied on the current user. This is
called “Create paging file” in the user manager rights
dialog box.
Lookup Query :
http://www.microsoft.com/ContentRedirect.asp?prd=IFSKit&id=OpCreatG!crpagef!
11&pver=2195

Actually, our fsd is working on removable media so we have to fail the
request. But what will be the appropriate status to return? I looked for
NtCreatePagingFile documentation on MSDN, IFS Kit help file, osronline ntfsd
archive, google… But could find any documentation of valid status for
NtCreatePagingFile failure.

I found a book describing statuses STATUS_PRIVILEGE_NOT_HELD,
STATUS_OBJECT_NAME_INVALID, STATUS_TOO_MANY_PAGING_FILES and
STATUS_FLOPPY_VOLUME as valid failures. However none of those seems to
appropriately define the failure our fsd would like to report (the best
approximation we see is STATUS_FLOPPY_VOLUME - not much satisfying).

Can someone points me to the documentation of NtCreatePagingFile?

Best regards,

David Burg

----------------------------------------------------------------
David Burg
Software Development,
InCD and Low Level Drivers Project Leader

Ahead Software AG phone: +49 (0)7248 911 862 (direct line)
Im Stoeckmaedle 18 fax: +49 (0)7248 911 888
76307 Karlsbad email: xxxxx@nero.com
Germany http://www.nero.com
----------------------------------------------------------------


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@nero.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Hello,

I like the suggestion of STATUS_NOT_IMPLEMENTED. Thanks! :slight_smile:

About FAT and IFS Test, I would also expect that there are consistent with
each other. However maybe the IFS Test for page file creation should stop
when it sees that the volume is removable as suggested by David J. Craig.

Best regards,

David Burg.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tony Mason
Sent: Tuesday, September 07, 2004 7:30 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] NtCreatePagingFile documentation

The problem is that ACCESS_DENIED indicates a security related failure.
We generally return STATUS_NOT_IMPLEMENTED when asked to open a paging
file.

Interestingly enough, FAT does return ACCESS_DENIED under some
circumstances, which suggests that the IFS Kit test is probably being
overly restrictive in this case.

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of David Burg
Sent: Tuesday, September 07, 2004 10:42 AM
To: ntfsd redirect
Subject: [ntfsd] NtCreatePagingFile documentation

Hello,

An engineer from my team pointed that IFS Test complains about our
CreatePagingFileTest implementation returning status
STATUS_ACCESS_DENIED.
More exactly:

418.2CC : +TEST+SEV2 : Test :CreatePagingFileTest
Group :OpenCreateGeneral
File
:e:\nttest\base\testsrc\filesystem\ifstests\code\opcreatg\crpagef.c
Line :102
Status :C000001E (IFSTEST_TEST_NTAPI_FAILURE_CODE)
LastNtStatus :C0000022 STATUS_ACCESS_DENIED
ExpectedNtStatus :00000000 STATUS_SUCCESS
Description :{Msg# OpCreatG!crpagef!11} Failure returned by
NtCreatePagingFile. Name \crpagef.dat Min 1048576
Max 2097152 Be sure the SeCreatePagefilePrivilege
privilege is applied on the current user. This is
called “Create paging file” in the user manager rights
dialog box.
Lookup Query :
http://www.microsoft.com/ContentRedirect.asp?prd=IFSKit&id=OpCreatG!crpa
gef!
11&pver=2195

Actually, our fsd is working on removable media so we have to fail the
request. But what will be the appropriate status to return? I looked for
NtCreatePagingFile documentation on MSDN, IFS Kit help file, osronline
ntfsd
archive, google… But could find any documentation of valid status for
NtCreatePagingFile failure.

I found a book describing statuses STATUS_PRIVILEGE_NOT_HELD,
STATUS_OBJECT_NAME_INVALID, STATUS_TOO_MANY_PAGING_FILES and
STATUS_FLOPPY_VOLUME as valid failures. However none of those seems to
appropriately define the failure our fsd would like to report (the best
approximation we see is STATUS_FLOPPY_VOLUME - not much satisfying).

Can someone points me to the documentation of NtCreatePagingFile?

Best regards,

David Burg


David Burg
Software Development,
InCD and Low Level Drivers Project Leader

Ahead Software AG phone: +49 (0)7248 911 862 (direct line)
Im Stoeckmaedle 18 fax: +49 (0)7248 911 888
76307 Karlsbad email: xxxxx@nero.com
Germany http://www.nero.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


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