Is there a way to detect fragmentation of a single file using software tools? For example, is there any file system API that I can use to get this type of information?
I just copy and paste Raymond's reply from the comments, so I marked it as a response from the community wiki .
For C / C ++, use FSCTL_GET_RETRIEVAL_POINTERS . For C #, use these wrapper classes .
Here is a good C # cover for FSCTL_GET_RETRIEVAL_POINTERS: http://blogs.msdn.com/b/jeffrey_wall/archive/2004/09/13/229137.aspx
This shell calls the control code to return a list of the object that determines where each file is located on disk.
You probably want the GetFileMap method to retrieve this information.
Source: https://habr.com/ru/post/914728/More articles:How to return Datatable using [WebMethod] - c #Why won't PriorityQueue act as a queue? - javaDrupal Themes Getting Unselected - drupalHow to calculate tides for a specific date and location using Delphi - delphiHow to check if vqmod is installed? - xmlWhat does "# $" mean in bash? - syntaxRegular expression to remove special characters in JSTL tags - regexSolar grid work timeout - timeoutChange the model in the OnActionExecuting event - model-view-controllerWhat is the best way to handle .classpath files in Git when developers use different versions of JBoss in their project build paths? - gitAll Articles