I'm trying to copy the used clusters of a hard disk partition(NTFS,windows os) to another partition.
I used the "FSCTL_GET_VOLUME_BITMAP" to get the cluster usage details.And I'm getting the used and free cluster counts correctly.And the cluster number I got is continuous.This makes problem for me. I wanna copy the used clusters to a different partition.
What type of cluster number I'm getting.? ; but the answer is correct.It makes confusion to me.the clusters may not be continuous so what the following program segment gives..??
if ( IsClusterUsed (cc)) // return 1 from buffer
{
// cluster used
usedcluster=usedcluster+1;
}
}
cout<<"\n Used no of clusters :"<<usedcluster<<"\n";
============================================================
============================================================
Getting the total cluster counts correctly
Getting the used cluster counts correctly
while printing the used cluster number it shows continuous numbers....?? why...?
I know.... Logical and virtual cluster numbers are there...Other than these original cluster number will be there....????