]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: add " (blacklisted)" to session reject error string 37072/head
authorIlya Dryomov <idryomov@gmail.com>
Wed, 9 Sep 2020 19:10:06 +0000 (19:10 +0000)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 14 Sep 2020 21:14:04 +0000 (23:14 +0200)
commit67b7fa318a05cf71b8617dc0cf06a0c2fbd31e90
tree69fd73f5e1e2230819db6f72b19945811dad219d
parentfa53f1032fc2e3bdce437797a09676dff58426a3
mds: add " (blacklisted)" to session reject error string

Commit dfd01d765304 ("blacklist -> blocklist") introduced a
regression for recover_session=clean mode of the kernel client.
Unfortunately, one of the ways it detects blocklisting is by
parsing the error string in the session reject message:

3320                 if (err_str && strnstr(*p, "blacklisted", len))
3321                         *blacklisted = true;

Add a suitable substring to restore the functionality.  ceph-fuse
doesn't care, as it just logs this string.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/mds/Server.cc