Fix emulators/virtualbox-os-additions on head after vget(9) change.

This commit is contained in:
Jung-uk Kim 2020-08-28 19:23:19 +00:00
parent c19761c5f6
commit ea7cc70e0b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=546807

View File

@ -12,7 +12,7 @@
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
@@ -14,228 +10,1343 @@
@@ -14,228 +10,1347 @@
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
@ -272,7 +272,11 @@
+ goto loop1;
+ }
+ VBOXFS_NODE_UNLOCK(node);
+#if __FreeBSD_version < 1300109
+ error = vget(vp, lkflag | LK_INTERLOCK, curthread);
+#else
+ error = vget(vp, lkflag | LK_INTERLOCK);
+#endif
+ if (error == ENOENT)
+ goto loop;
+ if (error != 0) {