]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
Skip specified file systems when doing a quiesced snapshot on Linux
authorOliver Kurth <okurth@vmware.com>
Mon, 26 Feb 2018 20:35:36 +0000 (12:35 -0800)
committerOliver Kurth <okurth@vmware.com>
Mon, 26 Feb 2018 20:35:36 +0000 (12:35 -0800)
commit477ed7490a0c8376b050b49af84a07e82490fbe6
treeae4d564557d8eb36349eb5cef1ccdbf61bfdd07d
parent43a25b412defcecde3379440969af926aae7554c
Skip specified file systems when doing a quiesced snapshot on Linux

Add a tools.conf setting "excludedFileSystems" that specifies one or
more file system mount points to be skipped over when performing a
quiesced snapshot on Linux guests.  The value of excludedFileSystems
is a comma-separated list of glob-style patterns as recognized by the
glib routines described here:

https://developer.gnome.org/glib/stable/glib-Glob-style-pattern-matching.html

With this change, when performing a quiesced snapshot, the sync driver
freeze routine removes from the list of mount points it is to process
any path that matches a pattern in the excludedFileSystems list.

In the course of testing the change, a bug was found in SyncDriverFreeze
in which it returned SD_ERROR rather than FALSE when the path list is
empty.

This change also includes some whitespace cleanup in syncDriverWin32.c.
open-vm-tools/lib/include/syncDriver.h
open-vm-tools/lib/syncDriver/syncDriverPosix.c
open-vm-tools/services/plugins/vix/foundryToolsDaemon.c
open-vm-tools/services/plugins/vmbackup/stateMachine.c
open-vm-tools/services/plugins/vmbackup/syncDriverOps.c
open-vm-tools/services/plugins/vmbackup/vmBackupInt.h