]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: s/ENOSYS/ENOTSUP/ 1181/head
authorLoic Dachary <loic@dachary.org>
Tue, 4 Feb 2014 11:55:19 +0000 (12:55 +0100)
committerLoic Dachary <loic@dachary.org>
Fri, 7 Feb 2014 11:41:42 +0000 (12:41 +0100)
commit302fc924fe201cbbea2144ae2531a24959c38f78
tree38b8394703a8c0c9ff3570b59dfa8a744504babe
parent42a64e19b7a06c1b3e0fd40e2d9c572103e3e426
mon: s/ENOSYS/ENOTSUP/

On Linux ENOTSUP is remapped
/usr/include/x86_64-linux-gnu/bits/errno.h

    /* Linux has no ENOTSUP error code.  */
    # define ENOTSUP EOPNOTSUPP

and should have different values on other operating systems. On Ubuntu
precise the string returned when translating the error value of ENOTSUP
or EOPNOTSUPP is always EOPNOTSUPP but on Ubuntu saucy it is always
ENOTSUP.

Replace ENOSYS with ENOTSUP because the expected semantic is very
similar and modify the test to not check on the string translation of
the error.

Rework the check_response shell function to optionaly check the return
code. The erasure coded pool size change test verifies the error message
only but not the error code.

Signed-off-by: Loic Dachary <loic@dachary.org>
qa/workunits/cephtool/test.sh
src/mon/OSDMonitor.cc