Revision 9b94905f scripts/gnt-node

b/scripts/gnt-node
458 458
  return 0
459 459

  
460 460

  
461
def ListPhysicalVolumes(opts, args):
461
def ListStorage(opts, args):
462 462
  """List physical volumes on node(s).
463 463

  
464 464
  @param opts: the command line options selected by the user
......
530 530
  return 0
531 531

  
532 532

  
533
def ModifyVolume(opts, args):
533
def ModifyStorage(opts, args):
534 534
  """Modify storage volume on a node.
535 535

  
536 536
  @param opts: the command line options selected by the user
......
557 557
    SubmitOpCode(op)
558 558

  
559 559

  
560
def RepairVolume(opts, args):
560
def RepairStorage(opts, args):
561 561
  """Repairs a storage volume on a node.
562 562

  
563 563
  @param opts: the command line options selected by the user
......
667 667
    ListVolumes, [ArgNode()],
668 668
    [NOHDR_OPT, SEP_OPT, USEUNITS_OPT, FIELDS_OPT],
669 669
    "[<node_name>...]", "List logical volumes on node(s)"),
670
  'physical-volumes': (
671
    ListPhysicalVolumes, ARGS_MANY_NODES,
670
  'list-storage': (
671
    ListStorage, ARGS_MANY_NODES,
672 672
    [NOHDR_OPT, SEP_OPT, USEUNITS_OPT, FIELDS_OPT, _STORAGE_TYPE_OPT],
673 673
    "[<node_name>...]", "List physical volumes on node(s)"),
674
  'modify-volume': (
675
    ModifyVolume,
674
  'modify-storage': (
675
    ModifyStorage,
676 676
    [ArgNode(min=1, max=1),
677 677
     ArgChoice(min=1, max=1, choices=_MODIFIABLE_STORAGE_TYPES),
678 678
     ArgFile(min=1, max=1)],
679 679
    [ALLOCATABLE_OPT],
680 680
    "<node_name> <storage_type> <name>", "Modify storage volume on a node"),
681
  'repair-volume': (
682
    RepairVolume,
681
  'repair-storage': (
682
    RepairStorage,
683 683
    [ArgNode(min=1, max=1),
684 684
     ArgChoice(min=1, max=1, choices=_REPAIRABLE_STORAGE_TYPES),
685 685
     ArgFile(min=1, max=1)],

Also available in: Unified diff