]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
Allow copying of object policy within the same container
authorOliver Kurth <okurth@vmware.com>
Fri, 5 Jan 2018 22:47:14 +0000 (14:47 -0800)
committerOliver Kurth <okurth@vmware.com>
Fri, 5 Jan 2018 22:47:14 +0000 (14:47 -0800)
commitdf18c2c2c3e7dde4478ee68a5f4a96600a3d07a2
tree5176d9b0fe9d8dec8978593c2e70c099addf007b
parenta678f3ea9f6de366b3b3de2f99956d93d2216b08
Allow copying of object policy within the same container

ObjLib_CloneExtParams is currently not allowing copying of policy from
parent to child/clone object on VSAN. This is because the copy policy
check is based on unique filesystem ID, which will be different for
parent and child on VSAN because they will mostly be created on same
container but different namespace. This change uses VCFS root instead
of namespace UUID to make the comparison on VSAN.

Bonus fix: File_FullPath is now fixed to work for any combination of
ancestor path being present. Currently it only works if either the
given path exists, or when only the last component of the path does
not exist. And since this fix relies on finding the VCFS root of both
parent and child (parent is present but child is not),
ObjLibPathToVCFSRoot has been modified to rely on File_FullPath  in
addition to Util_GetCanonicalPath if the path does not exist.
open-vm-tools/lib/file/filePosix.c