]> git.apps.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>
Mon, 22 Jul 2024 15:22:34 +0000 (20:52 +0530)
commit4f8dee4241d98ab3dc17d48bf3924c1e9620c46c
tree0d77abf41d62b59fe69ec8d5dd6869f4f5a7a25e
parent9cc61fbd5592568c0f581e851963d29430f21a3a
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