Skip to content

Commit

Permalink
Fix namespace_resize_safe #499
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Indenbaum <[email protected]>
  • Loading branch information
Alexander Indenbaum committed Jul 10, 2024
1 parent c759f4f commit 6072d1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions control/grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1617,7 +1617,9 @@ def find_namespace_and_bdev_name(self, nqn, nsid, uuid, needs_lock, err_prefix):

def namespace_resize(self, request, context=None):
"""Resize a namespace."""
return self.execute_grpc_function(self.namespace_resize_safe, request, context)

def namespace_resize_safe(self, request, context=None):
peer_msg = self.get_peer_message(context)
nsid_msg = self.get_ns_id_message(request.nsid, request.uuid)
self.logger.info(f"Received request to resize namespace {nsid_msg}on {request.subsystem_nqn} to {request.new_size} MiB, context: {context}{peer_msg}")
Expand Down

0 comments on commit 6072d1d

Please sign in to comment.