win32file.DeviceIoControl(FSCTL_GET_RETRIEVAL_POINTERS)

J

Jim

I'm not sure how to perform this operation in Python. The difficulty is
in knowing the size of the output buffer: if it is too small, I get an
"insufficient buffer" exception; too large, and I get an "end of file"
exception. In neither case is any partial data available.

I'd rather not resort to a binary seach...
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

Jim said:
I'm not sure how to perform this operation in Python. The difficulty is
in knowing the size of the output buffer: if it is too small, I get an
"insufficient buffer" exception; too large, and I get an "end of file"
exception. In neither case is any partial data available.

What precisely is the "end of file" exception you are getting. Looking
at

http://msdn.microsoft.com/library/d...us/fileio/fs/fsctl_get_retrieval_pointers.asp

I'd say it is

ERROR_HANDLE_EOF The volume is an NTFS file system volume and the
requested starting VCN is past the end of the file.

So my guess is you should just pass a smaller starting VCN.

Regards,
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top