storage_conf.h 17.3 KB
Newer Older
1 2 3
/*
 * storage_conf.h: config handling for storage driver
 *
4
 * Copyright (C) 2006-2008, 2010-2014 Red Hat, Inc.
5 6 7 8 9 10 11 12 13 14 15 16 17
 * Copyright (C) 2006-2008 Daniel P. Berrange
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
18
 * License along with this library.  If not, see
O
Osier Yang 已提交
19
 * <http://www.gnu.org/licenses/>.
20 21 22 23 24
 *
 * Author: Daniel P. Berrange <berrange@redhat.com>
 */

#ifndef __VIR_STORAGE_CONF_H__
25
# define __VIR_STORAGE_CONF_H__
26

27
# include "internal.h"
28
# include "virstorageencryption.h"
E
Eric Blake 已提交
29
# include "virstoragefile.h"
30
# include "virbitmap.h"
31
# include "virthread.h"
32

33
# include <libxml/tree.h>
34

35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
/*
 * How the volume's data is stored on underlying
 * physical devices - can potentially span many
 * devices in LVM case.
 */
typedef struct _virStorageVolSourceExtent virStorageVolSourceExtent;
typedef virStorageVolSourceExtent *virStorageVolSourceExtentPtr;
struct _virStorageVolSourceExtent {
    char *path;
    unsigned long long start;
    unsigned long long end;
};

typedef struct _virStorageVolSource virStorageVolSource;
typedef virStorageVolSource *virStorageVolSourcePtr;
struct _virStorageVolSource {
    int nextent;
    virStorageVolSourceExtentPtr extents;
53

54
    int partType; /* virStorageVolTypeDisk, only used by disk
55
                   * backend for partition type creation */
56 57 58 59 60 61 62 63
};


typedef struct _virStorageVolDef virStorageVolDef;
typedef virStorageVolDef *virStorageVolDefPtr;
struct _virStorageVolDef {
    char *name;
    char *key;
64
    int type; /* virStorageVolType */
65

66
    unsigned int building;
67
    unsigned int in_use;
68

69
    virStorageVolSource source;
70 71
    virStorageSource target;
    virStorageSource backingStore;
72 73
};

74 75 76
typedef struct _virStorageVolDefList virStorageVolDefList;
typedef virStorageVolDefList *virStorageVolDefListPtr;
struct _virStorageVolDefList {
77
    size_t count;
78 79
    virStorageVolDefPtr *objs;
};
80

81
VIR_ENUM_DECL(virStorageVol)
82

83
typedef enum {
84
    VIR_STORAGE_POOL_DIR,      /* Local directory */
85 86 87 88 89 90
    VIR_STORAGE_POOL_FS,       /* Local filesystem */
    VIR_STORAGE_POOL_NETFS,    /* Networked filesystem - eg NFS, GFS, etc */
    VIR_STORAGE_POOL_LOGICAL,  /* Logical volume groups / volumes */
    VIR_STORAGE_POOL_DISK,     /* Disk partitions */
    VIR_STORAGE_POOL_ISCSI,    /* iSCSI targets */
    VIR_STORAGE_POOL_SCSI,     /* SCSI HBA */
D
Dave Allan 已提交
91
    VIR_STORAGE_POOL_MPATH,    /* Multipath devices */
92
    VIR_STORAGE_POOL_RBD,      /* RADOS Block Device */
93
    VIR_STORAGE_POOL_SHEEPDOG, /* Sheepdog device */
94
    VIR_STORAGE_POOL_GLUSTER,  /* Gluster device */
95 96

    VIR_STORAGE_POOL_LAST,
97
} virStoragePoolType;
98

99
VIR_ENUM_DECL(virStoragePool)
100

101
typedef enum {
102 103 104 105
    VIR_STORAGE_DEVICE_TYPE_DISK = 0x00,
    VIR_STORAGE_DEVICE_TYPE_ROM = 0x05,

    VIR_STORAGE_DEVICE_TYPE_LAST,
106
} virStoragePoolDeviceType;
107

108

109
typedef enum {
110 111
    VIR_STORAGE_POOL_AUTH_NONE,
    VIR_STORAGE_POOL_AUTH_CHAP,
112
    VIR_STORAGE_POOL_AUTH_CEPHX,
113 114

    VIR_STORAGE_POOL_AUTH_LAST,
115
} virStoragePoolAuthType;
116
VIR_ENUM_DECL(virStoragePoolAuthType)
117

118 119 120 121 122 123 124 125
typedef struct _virStoragePoolAuthSecret virStoragePoolAuthSecret;
typedef virStoragePoolAuthSecret *virStoragePoolAuthSecretPtr;
struct _virStoragePoolAuthSecret {
    unsigned char uuid[VIR_UUID_BUFLEN];
    char *usage;
    bool uuidUsable;
};

126 127 128
typedef struct _virStoragePoolAuthChap virStoragePoolAuthChap;
typedef virStoragePoolAuthChap *virStoragePoolAuthChapPtr;
struct _virStoragePoolAuthChap {
129 130
    char *username;
    virStoragePoolAuthSecret secret;
131 132
};

133 134 135 136
typedef struct _virStoragePoolAuthCephx virStoragePoolAuthCephx;
typedef virStoragePoolAuthCephx *virStoragePoolAuthCephxPtr;
struct _virStoragePoolAuthCephx {
    char *username;
137
    virStoragePoolAuthSecret secret;
138
};
139 140 141 142 143 144 145 146 147 148 149 150

/*
 * For remote pools, info on how to reach the host
 */
typedef struct _virStoragePoolSourceHost virStoragePoolSourceHost;
typedef virStoragePoolSourceHost *virStoragePoolSourceHostPtr;
struct _virStoragePoolSourceHost {
    char *name;
    int port;
};


151
/*
152 153
 * For MSDOS partitions, the free area is important when
 * creating logical partitions
154
 */
155
typedef enum {
156 157 158 159
    VIR_STORAGE_FREE_NONE = 0,
    VIR_STORAGE_FREE_NORMAL,
    VIR_STORAGE_FREE_LOGICAL,
    VIR_STORAGE_FREE_LAST
160
} virStorageFreeType;
161

162 163 164 165 166 167 168 169
/*
 * Available extents on the underlying storage
 */
typedef struct _virStoragePoolSourceDeviceExtent virStoragePoolSourceDeviceExtent;
typedef virStoragePoolSourceDeviceExtent *virStoragePoolSourceDeviceExtentPtr;
struct _virStoragePoolSourceDeviceExtent {
    unsigned long long start;
    unsigned long long end;
170
    int type; /* virStorageFreeType */
171 172
};

D
David Allan 已提交
173 174
typedef struct _virStoragePoolSourceInitiatorAttr virStoragePoolSourceInitiatorAttr;
struct _virStoragePoolSourceInitiatorAttr {
175
    char *iqn; /* Initiator IQN */
D
David Allan 已提交
176 177
};

178 179 180 181 182 183 184 185 186 187
/*
 * Pools can be backed by one or more devices, and some
 * allow us to track free space on underlying devices.
 */
typedef struct _virStoragePoolSourceDevice virStoragePoolSourceDevice;
typedef virStoragePoolSourceDevice *virStoragePoolSourceDevicePtr;
struct _virStoragePoolSourceDevice {
    int nfreeExtent;
    virStoragePoolSourceDeviceExtentPtr freeExtents;
    char *path;
188 189
    int format; /* Pool specific source format */

190
    /* When the source device is a physical disk,
191 192
     * the geometry data is needed
     */
193
    struct _geometry {
P
Peter Krempa 已提交
194
        int cylinders;
195 196 197
        int heads;
        int sectors;
    } geometry;
198 199
};

200
typedef enum {
201 202 203
    VIR_STORAGE_POOL_SOURCE_ADAPTER_TYPE_DEFAULT = 0,
    VIR_STORAGE_POOL_SOURCE_ADAPTER_TYPE_SCSI_HOST,
    VIR_STORAGE_POOL_SOURCE_ADAPTER_TYPE_FC_HOST,
204

205
    VIR_STORAGE_POOL_SOURCE_ADAPTER_TYPE_LAST,
206
} virStoragePoolSourceAdapterType;
207 208 209 210
VIR_ENUM_DECL(virStoragePoolSourceAdapterType)

typedef struct _virStoragePoolSourceAdapter virStoragePoolSourceAdapter;
struct _virStoragePoolSourceAdapter {
211
    int type; /* virStoragePoolSourceAdapterType */
212 213 214 215 216 217 218 219 220 221

    union {
        char *name;
        struct {
            char *parent;
            char *wwnn;
            char *wwpn;
        } fchost;
    } data;
};
222 223 224 225

typedef struct _virStoragePoolSource virStoragePoolSource;
typedef virStoragePoolSource *virStoragePoolSourcePtr;
struct _virStoragePoolSource {
226 227 228
    /* An optional (maybe multiple) host(s) */
    size_t nhost;
    virStoragePoolSourceHostPtr hosts;
229 230

    /* And either one or more devices ... */
231
    size_t ndevice;
232 233 234 235 236 237
    virStoragePoolSourceDevicePtr devices;

    /* Or a directory */
    char *dir;

    /* Or an adapter */
238
    virStoragePoolSourceAdapter adapter;
239

240 241 242
    /* Or a name */
    char *name;

D
David Allan 已提交
243 244 245
    /* Initiator IQN */
    virStoragePoolSourceInitiatorAttr initiator;

246 247 248
    int authType;       /* virStoragePoolAuthType */
    union {
        virStoragePoolAuthChap chap;
249
        virStoragePoolAuthCephx cephx;
250 251
    } auth;

252 253 254 255 256 257
    /* Vendor of the source */
    char *vendor;

    /* Product name of the source*/
    char *product;

258 259 260 261
    /* Pool type specific format such as filesystem type,
     * or lvm version, etc.
     */
    int format;
262 263 264 265 266
};

typedef struct _virStoragePoolTarget virStoragePoolTarget;
typedef virStoragePoolTarget *virStoragePoolTargetPtr;
struct _virStoragePoolTarget {
267 268
    char *path; /* Optional local filesystem mapping */
    virStoragePerms perms; /* Default permissions for volumes */
269 270 271 272 273 274 275
};

typedef struct _virStoragePoolDef virStoragePoolDef;
typedef virStoragePoolDef *virStoragePoolDefPtr;
struct _virStoragePoolDef {
    char *name;
    unsigned char uuid[VIR_UUID_BUFLEN];
276
    int type; /* virStoragePoolType */
277

E
Eric Blake 已提交
278 279 280
    unsigned long long allocation; /* bytes */
    unsigned long long capacity; /* bytes */
    unsigned long long available; /* bytes */
281 282 283 284 285 286 287 288 289

    virStoragePoolSource source;
    virStoragePoolTarget target;
};

typedef struct _virStoragePoolObj virStoragePoolObj;
typedef virStoragePoolObj *virStoragePoolObjPtr;

struct _virStoragePoolObj {
290
    virMutex lock;
291

292 293 294 295
    char *configFile;
    char *autostartLink;
    int active;
    int autostart;
296
    unsigned int asyncjobs;
297 298 299 300

    virStoragePoolDefPtr def;
    virStoragePoolDefPtr newDef;

301 302
    virStorageVolDefList volumes;
};
303

304 305 306
typedef struct _virStoragePoolObjList virStoragePoolObjList;
typedef virStoragePoolObjList *virStoragePoolObjListPtr;
struct _virStoragePoolObjList {
307
    size_t count;
308
    virStoragePoolObjPtr *objs;
309 310 311 312 313 314
};

typedef struct _virStorageDriverState virStorageDriverState;
typedef virStorageDriverState *virStorageDriverStatePtr;

struct _virStorageDriverState {
315
    virMutex lock;
316

317 318
    virStoragePoolObjList pools;

319 320
    char *configDir;
    char *autostartDir;
321
    bool privileged;
322 323
};

324 325 326
typedef struct _virStoragePoolSourceList virStoragePoolSourceList;
typedef virStoragePoolSourceList *virStoragePoolSourceListPtr;
struct _virStoragePoolSourceList {
327
    int type;
328 329 330
    unsigned int nsources;
    virStoragePoolSourcePtr sources;
};
331

332 333
typedef bool (*virStoragePoolObjListFilter)(virConnectPtr conn,
                                            virStoragePoolDefPtr def);
334

335 336 337
static inline int
virStoragePoolObjIsActive(virStoragePoolObjPtr pool)
{
338 339 340
    return pool->active;
}

341
int virStoragePoolLoadAllConfigs(virStoragePoolObjListPtr pools,
342 343
                                 const char *configDir,
                                 const char *autostartDir);
344

345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363
virStoragePoolObjPtr
virStoragePoolObjFindByUUID(virStoragePoolObjListPtr pools,
                            const unsigned char *uuid);
virStoragePoolObjPtr
virStoragePoolObjFindByName(virStoragePoolObjListPtr pools,
                            const char *name);
virStoragePoolObjPtr
virStoragePoolSourceFindDuplicateDevices(virStoragePoolObjPtr pool,
                                         virStoragePoolDefPtr def);

virStorageVolDefPtr
virStorageVolDefFindByKey(virStoragePoolObjPtr pool,
                          const char *key);
virStorageVolDefPtr
virStorageVolDefFindByPath(virStoragePoolObjPtr pool,
                           const char *path);
virStorageVolDefPtr
virStorageVolDefFindByName(virStoragePoolObjPtr pool,
                           const char *name);
364 365 366

void virStoragePoolObjClearVols(virStoragePoolObjPtr pool);

367 368 369
virStoragePoolDefPtr virStoragePoolDefParseString(const char *xml);
virStoragePoolDefPtr virStoragePoolDefParseFile(const char *filename);
virStoragePoolDefPtr virStoragePoolDefParseNode(xmlDocPtr xml,
370
                                                xmlNodePtr root);
371
char *virStoragePoolDefFormat(virStoragePoolDefPtr def);
372

373 374 375 376 377 378 379 380 381 382
virStorageVolDefPtr
virStorageVolDefParseString(virStoragePoolDefPtr pool,
                            const char *xml);
virStorageVolDefPtr
virStorageVolDefParseFile(virStoragePoolDefPtr pool,
                          const char *filename);
virStorageVolDefPtr
virStorageVolDefParseNode(virStoragePoolDefPtr pool,
                          xmlDocPtr xml,
                          xmlNodePtr root);
383
char *virStorageVolDefFormat(virStoragePoolDefPtr pool,
384 385
                             virStorageVolDefPtr def);

386 387 388
virStoragePoolObjPtr
virStoragePoolObjAssignDef(virStoragePoolObjListPtr pools,
                           virStoragePoolDefPtr def);
389

390
int virStoragePoolObjSaveDef(virStorageDriverStatePtr driver,
391 392
                             virStoragePoolObjPtr pool,
                             virStoragePoolDefPtr def);
393
int virStoragePoolObjDeleteDef(virStoragePoolObjPtr pool);
394 395

void virStorageVolDefFree(virStorageVolDefPtr def);
396
void virStoragePoolSourceClear(virStoragePoolSourcePtr source);
397
void virStoragePoolSourceDeviceClear(virStoragePoolSourceDevicePtr dev);
398
void virStoragePoolSourceFree(virStoragePoolSourcePtr source);
399 400
void virStoragePoolDefFree(virStoragePoolDefPtr def);
void virStoragePoolObjFree(virStoragePoolObjPtr pool);
401 402
void virStoragePoolObjListFree(virStoragePoolObjListPtr pools);
void virStoragePoolObjRemove(virStoragePoolObjListPtr pools,
403 404
                             virStoragePoolObjPtr pool);

405
virStoragePoolSourcePtr
406
virStoragePoolDefParseSourceString(const char *srcSpec,
407 408
                                   int pool_type);
virStoragePoolSourcePtr
409 410
virStoragePoolSourceListNewSource(virStoragePoolSourceListPtr list);
char *virStoragePoolSourceListFormat(virStoragePoolSourceListPtr def);
411

412 413 414 415
int virStoragePoolObjIsDuplicate(virStoragePoolObjListPtr pools,
                                 virStoragePoolDefPtr def,
                                 unsigned int check_active);

416 417 418
int virStoragePoolSourceFindDuplicate(virStoragePoolObjListPtr pools,
                                      virStoragePoolDefPtr def);

D
Daniel P. Berrange 已提交
419 420 421
void virStoragePoolObjLock(virStoragePoolObjPtr obj);
void virStoragePoolObjUnlock(virStoragePoolObjPtr obj);

422

423
typedef enum {
424 425 426 427 428 429 430 431 432 433 434 435
    VIR_STORAGE_POOL_FS_AUTO = 0,
    VIR_STORAGE_POOL_FS_EXT2,
    VIR_STORAGE_POOL_FS_EXT3,
    VIR_STORAGE_POOL_FS_EXT4,
    VIR_STORAGE_POOL_FS_UFS,
    VIR_STORAGE_POOL_FS_ISO,
    VIR_STORAGE_POOL_FS_UDF,
    VIR_STORAGE_POOL_FS_GFS,
    VIR_STORAGE_POOL_FS_GFS2,
    VIR_STORAGE_POOL_FS_VFAT,
    VIR_STORAGE_POOL_FS_HFSPLUS,
    VIR_STORAGE_POOL_FS_XFS,
J
Jim Fehlig 已提交
436
    VIR_STORAGE_POOL_FS_OCFS2,
437
    VIR_STORAGE_POOL_FS_LAST,
438
} virStoragePoolFormatFileSystem;
439
VIR_ENUM_DECL(virStoragePoolFormatFileSystem)
440

441
typedef enum {
442 443
    VIR_STORAGE_POOL_NETFS_AUTO = 0,
    VIR_STORAGE_POOL_NETFS_NFS,
444
    VIR_STORAGE_POOL_NETFS_GLUSTERFS,
445
    VIR_STORAGE_POOL_NETFS_CIFS,
446
    VIR_STORAGE_POOL_NETFS_LAST,
447
} virStoragePoolFormatFileSystemNet;
448
VIR_ENUM_DECL(virStoragePoolFormatFileSystemNet)
449

450
typedef enum {
451 452 453 454 455 456 457 458 459 460
    VIR_STORAGE_POOL_DISK_UNKNOWN = 0,
    VIR_STORAGE_POOL_DISK_DOS = 1,
    VIR_STORAGE_POOL_DISK_DVH,
    VIR_STORAGE_POOL_DISK_GPT,
    VIR_STORAGE_POOL_DISK_MAC,
    VIR_STORAGE_POOL_DISK_BSD,
    VIR_STORAGE_POOL_DISK_PC98,
    VIR_STORAGE_POOL_DISK_SUN,
    VIR_STORAGE_POOL_DISK_LVM2,
    VIR_STORAGE_POOL_DISK_LAST,
461
} virStoragePoolFormatDisk;
462
VIR_ENUM_DECL(virStoragePoolFormatDisk)
463

464
typedef enum {
465 466 467
    VIR_STORAGE_POOL_LOGICAL_UNKNOWN = 0,
    VIR_STORAGE_POOL_LOGICAL_LVM2 = 1,
    VIR_STORAGE_POOL_LOGICAL_LAST,
468
} virStoragePoolFormatLogical;
469
VIR_ENUM_DECL(virStoragePoolFormatLogical)
470 471

/*
472
 * XXX: these are basically partition types.
473
 *
474 475 476
 * fdisk has a bazillion partition ID types parted has
 * practically none, and splits the * info across 3
 * different attributes.
477 478 479
 *
 * So this is a semi-generic set
 */
480
typedef enum {
481 482 483 484 485 486 487 488 489
    VIR_STORAGE_VOL_DISK_NONE = 0,
    VIR_STORAGE_VOL_DISK_LINUX,
    VIR_STORAGE_VOL_DISK_FAT16,
    VIR_STORAGE_VOL_DISK_FAT32,
    VIR_STORAGE_VOL_DISK_LINUX_SWAP,
    VIR_STORAGE_VOL_DISK_LINUX_LVM,
    VIR_STORAGE_VOL_DISK_LINUX_RAID,
    VIR_STORAGE_VOL_DISK_EXTENDED,
    VIR_STORAGE_VOL_DISK_LAST,
490
} virStorageVolFormatDisk;
491
VIR_ENUM_DECL(virStorageVolFormatDisk)
492

493
typedef enum {
494 495 496 497 498
    VIR_STORAGE_VOL_DISK_TYPE_NONE = 0,
    VIR_STORAGE_VOL_DISK_TYPE_PRIMARY,
    VIR_STORAGE_VOL_DISK_TYPE_LOGICAL,
    VIR_STORAGE_VOL_DISK_TYPE_EXTENDED,
    VIR_STORAGE_VOL_DISK_TYPE_LAST,
499
} virStorageVolTypeDisk;
500

501
/*
502 503
 * Mapping of Parted fs-types MUST be kept in the
 * same order as virStorageVolFormatDisk
504
 */
505
typedef enum {
506 507 508 509 510 511 512 513 514
    VIR_STORAGE_PARTED_FS_TYPE_NONE = 0,
    VIR_STORAGE_PARTED_FS_TYPE_LINUX,
    VIR_STORAGE_PARTED_FS_TYPE_FAT16,
    VIR_STORAGE_PARTED_FS_TYPE_FAT32,
    VIR_STORAGE_PARTED_FS_TYPE_LINUX_SWAP,
    VIR_STORAGE_PARTED_FS_TYPE_LINUX_LVM,
    VIR_STORAGE_PARTED_FS_TYPE_LINUX_RAID,
    VIR_STORAGE_PARTED_FS_TYPE_EXTENDED,
    VIR_STORAGE_PARTED_FS_TYPE_LAST,
515
} virStoragePartedFsType;
516
VIR_ENUM_DECL(virStoragePartedFsType)
517

518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539
# define VIR_CONNECT_LIST_STORAGE_POOLS_FILTERS_ACTIVE   \
                (VIR_CONNECT_LIST_STORAGE_POOLS_ACTIVE | \
                 VIR_CONNECT_LIST_STORAGE_POOLS_INACTIVE)

# define VIR_CONNECT_LIST_STORAGE_POOLS_FILTERS_PERSISTENT   \
                (VIR_CONNECT_LIST_STORAGE_POOLS_PERSISTENT | \
                 VIR_CONNECT_LIST_STORAGE_POOLS_TRANSIENT)

# define VIR_CONNECT_LIST_STORAGE_POOLS_FILTERS_AUTOSTART    \
                (VIR_CONNECT_LIST_STORAGE_POOLS_AUTOSTART |  \
                 VIR_CONNECT_LIST_STORAGE_POOLS_NO_AUTOSTART)

# define VIR_CONNECT_LIST_STORAGE_POOLS_FILTERS_POOL_TYPE  \
                (VIR_CONNECT_LIST_STORAGE_POOLS_DIR      | \
                 VIR_CONNECT_LIST_STORAGE_POOLS_FS       | \
                 VIR_CONNECT_LIST_STORAGE_POOLS_NETFS    | \
                 VIR_CONNECT_LIST_STORAGE_POOLS_LOGICAL  | \
                 VIR_CONNECT_LIST_STORAGE_POOLS_DISK     | \
                 VIR_CONNECT_LIST_STORAGE_POOLS_ISCSI    | \
                 VIR_CONNECT_LIST_STORAGE_POOLS_SCSI     | \
                 VIR_CONNECT_LIST_STORAGE_POOLS_MPATH    | \
                 VIR_CONNECT_LIST_STORAGE_POOLS_RBD      | \
540 541
                 VIR_CONNECT_LIST_STORAGE_POOLS_SHEEPDOG | \
                 VIR_CONNECT_LIST_STORAGE_POOLS_GLUSTER)
542 543 544 545 546 547 548

# define VIR_CONNECT_LIST_STORAGE_POOLS_FILTERS_ALL                  \
                (VIR_CONNECT_LIST_STORAGE_POOLS_FILTERS_ACTIVE     | \
                 VIR_CONNECT_LIST_STORAGE_POOLS_FILTERS_PERSISTENT | \
                 VIR_CONNECT_LIST_STORAGE_POOLS_FILTERS_AUTOSTART  | \
                 VIR_CONNECT_LIST_STORAGE_POOLS_FILTERS_POOL_TYPE)

549 550 551 552 553
int virStoragePoolObjListExport(virConnectPtr conn,
                                virStoragePoolObjList poolobjs,
                                virStoragePoolPtr **pools,
                                virStoragePoolObjListFilter filter,
                                unsigned int flags);
554

555
#endif /* __VIR_STORAGE_CONF_H__ */