ports/emulators/open-vm-tools/files/patch-modules_freebsd_vmblock_vfsops.c
Josh Paetzel 69f24b93f5 Update to version 10.2.5
For the most part this is just to track upstream for FreeBSD.
In particular 10.2.0 introduced a regression whereby UFS support
was dropped.  The fix was backported to the FreeBSD port of 10.2.0
in lieu of waiting for 10.2.5 to be released.

PR:	227124
Submitted by:	John Wolfe <jwolfe@vmware.com>
2018-05-28 02:04:36 +00:00

26 lines
674 B
C

--- modules/freebsd/vmblock/vfsops.c.orig 2018-03-30 18:44:35 UTC
+++ modules/freebsd/vmblock/vfsops.c
@@ -124,6 +124,11 @@ VMBlockVFSMount(struct mount *mp, // IN: mount(
char *pathname;
int len, error = 0;
+#if __FreeBSD_version >= 800087
+ struct thread *td;
+ td = curthread;
+#endif
+
VMBLOCKDEBUG("VMBlockVFSMount(mp = %p)\n", (void *)mp);
/*
@@ -276,6 +281,11 @@ VMBlockVFSUnmount(struct mount *mp, // IN: filesyst
void *mntdata;
int error;
int flags = 0, removed = 0;
+
+#if __FreeBSD_version >= 800087
+ struct thread *td;
+ td = curthread;
+#endif
VMBLOCKDEBUG("VMBlockVFSUnmount: mp = %p\n", (void *)mp);