I want to perform Linux fstrim
or Windows degrag retrim on a file system within VM to shrink VMware vSphere thin disks. However this should be performed only if there is no snapshot present as fstrim-ing a snapshoted file system will cause it to grow to full size on VMware vSphere thin disks.
Limitation: VM guest OS does not have access to vSphere/vCenter management interfaces.
Is there a way to detect presence of snapshot from within VM guest OS - for example via via VMware tools?