John Wolfe [Fri, 22 Jan 2021 20:25:40 +0000 (12:25 -0800)]
[resolution/x11] Preserve the rotation
The screen orientation/rotation was being reset on each mode set.
In general that is not a bad behavior. But it does break with a
fit to window and such as it will continuously reset the user
requested orientation.
This patch preserves the orientation/rotation on mode changes.
John Wolfe [Fri, 22 Jan 2021 20:25:40 +0000 (12:25 -0800)]
Log file name becomes invalid after a rotation
This is because the accounting is done unsigned but the printf used (in
multiple places) was "%d". Fix this by using "%u".
As documented in the function header, the wrap around case was not handled
properly, so this was fixed as well. If the maximum rotation number hits
MAX_UINT32, all of the files are renamed to pack the files as if this was
the beginning of a rotation sequence.
John Wolfe [Wed, 13 Jan 2021 22:48:17 +0000 (14:48 -0800)]
Prepare to make the 11.2.5 OVT release announcement.
- ReleaseNotes.md - copy in the final 11.2.5 OVT release notes
- configure.ac = set the tools version to 11.2.5
- buildNumber.h - set the build and product number from the internal
release build.
John Wolfe [Wed, 23 Dec 2020 15:33:50 +0000 (07:33 -0800)]
OVT: Build only fuse-based or kernel module vmblocktest programs.
The OVT configuration determines whether open-vm-tools will build
a vmblock kernel module or a vmblock-fuse user level VMBlock
implementation. Both versions of the vmblocktest program(s) are not
needed. Linux OVT is only using the vmblock-fuse implementation.
Select the version to build based on the HAVE_FUSE setting from the
./configure run.
This fixes https://github.com/vmware/open-vm-tools/issues/467
John Wolfe [Tue, 22 Dec 2020 20:22:03 +0000 (12:22 -0800)]
OVT: Build only fuse-based or kernel module vmblocktest programs.
The OVT configuration determines whether open-vm-tools will build
a vmblock kernel module or a vmblock-fuse user level VMBlock
implementation. Both versions of the vmblocktest program(s) are not
needed. Linux OVT is only using the vmblock-fuse implementation.
Select the version to build based on the HAVE_FUSE setting from the
./configure run.
This fixes https://github.com/vmware/open-vm-tools/issues/467
John Wolfe [Tue, 22 Dec 2020 20:22:03 +0000 (12:22 -0800)]
MXUser Semaphores - nanosecond resolution wait times
The graphics team requested the ability to have semaphore wait times
less than a millisecond. This would greatly improve some graphics
operations. Since POSIX platforms (i.e. ESXi, MacOS, Linux) support
nanosecond resolution for semaphore wait times, a new timed semaphore
wait routine with nanosecond resolution is introduced.
John Wolfe [Fri, 11 Dec 2020 05:05:49 +0000 (21:05 -0800)]
Fix propagation of libtirpc flags into build of test source.
Starting with glibc 2.32, the Linux libc<n>-dev no longer provides
the /usr/include/rpc/rpc.h header. The configure script will detect
the availability of the libtirpc package and use the rpc.h header
from /usr/include/tirpc/rpc/rpc.h.
This fix extends the necessary compilation and linking options to the
build of the open-vm-tools services test programs that utilize RPC.
John Wolfe [Fri, 11 Dec 2020 05:05:49 +0000 (21:05 -0800)]
Fix memory leaks.
A Coverity scan of open-vm-tools reported a number of memory leaks
on error code paths. Fix seven reported leaks, and modify code
to address two false positives in order to make the code clearer
and/or keep Coverity from reporting the issues. Also fix additional
leaks found in the routine Proto_TextContents during code review.
John Wolfe [Fri, 11 Dec 2020 03:34:56 +0000 (19:34 -0800)]
Change to common source file not immediately applicable to open-vm-tools.
GuestStore Upgrade: add settings to the tools.conf file
This change adds the GuestStore Upgrade settings to the tools.conf
file installed with Tools.
Settings are:
[gueststoreupgrade]
# The guestStoreUpgrade plugin is only available for Windows.
# The policy value is one of the settings listed below.
# off = no VMware Tools upgrade from GuestStore. Feature is
# disabled.
# manual = (Default) VMware Tools upgrade from GuestStore is
# manually started.
# powercycle = VMware Tools upgrade from GuestStore on system
# power on.
#policy=manual
# Time interval for periodically checking available VMware Tools package
# version in the GuestStore.
# User-defined poll interval in seconds. Set to 0 to disable polling.
# Minimum valid value is 900 seconds (15 minutes)
# Default value is 3600 seconds (60 minutes)
#poll-interval=3600
# VMware Tools package version metadata key to specify a VMware Tools
# package version in the GuestStore.
# User-defined key for VMware Tools package version.
# Default value is "vmtools" which points to the latest version of
# VMware Tools package in the GuestStore.
#vmtools-version-key=vmtools
John Wolfe [Fri, 20 Nov 2020 16:37:30 +0000 (08:37 -0800)]
Fix propagation of libtirpc flags into build of test source.
Starting with glibc 2.32, the Linux libc<n>-dev no longer provides
the /usr/include/rpc/rpc.h header. The configure script will detect
the availability of the libtirpc package and use the rpc.h header
from /usr/include/tirpc/rpc/rpc.h.
This fix extends the necessary compilation and linking options to the
build of the open-vm-tools services test programs that utilize RPC.