On Thu, 6 May 2004, Anton Altaparmakov wrote:
>
> Well then your logic in ntfsresize is wrong. The user who had the same
> problem was able to resize to way lower than the reported size by --info
> and he was using ntfsresize...
Impossible. The relevant value is stored in resize->last_unsupp. Before
any real action, for both resizing and --info it's calculated exactly the
same way, same code path.
At check_shrink_constraints() if --info was used then the function returns
and advise_on_resize() immediately prints resize->last_unsupp then exits.
If --info wasn't used then there is this condition instead:
if (new_size <= resize->last_unsupp)
err_exit("The fragmentation type, you have, isn't "
"supported yet. Rerun ntfsresize\nwith "
"the -i option to estimate the smallest "
"shrunken volume size supported.\n");
This means that the shrunken size can't be less than the value reported by
--info becuase ntfsresize exits with the above message without doing
anything resizing related.
I also have automatic test cases that test this and these tests never
failed.
Szaka
|