]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: require filter for client/session evict command
authorneeraj pratap singh <neerajpratapsingh@li-ff7f0d4c-3462-11b2-a85c-d4004c0fa1a0.ibm.com>
Tue, 7 Nov 2023 10:44:54 +0000 (16:14 +0530)
committerneeraj pratap singh <neerajpratapsingh@li-ff7f0d4c-3462-11b2-a85c-d4004c0fa1a0.ibm.com>
Wed, 24 Jul 2024 04:00:45 +0000 (09:30 +0530)
commitef712ceecd018fc3d407b5f9a4f4ffd537c657f6
tree27386231cca130c0cadbf1cd951401648aeef4c1
parente2a3573c0fff4120a4b02ea9bd8091f8024b9a64
mds: require filter for client/session evict command

This commit fixes the issues in client/session evict command
using below solutions:
(1) client evict without filter is forbidden
(2) SessionFilter::parse is modified to support id=* (id=0 is not allowed)
(3) Invalid id error is handled
User can use client evict id=* to evict all clients.

Fixes: https://tracker.ceph.com/issues/58619
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
(cherry picked from commit 0ef5941a2e79feeae79a705080b57d410fa38136)
src/mds/MDSDaemon.cc
src/mds/MDSRank.cc
src/mds/SessionMap.cc