diff options
author | Sage Weil <sage.weil@dreamhost.com> | 2011-04-17 21:58:27 -0700 |
---|---|---|
committer | Sage Weil <sage.weil@dreamhost.com> | 2011-04-17 21:58:27 -0700 |
commit | d7789218886ab1166b5786a9e7b3b39f213ba049 (patch) | |
tree | 98a4b28d8a41f3b93e5507e41023f947a79f42c9 /src/mount | |
parent | d21bdd6e29d8a68952ca5479b2f06167bff625d9 (diff) | |
download | ceph-d7789218886ab1166b5786a9e7b3b39f213ba049.tar.gz |
mount.ceph: behave when CONFIG_KEYS is not compiled in
In that case we get ENOSYS. This also implies an old version of the client
and that we should fall back.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Diffstat (limited to 'src/mount')
-rwxr-xr-x | src/mount/mount.ceph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mount/mount.ceph.c b/src/mount/mount.ceph.c index b86020a2d30..97578363135 100755 --- a/src/mount/mount.ceph.c +++ b/src/mount/mount.ceph.c @@ -368,7 +368,7 @@ static char *parse_options(const char *data, int *filesys_flags) } serial = add_key("ceph", name, payload, sizeof(payload), KEY_SPEC_USER_KEYRING); if (serial < 0) { - if (errno == ENODEV) { + if (errno == ENODEV || errno == ENOSYS) { /* running against older kernel; fall back to secret= in options */ if (pos) pos = safe_cat(&out, &out_len, pos, ","); |