]> xenbits.xensource.com Git - libvirt.git/commit
storage: ZFS support
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 21 Jul 2014 14:38:42 +0000 (18:38 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Tue, 12 Aug 2014 15:40:20 +0000 (19:40 +0400)
commit0257d06ba41af075386eb43987f95d445ee895d4
tree29b55d6fe7eb3f0496940efb9c46a8a3517dddf8
parent1b7c2c549e3d104da469cf1fd03fb62a41cc99af
storage: ZFS support

Implement ZFS storage backend driver. Currently supported
only on FreeBSD because of ZFS limitations on Linux.

Features supported:

 - pool-start, pool-stop
 - pool-info
 - vol-list
 - vol-create / vol-delete

Pool definition looks like that:

 <pool type='zfs'>
  <name>myzfspool</name>
  <source>
    <name>actualpoolname</name>
  </source>
 </pool>

The 'actualpoolname' value is a name of the pool on the system,
such as shown by 'zpool list' command. Target makes no sense
here because volumes path is always /dev/zvol/$poolname/$volname.

User has to create a pool on his own, this driver doesn't
support pool creation currently.

A volume could be used with Qemu by adding an entry like this:

    <disk type='volume' device='disk'>
      <driver name='qemu' type='raw'/>
      <source pool='myzfspool' volume='vol5'/>
      <target dev='hdc' bus='ide'/>
    </disk>
14 files changed:
configure.ac
docs/schemas/storagepool.rng
docs/storage.html.in
include/libvirt/libvirt.h.in
po/POTFILES.in
src/Makefile.am
src/conf/storage_conf.c
src/conf/storage_conf.h
src/qemu/qemu_conf.c
src/storage/storage_backend.c
src/storage/storage_backend_zfs.c [new file with mode: 0644]
src/storage/storage_backend_zfs.h [new file with mode: 0644]
src/storage/storage_driver.c
tools/virsh-pool.c