mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-01-31 00:59:30 +00:00
Merge pull request #84 from ceph/devel
Sync rhs/ceph:devel with ceph/ceph:devel
This commit is contained in:
commit
1cd6b4a4d0
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user