summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-10-10 07:05:47 +0000
committerkib <kib@FreeBSD.org>2010-10-10 07:05:47 +0000
commit4036cd070dc5c10e56ee81b7b59fac9c3d1b21b5 (patch)
treea006cef67a086a26fbf62390901a1727666e6379 /sys/kern
parentab9dd3ef5837b16243ea56cca50dce6f2709cb92 (diff)
downloadFreeBSD-src-4036cd070dc5c10e56ee81b7b59fac9c3d1b21b5.zip
FreeBSD-src-4036cd070dc5c10e56ee81b7b59fac9c3d1b21b5.tar.gz
The r184588 changed the layout of struct export_args, causing an ABI
breakage for old mount(2) syscall, since most struct <filesystem>_args embed export_args. The mount(2) is supposed to provide ABI compatibility for pre-nmount mount(8) binaries, so restore ABI to pre-r184588. Requested and reviewed by: bde MFC after: 2 weeks
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_mount.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index 98eb0c4..5b0fd00 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -1960,3 +1960,11 @@ kernel_vmount(int flags, ...)
error = kernel_mount(ma, flags);
return (error);
}
+
+void
+vfs_oexport_conv(const struct oexport_args *oexp, struct export_args *exp)
+{
+
+ bcopy(oexp, exp, sizeof(*oexp));
+ exp->ex_numsecflavors = 0;
+}
OpenPOWER on IntegriCloud