Is there a tool that would show me for a specific file on disk, how fragmented it is? (How many seeks does physical disk need to make if I were to read that file in a linear fashion)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
DeviceIoControlwithFSCTL_GET_VOLUME_BITMAP,FSCTL_GET_RETRIEVAL_POINTERSandFSCTL_MOVE_FILE, see Defragmenting Files.You can also find different code examples if you search for
FSCTL_MOVE_FILE.Here is one in C and another in .NET.