Skip to content

Commit

Permalink
Reorder ZFS ioctls to fix cross-version compatibility
Browse files Browse the repository at this point in the history
Reorder ZFS ioctls to fix cross-version compatibility.

Reviewed-by: Don Brady <don.brady@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Signed-off-by: Lorenz Brun <lorenz@dolansoft.org>
Closes #8484
  • Loading branch information
lorenz authored and behlendorf committed Mar 9, 2019
1 parent b46fd24 commit bf90948
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions include/sys/fs/zfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1204,9 +1204,9 @@ typedef enum zfs_ioc {
ZFS_IOC_BOOKMARK, /* 0x5a43 */
ZFS_IOC_GET_BOOKMARKS, /* 0x5a44 */
ZFS_IOC_DESTROY_BOOKMARKS, /* 0x5a45 */
ZFS_IOC_CHANNEL_PROGRAM, /* 0x5a46 */
ZFS_IOC_RECV_NEW, /* 0x5a47 */
ZFS_IOC_POOL_SYNC, /* 0x5a48 */
ZFS_IOC_RECV_NEW, /* 0x5a46 */
ZFS_IOC_POOL_SYNC, /* 0x5a47 */
ZFS_IOC_CHANNEL_PROGRAM, /* 0x5a48 */
ZFS_IOC_LOAD_KEY, /* 0x5a49 */
ZFS_IOC_UNLOAD_KEY, /* 0x5a4a */
ZFS_IOC_CHANGE_KEY, /* 0x5a4b */
Expand Down
6 changes: 3 additions & 3 deletions tests/zfs-tests/cmd/libzfs_input_check/libzfs_input_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,9 +878,9 @@ validate_ioc_values(void)
ZFS_IOC_BASE + 67 == ZFS_IOC_BOOKMARK &&
ZFS_IOC_BASE + 68 == ZFS_IOC_GET_BOOKMARKS &&
ZFS_IOC_BASE + 69 == ZFS_IOC_DESTROY_BOOKMARKS &&
ZFS_IOC_BASE + 70 == ZFS_IOC_CHANNEL_PROGRAM &&
ZFS_IOC_BASE + 71 == ZFS_IOC_RECV_NEW &&
ZFS_IOC_BASE + 72 == ZFS_IOC_POOL_SYNC &&
ZFS_IOC_BASE + 70 == ZFS_IOC_RECV_NEW &&
ZFS_IOC_BASE + 71 == ZFS_IOC_POOL_SYNC &&
ZFS_IOC_BASE + 72 == ZFS_IOC_CHANNEL_PROGRAM &&
ZFS_IOC_BASE + 73 == ZFS_IOC_LOAD_KEY &&
ZFS_IOC_BASE + 74 == ZFS_IOC_UNLOAD_KEY &&
ZFS_IOC_BASE + 75 == ZFS_IOC_CHANGE_KEY &&
Expand Down

0 comments on commit bf90948

Please sign in to comment.