libvirt/src/storage
Osier Yang 27758859c7 storage: Add fs pool formatting
This patch adds the ability to make the filesystem for a filesystem
pool during a pool build.

The patch adds two new flags, no overwrite and overwrite, to control
when mkfs gets executed.  By default, the patch preserves the
current behavior, i.e., if no flags are specified, pool build on a
filesystem pool only makes the directory on which the filesystem
will be mounted.

If the no overwrite flag is specified, the target device is checked
to determine if a filesystem of the type specified in the pool is
present.  If a filesystem of that type is already present, mkfs is
not executed and the build call returns an error.  Otherwise, mkfs
is executed and any data present on the device is overwritten.

If the overwrite flag is specified, mkfs is always executed, and any
existing data on the target device is overwritten unconditionally.
2011-09-02 21:16:58 +08:00
..
parthelper.c Fix parted sector size assumption 2011-09-01 10:46:31 +01:00
storage_backend_disk.c storage: Fix incorrect error codes 2011-09-01 17:36:38 +08:00
storage_backend_disk.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend_fs.c storage: Add fs pool formatting 2011-09-02 21:16:58 +08:00
storage_backend_fs.h storage: Add fs pool formatting 2011-09-02 21:16:58 +08:00
storage_backend_iscsi.c build: rename files.h to virfile.h 2011-07-21 10:34:51 -06:00
storage_backend_iscsi.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend_logical.c storage: Fix incorrect error codes 2011-09-01 17:36:38 +08:00
storage_backend_logical.h Fix two out-of-date comments in LVM backend 2011-04-17 08:37:31 +02:00
storage_backend_mpath.c build: rename files.h to virfile.h 2011-07-21 10:34:51 -06:00
storage_backend_mpath.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend_scsi.c build: rename files.h to virfile.h 2011-07-21 10:34:51 -06:00
storage_backend_scsi.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend.c storage: Fix incorrect error codes 2011-09-01 17:36:38 +08:00
storage_backend.h storage: List directory volumes for dir/fs/netfs pools 2011-05-31 12:47:58 -04:00
storage_driver.c storage: Flush host cache after write 2011-08-19 11:10:31 +02:00
storage_driver.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00