]> git.ipfire.org Git - thirdparty/open-vm-tools.git/log
thirdparty/open-vm-tools.git
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 20 Sep 2010 18:14:19 +0000 (11:14 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 20 Sep 2010 18:13:40 +0000 (11:13 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoghIntegration: introduce internal gnome-menus-2.30.2.
VMware, Inc [Mon, 20 Sep 2010 18:11:52 +0000 (11:11 -0700)] 
ghIntegration: introduce internal gnome-menus-2.30.2.

Includes our hacked <gnome-menus/gmenu-tree.h> in ghIntegrationX11.c, guarded
by REDIST_GMENU macro.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoAdjust Muls64x32s64 constraints to allow PIC
VMware, Inc [Mon, 20 Sep 2010 18:10:27 +0000 (11:10 -0700)] 
Adjust Muls64x32s64 constraints to allow PIC

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 20 Sep 2010 18:10:00 +0000 (11:10 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoFix minor memory leak.
VMware, Inc [Mon, 20 Sep 2010 18:09:32 +0000 (11:09 -0700)] 
Fix minor memory leak.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoopen-vm-tools: fix FreeBSD build.
VMware, Inc [Mon, 20 Sep 2010 18:09:20 +0000 (11:09 -0700)] 
open-vm-tools: fix FreeBSD build.

Can't use GNU make commands: open-vm-tools has to build with non-GNU make
also.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoopen-vm-tools: remove SLPv2Parser.
VMware, Inc [Mon, 20 Sep 2010 18:09:04 +0000 (11:09 -0700)] 
open-vm-tools: remove SLPv2Parser.

No code seems to use it anymore.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agolib/file: dump EXTERN from header file
VMware, Inc [Mon, 20 Sep 2010 18:08:42 +0000 (11:08 -0700)] 
lib/file: dump EXTERN from header file

It's unnecessary.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoInternal branch sync. Included in this change:
VMware, Inc [Mon, 20 Sep 2010 18:08:26 +0000 (11:08 -0700)] 
Internal branch sync. Included in this change:

. VIX: refactor error translation code.

. VIX: properly recognize symlinks to directories

. changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 20 Sep 2010 18:07:51 +0000 (11:07 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 20 Sep 2010 18:07:28 +0000 (11:07 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 20 Sep 2010 18:07:07 +0000 (11:07 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 20 Sep 2010 18:06:52 +0000 (11:06 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges to add guestlib ioctl handlers.
VMware, Inc [Mon, 20 Sep 2010 18:06:15 +0000 (11:06 -0700)] 
Changes to add guestlib ioctl handlers.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoInternal branch sync. Included in this change:
VMware, Inc [Mon, 20 Sep 2010 18:05:36 +0000 (11:05 -0700)] 
Internal branch sync. Included in this change:

. VIX: properly set username and use working dir for StartProgram

. VIX: refactor the message parsing code so that the Tools endpoints can use it.

. DnD: remove performance regression workaround.

. Unity: register the RPCs for Window Commands.

. VIX: Pass the user environment block when starting a child process while
  impersonating.

. changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoMore HGFS-over-VMCI backouts.
VMware, Inc [Mon, 20 Sep 2010 18:04:52 +0000 (11:04 -0700)] 
More HGFS-over-VMCI backouts.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoMore HGFS-over-VMCI backouts.
VMware, Inc [Mon, 20 Sep 2010 18:04:36 +0000 (11:04 -0700)] 
More HGFS-over-VMCI backouts.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoMore HGFS-over-VMCI backouts.
VMware, Inc [Mon, 20 Sep 2010 18:04:22 +0000 (11:04 -0700)] 
More HGFS-over-VMCI backouts.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoMove HGFS-over-VMCI backouts.
VMware, Inc [Mon, 20 Sep 2010 18:04:05 +0000 (11:04 -0700)] 
Move HGFS-over-VMCI backouts.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoBacking out all the stuff related Hgfs Over VMCI.
VMware, Inc [Mon, 20 Sep 2010 18:03:49 +0000 (11:03 -0700)] 
Backing out all the stuff related Hgfs Over VMCI.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoUnregister legacy backdoor in X11 UI class destructor.
VMware, Inc [Mon, 20 Sep 2010 18:03:29 +0000 (11:03 -0700)] 
Unregister legacy backdoor in X11 UI class destructor.

The legacy backdoor copy paste (used by ESX) is registered in
an Init function of the X11 UI class. We should only unregister
the legacy copy paste when this class is destructed.

Up to now, were were doing it as a side effect of resetting
dndcp version 3 and higher in response to a reset signal from
the plugin framework. This would cause the backdoor copypaste
code to unregister at reset without being registered once again
because the registration only happened in Init.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoDon't crash tools if backdoor is disabled.
VMware, Inc [Mon, 20 Sep 2010 18:03:04 +0000 (11:03 -0700)] 
Don't crash tools if backdoor is disabled.

Four fixes:

. the provider list is empty when we don't detect the backdoor, so need
to check for NULL when cleaning it up.

. check if backdoor is available before trying to execute a command when
invoking "vmtoolsd --cmd".

. unity plugin shouldn't initialize itself if rpc channel is not available.

. ditto for dnd.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 20 Sep 2010 18:02:13 +0000 (11:02 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoFix open-vm-tools builds.
VMware, Inc [Mon, 20 Sep 2010 18:01:49 +0000 (11:01 -0700)] 
Fix open-vm-tools builds.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoDon't panic when shared folders are disabled.
VMware, Inc [Mon, 20 Sep 2010 18:01:41 +0000 (11:01 -0700)] 
Don't panic when shared folders are disabled.

Recent code changes to allow hgfs to function over
multiple transport (backdoor, vmci) introduced some asserts
and channel switching logic which was broken.

When Shared folders are disabled there are no channels
present and this lead to few problems:

a) Each channel has allocator functions that allocates memory
in the form it requires. When there are no channels - it panics. Bad.

b) Earlier when channel connection failed we would try to re-establish
connection in send. We can't do that now since each send relies on its
allocator functions to do the right thing.

c) Don't bail out when you do not find any channel, since user can enable
shared folder any point in time and expects it to work.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoGuest side changes corresponding to host side cleanup.
VMware, Inc [Mon, 20 Sep 2010 18:01:19 +0000 (11:01 -0700)] 
Guest side changes corresponding to host side cleanup.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoInstantiate mac implementation in copyPasteDnDWrapper::Init().
VMware, Inc [Mon, 20 Sep 2010 18:00:42 +0000 (11:00 -0700)] 
Instantiate mac implementation in copyPasteDnDWrapper::Init().

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 20 Sep 2010 18:00:08 +0000 (11:00 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 20 Sep 2010 17:59:48 +0000 (10:59 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 20 Sep 2010 17:59:17 +0000 (10:59 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 20 Sep 2010 17:58:48 +0000 (10:58 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoVMCI support for Hgfs in Mac OS X. Only Synchronous.
VMware, Inc [Mon, 20 Sep 2010 17:58:31 +0000 (10:58 -0700)] 
VMCI support for Hgfs in Mac OS X. Only Synchronous.

Now that abstraction is done, let's introduce VMCI channel. This
change only implements synchronous case. Next change will be for
async case.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoRemove ASSERT. Close can be called twice on us.
VMware, Inc [Mon, 20 Sep 2010 17:58:00 +0000 (10:58 -0700)] 
Remove ASSERT. Close can be called twice on us.

Relax few asserts to DEVEL only.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 20 Sep 2010 17:57:21 +0000 (10:57 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 20 Sep 2010 17:56:16 +0000 (10:56 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 20 Sep 2010 17:55:41 +0000 (10:55 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoOVT: do not package snippets of Microsoft KB code
VMware, Inc [Mon, 20 Sep 2010 17:55:22 +0000 (10:55 -0700)] 
OVT: do not package snippets of Microsoft KB code

MS does not like us distribute their KB code in our open source
products so fiolter it out before packaging - we do not ship
Win32 in open-vm-tools anyway.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Mon, 20 Sep 2010 17:54:59 +0000 (10:54 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agolib/log: trivial cleanup
VMware, Inc [Mon, 20 Sep 2010 17:54:37 +0000 (10:54 -0700)] 
lib/log: trivial cleanup

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoSupport getopt_long for toolbox-cmd on Win32.
VMware, Inc [Mon, 20 Sep 2010 17:54:23 +0000 (10:54 -0700)] 
Support getopt_long for toolbox-cmd on Win32.

Seems the function was added after toolbox-cmd was written, so we can
use it now.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoInternal branch sync. Included in this change:
VMware, Inc [Mon, 20 Sep 2010 17:53:35 +0000 (10:53 -0700)] 
Internal branch sync. Included in this change:

. relocate the Unity operations enums into unityCommon.h.

. fix File_DeleteDirectoryTree to not fail when asked to delete a dir that
  doesn't exist.

. refactor VIX code that deals with environment variables.

. changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoRemove GLIBC_VERSION detection from configure.ac.
VMware, Inc [Mon, 20 Sep 2010 17:51:05 +0000 (10:51 -0700)] 
Remove GLIBC_VERSION detection from configure.ac.

Change 1133525 added support for detecting the glibc version using
features.h, so there's no need for the configure-time checks.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoopen-vm-tools: move guestlibV3.x to libguestlib directory.
VMware, Inc [Mon, 20 Sep 2010 17:50:52 +0000 (10:50 -0700)] 
open-vm-tools: move guestlibV3.x to libguestlib directory.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoHide VMCI symbols and only export that are needed.
VMware, Inc [Mon, 20 Sep 2010 17:50:34 +0000 (10:50 -0700)] 
Hide VMCI symbols and only export that are needed.

Hiding all the VMCI symbols by default and only exporting
the ones that are needed.

Also changed few usage of private symbols in vsock with public
ones. I mostly tried to export all the symbols that were exported
for linux.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoFixing obsolete HGFS protocol support
VMware, Inc [Mon, 20 Sep 2010 17:50:01 +0000 (10:50 -0700)] 
Fixing obsolete HGFS protocol support

Payload size must be at least siZeof HgfsReply.
HgfsServer returns payload size 0 on error for obsolete HGFS versions.
Fixing to return at least header size.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoOnly enter gtk_main_iteration when Tools app main loop is active.
VMware, Inc [Mon, 20 Sep 2010 17:49:47 +0000 (10:49 -0700)] 
Only enter gtk_main_iteration when Tools app main loop is active.

If vmtoolsd mainloop is, or becomes, inactive, we need to stop issuing
pointer grab clipboard checks. It was advised the way to do this was
to look at the main loop field of the tools app context and see if it
is active, and only enter gtk_main_iteration() if so.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoUpdating open-vm-tools version for release 2010.08.24-292196. 2010.08.24-292196
VMware, Inc [Tue, 24 Aug 2010 19:59:21 +0000 (12:59 -0700)] 
Updating open-vm-tools version for release 2010.08.24-292196.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoopen-vm-tools: fix build of HGFS module for FreeBSD.
VMware, Inc [Tue, 24 Aug 2010 18:49:31 +0000 (11:49 -0700)] 
open-vm-tools: fix build of HGFS module for FreeBSD.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:49:14 +0000 (11:49 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoAdd const to a static variable.
VMware, Inc [Tue, 24 Aug 2010 18:48:58 +0000 (11:48 -0700)] 
Add const to a static variable.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:48:04 +0000 (11:48 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agolib/log: moved defines where they belong
VMware, Inc [Tue, 24 Aug 2010 18:47:48 +0000 (11:47 -0700)] 
lib/log: moved defines where they belong

These defines have nothing to do with the log. Put in the "right"
place.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:47:28 +0000 (11:47 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:46:55 +0000 (11:46 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:46:23 +0000 (11:46 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoCheck for return value from VMCIMemcpy in Enqueue/Dequeue.
VMware, Inc [Tue, 24 Aug 2010 18:46:07 +0000 (11:46 -0700)] 
Check for return value from VMCIMemcpy in Enqueue/Dequeue.

The EnqueueLocked() and DequeueLocked() functions were not checking for the
return code from the platform specific VMCIMemcpy funtions. Because of the
they were returning success, despite the mem copy failing.

Fix: Check for the return value of VMCIMemcpy funtions and update the
produceTail/consumeHead pointers only if mem copy succeeds. Also return
error code if mem copy fails.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agolib/log: Log_WriteLogFile -> Log_WriteBytes
VMware, Inc [Tue, 24 Aug 2010 18:45:54 +0000 (11:45 -0700)] 
lib/log: Log_WriteLogFile -> Log_WriteBytes

Make the name fit the function - no formatting, written to log
(may not be to a file anymore).

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoFix VMCI guest driver compile use of (un)lock_kernel
VMware, Inc [Tue, 24 Aug 2010 18:45:41 +0000 (11:45 -0700)] 
Fix VMCI guest driver compile use of (un)lock_kernel

A recent change introduced the use of (un)lock_kernel in the
VMCI guest driver. We need to include linux/smp_lock.h to get
the definition on certain kernels. This change adds that.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:45:24 +0000 (11:45 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoAdd a monotonic glib timer to Tools.
VMware, Inc [Tue, 24 Aug 2010 18:45:10 +0000 (11:45 -0700)] 
Add a monotonic glib timer to Tools.

While investigating bug 600636, I noticed that glib timers sometimes would
get into a funny state where they'd ask the main loop to sleep for a very
short time, even though they weren't ready to be fired. I couldn't figure
out why they were doing that, but anyway, we can't easily modify glib.

Instead, add a new timer, based on a monotonic clock, to use in preference
to the glib timer. This is more important for quick firing timers such as
the RPC loop or the C&P pointer poll than it is for coarser-grained timers
such as the guest info gather loop.

Along with it, change the rpcin library and the dnd plugin to use the new
timer in place of the glib one, and avoid re-creating the timer on every
iteration of the rpcin loop - do it only when the delay has changed.

I was only able to reproduce the original issue on a 32-bit Win XP VM. I
tried a 64-bit Win 7 VM and a 64-bit Linux VM, and both seemed to behave
fine.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChannel abstraction for Mac OS.
VMware, Inc [Tue, 24 Aug 2010 18:44:49 +0000 (11:44 -0700)] 
Channel abstraction for Mac OS.

In preparation for Hgfs over vmci, let's abstract
the channel for Mac OS i.e remove all the assumptions
of backdoor so that it can transparently over both backdoor
and vmci.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoFixing reporting reply size for obsolete (V1 and V2) HGFS protocol versions.
VMware, Inc [Tue, 24 Aug 2010 18:44:34 +0000 (11:44 -0700)] 
Fixing reporting reply size for obsolete (V1 and V2) HGFS protocol versions.

HGFS V1 and V2 protocol structures do not have a separate header.
The reply size must be just sizeof reply structure, should not add
size of the header to calculate total reply size.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoGet vmci module to work on 2.6.36-rc1
VMware, Inc [Tue, 24 Aug 2010 18:44:10 +0000 (11:44 -0700)] 
Get vmci module to work on 2.6.36-rc1

vmci had no idea that ioctl is going away, and that for supporting
32bit apps on 64bit hosts it should provide compat_ioctl.  Even
for devel-only functionality.  Fixed.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:42:57 +0000 (11:42 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:42:42 +0000 (11:42 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:42:23 +0000 (11:42 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoInternal branch sync. Included in this change:
VMware, Inc [Tue, 24 Aug 2010 18:41:49 +0000 (11:41 -0700)] 
Internal branch sync. Included in this change:

. vix: add new opcodes for intiateFileTransfer[To|From]Guest operations.

. add new vmbackup entry point that allows more configurability of the
  quiescing operation (only enabled on Win32 currently).

. changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoHandle resourcePoolPath overflow situation (host side).
VMware, Inc [Tue, 24 Aug 2010 18:38:14 +0000 (11:38 -0700)] 
Handle resourcePoolPath overflow situation (host side).

We enforce the maximum size of resourcePoolPath on both ends of guestlib wire
protocol (both versions 2 and 3). We handle larger buffers by not sending
them in the existing protocols.

This change is also a minor revision to the guestlib v3 protocol (host side
only) to add another field to the v3 layout to send the larger
resourcePoolPath buffer as a byte array. The guest client side is omitted
here.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:37:18 +0000 (11:37 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:37:05 +0000 (11:37 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:36:19 +0000 (11:36 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoOpen Solaris is back to Solaris 11
VMware, Inc [Tue, 24 Aug 2010 18:35:58 +0000 (11:35 -0700)] 
Open Solaris is back to Solaris 11

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:35:42 +0000 (11:35 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoInternal branch sync. Included in this change:
VMware, Inc [Tue, 24 Aug 2010 18:35:23 +0000 (11:35 -0700)] 
Internal branch sync. Included in this change:

. vix: add per-API configuration

. changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:33:08 +0000 (11:33 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agovixTools: Init userArgs before passing it to ProcMgr_ExecAsync.
VMware, Inc [Tue, 24 Aug 2010 18:32:48 +0000 (11:32 -0700)] 
vixTools: Init userArgs before passing it to ProcMgr_ExecAsync.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:32:30 +0000 (11:32 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoNull Pointer Check
VMware, Inc [Tue, 24 Aug 2010 18:32:07 +0000 (11:32 -0700)] 
Null Pointer Check
1. Modified all exported functions to validate the input parameter for
non-null.
2. Modified VMCIQPair_Detach to return a result (instead of void) based
on success/failure of the detach operation.
3. Bumped the guest driver version.

Note: Functions calling VMCIQPair_Detach (like vsock module) should probably
start checking the result now. However, this would most likely not affect
existing calls.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoFix some escaping issues with HGFS file path names
VMware, Inc [Tue, 24 Aug 2010 18:31:44 +0000 (11:31 -0700)] 
Fix some escaping issues with HGFS file path names

Fix the following:
- HGFS clients call HgfsEscape_Undo twice for each name
- HGFS server incorrectly calls HgfsEscape_Undo on names
returned to clients as part of a directory listing.
- HGFS escaping code has an assert inappropriately placed
- Fix HGFS server from unescaping share names which cannot
have been escaped. They should only be escaped if required
by a client.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:31:27 +0000 (11:31 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:31:05 +0000 (11:31 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:30:42 +0000 (11:30 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoFix bug #355531 by removing kill-switch for Solaris guest operations.
VMware, Inc [Tue, 24 Aug 2010 18:30:20 +0000 (11:30 -0700)] 
Fix bug #355531 by removing kill-switch for Solaris guest operations.

This changeset removes the VIX_ENABLE_SOLARIS_GUESTOPS macro to enable
Solaris guest operations by default.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoAutodetect glibc version in vm_basic_defs.h
VMware, Inc [Tue, 24 Aug 2010 18:29:58 +0000 (11:29 -0700)] 
Autodetect glibc version in vm_basic_defs.h

For a long time, we have been passing GLIBC_VERSION_NN
macros via compiler command line.

These options can be autodetected without too much
work.  The header <features.h> provides full version
information, provided we skip this header for kernel
compiles.  This makes it a lot easier to upgrade
glibc versions...

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:28:59 +0000 (11:28 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:28:31 +0000 (11:28 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoFix renames on non-Windows hosts
VMware, Inc [Tue, 24 Aug 2010 18:28:15 +0000 (11:28 -0700)] 
Fix renames on non-Windows hosts

The check if the target file exists and the rename was not to
replace an existing target was badly coded.
The logic left the status field incorrectly set to file not found
which was fine for not replacing the target but then the rename
was missed due to a check on the status being successful for the
existance check.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoGuestInfo: DiskInfo: Skip lib/wiper and call Win32 APIs directly.
VMware, Inc [Tue, 24 Aug 2010 18:27:16 +0000 (11:27 -0700)] 
GuestInfo: DiskInfo: Skip lib/wiper and call Win32 APIs directly.

Rather than deal with the wiper library and its filters, this change
instead makes Win32's GuestInfo_GetDiskInfo call directly against Win32
volume management APIs.  POSIX guests will (for now) continue to use the
wiper library.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoGOS table: add new definitions
VMware, Inc [Tue, 24 Aug 2010 18:26:34 +0000 (11:26 -0700)] 
GOS table: add new definitions

Add Open Solaris (solaris 11) and Debian 6 entries.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:25:50 +0000 (11:25 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoCall FileIO_Invalidate() before FileIO_Open()
VMware, Inc [Tue, 24 Aug 2010 18:25:35 +0000 (11:25 -0700)] 
Call FileIO_Invalidate() before FileIO_Open()

We need to call FileIO_Invalidate() before calling FileIO_Open().
Otherwise FileIO_Open() ASSERTS on obj and beta builds.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoUpdate the Hgfs server interface for tools
VMware, Inc [Tue, 24 Aug 2010 18:25:19 +0000 (11:25 -0700)] 
Update the Hgfs server interface for tools

The Hgfs server interface was redone to work with multiple transports
however the tools side was left fudged.
Now upgrade the tools side interfaces into the Hgfs server.
The server interface is now hidden within the HgfsServerManager library.
The tools clients of the HGFS server now use the HgfsServerManager
interfaces directly:
HgfsServerManager_DataInit
HgfsServerManager_Register
HgfsServerManager_Unregister
HgfsServerManager_ProcessPacket

An HgfsServerManager guest is now built into the hgfs library with the server
and other related HGFS library code. The Hgfs server guest does not do any
RPC handling now as the library would have required building with both RPC
libraries and as such the RPC registering and callbacks are pushed back into
the caller.
At some future point when only one RPC library is used and all callers are built
in the same way, the HGFS RPC calls can be pushed back into the
HGfsServerManagerGuest to remove duplication of code.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoUse dentry with valid d_count
VMware, Inc [Tue, 24 Aug 2010 18:24:28 +0000 (11:24 -0700)] 
Use dentry with valid d_count

When we do getattr on a file, let's use dentry with a valid
d_count. This matters when you have more than one dentry for
an inode. You want to use dentry with valid d_count.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:24:13 +0000 (11:24 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agolib/file: remove a wasted test
VMware, Inc [Tue, 24 Aug 2010 18:23:48 +0000 (11:23 -0700)] 
lib/file: remove a wasted test

Util_SafeMalloc can't fail, no need to check for it.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agolib/file: stringify errors
VMware, Inc [Tue, 24 Aug 2010 18:23:31 +0000 (11:23 -0700)] 
lib/file: stringify errors

The lib/file is very good about stringifying an error code but
two places were missed.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoInternal branch sync. Included in this change:
VMware, Inc [Tue, 24 Aug 2010 18:22:55 +0000 (11:22 -0700)] 
Internal branch sync. Included in this change:

. ghi: use the base glib types for main loop and service objects rather than
  passing the ToolsAppCtx pointer around.

. changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoFail entire operation in case of an error while reading agruments.
VMware, Inc [Tue, 24 Aug 2010 18:20:35 +0000 (11:20 -0700)] 
Fail entire operation in case of an error while reading agruments.

In the function ReadArgsFromAddressSpaceFile we should fail the entire
operation instead of just breaking while comparing offsets. Otherwise,
we might get a DynBufArray with some elements having a NULL for the
buffer. This may lead to a NULL pointer dereference in
ExtractCommandLineFromAddressSpaceFile.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
15 years agoChanges in shared code that don't affect open-vm-tools functionality.
VMware, Inc [Tue, 24 Aug 2010 18:20:12 +0000 (11:20 -0700)] 
Changes in shared code that don't affect open-vm-tools functionality.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>