Merge pull request #84 from ceph/devel

Sync rhs/ceph:devel with ceph/ceph:devel
This commit is contained in:
OpenShift Merge Robot 2022-03-04 01:14:53 -05:00 committed by GitHub
commit 1cd6b4a4d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,11 +127,11 @@ func (rsns *ReclaimSpaceNodeServer) NodeReclaimSpace(
return nil, status.Error(codes.Unimplemented, "multi-node space reclaim is not supported")
}
cmd := "fstrim"
if isBlock {
cmd = "blkdiscard"
return nil, status.Error(codes.Unimplemented, "block-mode space reclaim is not supported")
}
cmd := "fstrim"
_, stderr, err := util.ExecCommand(ctx, cmd, path)
if err != nil {
return nil, status.Errorf(