We are using expanding VHDX (with HyperV) with Ubuntu. For expanding the disk we write to the temp file and delete it. For subsequent expansion looks like it doesn't takes differential size to increase the disk rather allocates new space.
Example:
I have created 20 GB temp file to allocate memory. And deleted that temp file. disk expands to 20 GB
Now I need space of 25 GB, SO I again created 25 GB temp file. But now the total disks expands to 45 GB.
It is not utilizing the space which we got from deleting that temp file.
SO is this a Known case with VHDX- Will it not consider the deleted file's space?