HomeFreeBSD

Sync /dev/zfs ioctl ordering

Description

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.
  1. 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

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Dec 13 2013, 10:49 PM
Parents
rGba6a24026c6e: Remove ZFC_IOC_*_MINOR ioctl()s
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG2e0358cbcab4: Sync /dev/zfs ioctl ordering (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Dec 16 2013, 5:41 PM