]> git.proxmox.com Git - mirror_zfs.git/commit - include/sys/fs/zfs.h
Sync /dev/zfs ioctl ordering
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 13 Dec 2013 22:49:33 +0000 (14:49 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 16 Dec 2013 17:41:39 +0000 (09:41 -0800)
commit2e0358cbcab49f7be18762e8cb51e642188709e7
tree2704cd15588e782e07e9361d458030250cd43730
parentba6a24026c6eb910188c24b5c921fb793d3c998e
Sync /dev/zfs ioctl ordering

In order to minimize any future disruption caused by the addition
and removal /dev/zfs ioctls this patch makes the following changes.

1) Sync ZoL's ioctl ordering such that it matches Illumos.  For
   historic reasons the ZFS_IOC_DESTROY_SNAPS and ZFS_IOC_POOL_REGUID
   ioctls were out of order.

2) Move Linux and FreeBSD specific ioctls in to their own reserved
   ranges.  This allows us to preserve the existing ordering when
   new ioctls are added by either Illumos or FreeBSD.  When an
   ioctl is no longer needed it should be retired in place.

This change alters the ZFS user/kernel ABI so make sure you rebuild
both your user and kernel modules.  However, it should allow for a
much stabler interface going forward.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ned Bass <bass6@llnl.gov>
Closes #1973
include/sys/fs/zfs.h
module/zfs/zfs_ioctl.c