]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
list: Use virConnectListAllStoragePools in virsh
authorOsier Yang <jyang@redhat.com>
Wed, 5 Sep 2012 06:36:33 +0000 (14:36 +0800)
committerOsier Yang <jyang@redhat.com>
Thu, 6 Sep 2012 14:09:49 +0000 (22:09 +0800)
commit93a346d353c59252738f7da88a8de7fb0f1eeb67
treec7763c72b94fa592c3272bee795503e5ed865680
parentfc122e1a40544fd9266b7f6291c20be08d858b03
list: Use virConnectListAllStoragePools in virsh

tools/virsh-pool.c:
  * vshStoragePoolSorter to sort the pool list by pool name.

  * struct vshStoragePoolList to present the pool list, pool info
    is collected by list->poolinfo if 'details' is specified by
    user.

  * vshStoragePoolListFree to free the pool list

  * vshStoragePoolListCollect to collect the pool list, new API
    virStorageListAllPools is tried first, if it's not supported,
    fall back to older APIs.

  * New options --persistent, --transient, --autostart, --no-autostart
    and --type for pool-list. --persistent or --transient is to filter
    the returned pool list by whether the pool is persistent or not.
    --autostart or --no-autostart is to filter the returned pool list
    by whether the pool is autostarting or not. --type is to filter
    the pools by pool types. E.g.

    % virsh pool-list --all --persistent --type dir,disk

tools/virsh.pod:
   * Add documentations for the new options.
tools/virsh-pool.c
tools/virsh.pod