Skip to content

Commit

Permalink
Remove inconsistent use of EOPNOTSUPP
Browse files Browse the repository at this point in the history
Commit 3ee56c2 changed an ENOTSUP return value
in one location to ENOTSUPP to fix user programs seeing an invalid ioctl()
error code.  However, use of ENOTSUP is widespread in the zfs module.  Instead
of changing all of those uses, we fixed the ENOTSUP definition in the SPL to be
consistent with user space.  The changed return value in the above commit is
therefore no longer needed, so this commit reverses it to maintain consistency.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
  • Loading branch information
nedbass authored and behlendorf committed Nov 10, 2010
1 parent 8c3ab23 commit b04cffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/zfs_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3291,7 +3291,7 @@ zfs_ioc_rollback(zfs_cmd_t *zc)
dsl_dataset_rele(ds, FTAG);
return (error);
#else
return (EOPNOTSUPP);
return (ENOTSUP);
#endif /* HAVE_ZPL */
}

Expand Down

0 comments on commit b04cffc

Please sign in to comment.