Move zfs_cmd_t copyin/copyout to platform code

FreeBSD needs to cope with multiple version of the zfs_cmd_t
structure. Allowing the platform code to pre and post
process the cmd structure makes it possible to work with
legacy tooling.

Reviewed-by: Jorgen Lundman <lundman@lundman.net>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #9624
This commit is contained in:
Matthew Macy
2019-12-02 10:08:27 -08:00
committed by Brian Behlendorf
parent 42a826eed3
commit 5142032106
3 changed files with 25 additions and 22 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ void zfs_ioctl_init_os(void);
int zfs_vfs_ref(zfsvfs_t **);
long zfsdev_ioctl_common(uint_t, unsigned long);
long zfsdev_ioctl_common(uint_t, zfs_cmd_t *);
int zfsdev_attach(void);
void zfsdev_detach(void);
int zfs_kmod_init(void);