2012-06-15 20:13:11 +04:00
%{?mingw_package_header}
2018-03-19 20:04:34 +03:00
# This spec file assumes you are building on a Fedora version
# that's still supported by the vendor. It may work on other distros
# or versions, but no effort will be made to ensure that going forward.
2021-05-05 20:30:46 +03:00
%define min_fedora 33
2018-03-19 20:04:34 +03:00
2012-06-15 20:13:11 +04:00
Name : mingw-libvirt
Version : @VERSION@
2019-01-21 15:55:15 +03:00
Release : 1%{?dist}
2012-06-15 20:13:11 +04:00
Summary : MinGW Windows libvirt virtualization library
License : LGPLv2+
2017-05-11 19:31:08 +03:00
URL : https://libvirt.org/
2017-05-11 19:28:00 +03:00
%if %(echo %{version} | grep -q "\.0$"; echo $?) == 1
%define mainturl stable_updates/
%endif
2017-05-11 19:31:08 +03:00
Source : https://libvirt.org/sources/%{?mainturl} libvirt-%{version} .tar.xz
2012-06-15 20:13:11 +04:00
BuildRequires : mingw32-filesystem >= 95
BuildRequires : mingw64-filesystem >= 95
BuildRequires : mingw32-gcc
BuildRequires : mingw64-gcc
BuildRequires : mingw32-binutils
BuildRequires : mingw64-binutils
2019-07-30 12:13:36 +03:00
BuildRequires : mingw32-glib2 >= 2.48
BuildRequires : mingw64-glib2 >= 2.48
2012-06-15 20:13:11 +04:00
BuildRequires : mingw32-libgpg-error
BuildRequires : mingw64-libgpg-error
BuildRequires : mingw32-libgcrypt
BuildRequires : mingw64-libgcrypt
BuildRequires : mingw32-gnutls
BuildRequires : mingw64-gnutls
BuildRequires : mingw32-gettext
BuildRequires : mingw64-gettext
BuildRequires : mingw32-libxml2
BuildRequires : mingw64-libxml2
BuildRequires : mingw32-portablexdr
BuildRequires : mingw64-portablexdr
2017-08-02 13:21:12 +03:00
BuildRequires : mingw32-dlfcn
BuildRequires : mingw64-dlfcn
2012-06-15 20:13:11 +04:00
BuildRequires : pkgconfig
# Need native version for msgfmt
BuildRequires : gettext
2017-09-04 14:42:46 +03:00
BuildRequires : libxslt
2018-03-19 20:06:09 +03:00
BuildRequires : python3
2017-08-02 12:51:36 +03:00
BuildRequires : perl-interpreter
2016-07-01 16:11:15 +03:00
BuildRequires : perl(Getopt::Long)
2020-12-02 14:29:25 +03:00
BuildRequires : meson
BuildRequires : ninja-build
2019-10-18 16:18:36 +03:00
BuildRequires : python3-docutils
2012-06-15 20:13:11 +04:00
BuildRequires : mingw32-libssh2
BuildRequires : mingw64-libssh2
BuildRequires : mingw32-curl
BuildRequires : mingw64-curl
2019-12-03 18:50:05 +03:00
BuildRequires : cpp
%if 0%{?fedora} || 0%{?rhel} > 7
BuildRequires : rpcgen
%endif
2012-06-15 20:13:11 +04:00
BuildArch : noarch
%description
MinGW Windows libvirt virtualization library.
# Mingw32
%package -n mingw32-libvirt
Summary : %{summary}
2021-08-02 13:52:51 +03:00
Obsoletes : mingw32-libvirt-static < 7.0.0
2012-06-15 20:13:11 +04:00
%description -n mingw32-libvirt
MinGW Windows libvirt virtualization library.
# Mingw64
%package -n mingw64-libvirt
Summary : %{summary}
2021-08-02 13:52:51 +03:00
Obsoletes : mingw64-libvirt-static < 7.0.0
2012-06-15 20:13:11 +04:00
%description -n mingw64-libvirt
MinGW Windows libvirt virtualization library.
%{?mingw_debug_package}
%prep
%setup -q -n libvirt-%{version}
%build
2021-05-11 18:19:51 +03:00
%if 0%{?fedora} >= %{min_fedora}
2021-05-11 18:16:36 +03:00
%define supported_platform 1
%else
%define supported_platform 0
%endif
2021-05-11 18:13:59 +03:00
%if ! %{supported_platform}
echo " T h i s R P M r e q u i r e s F e d o r a > = %{min_fedora} "
exit 1
2018-03-19 20:04:34 +03:00
%endif
2020-12-02 14:29:25 +03:00
%mingw_meson \
--auto-features=enabled \
-Ddriver_remote=enabled \
2021-05-27 21:57:57 +03:00
-Ddriver_test=enabled \
2020-12-02 14:29:25 +03:00
-Ddriver_esx=enabled \
-Dcurl=enabled \
-Ddocs=enabled \
-Dapparmor=disabled \
2021-05-27 16:20:24 +03:00
-Dapparmor_profiles=disabled \
2020-12-02 14:29:25 +03:00
-Dattr=disabled \
-Daudit=disabled \
-Dbash_completion=disabled \
-Dblkid=disabled \
-Dcapng=disabled \
-Ddriver_bhyve=disabled \
-Ddriver_hyperv=disabled \
-Ddriver_interface=disabled \
-Ddriver_libvirtd=disabled \
-Ddriver_libxl=disabled \
-Ddriver_lxc=disabled \
-Ddriver_network=disabled \
-Ddriver_openvz=disabled \
-Ddriver_qemu=disabled \
-Ddriver_secrets=disabled \
-Ddriver_vbox=disabled \
-Ddriver_vmware=disabled \
-Ddriver_vz=disabled \
-Ddtrace=disabled \
-Dexpensive_tests=enabled \
-Dfirewalld=disabled \
-Dfirewalld_zone=disabled \
-Dfuse=disabled \
-Dglusterfs=disabled \
-Dhost_validate=disabled \
-Dlibiscsi=disabled \
-Dlibnl=disabled \
-Dlibpcap=disabled \
-Dlibssh2=disabled \
-Dlibssh=disabled \
-Dlogin_shell=disabled \
-Dnetcf=disabled \
-Dnls=disabled \
-Dnss=disabled \
-Dnumactl=disabled \
-Dnumad=disabled \
-Dopenwsman=disabled \
-Dpciaccess=disabled \
-Dpm_utils=disabled \
-Dpolkit=disabled \
-Dreadline=disabled \
-Drpath=disabled \
-Dsanlock=disabled \
-Dsasl=disabled \
-Dsecdriver_apparmor=disabled \
-Dsecdriver_selinux=disabled \
-Dselinux=disabled \
-Dstorage_dir=disabled \
-Dstorage_disk=disabled \
-Dstorage_fs=disabled \
-Dstorage_gluster=disabled \
-Dstorage_iscsi_direct=disabled \
-Dstorage_iscsi=disabled \
-Dstorage_lvm=disabled \
-Dstorage_mpath=disabled \
-Dstorage_rbd=disabled \
-Dstorage_scsi=disabled \
-Dstorage_sheepdog=disabled \
-Dstorage_vstorage=disabled \
-Dstorage_zfs=disabled \
-Dsysctl_config=disabled \
-Dtests=disabled \
-Dudev=disabled \
-Dwireshark_dissector=disabled \
-Dyajl=disabled
%mingw_ninja
2012-06-15 20:13:11 +04:00
%install
2020-12-02 14:29:25 +03:00
%mingw_ninja_install
2012-06-15 20:13:11 +04:00
rm -rf $RPM_BUILD_ROOT %{mingw32_sysconfdir} /libvirt/nwfilter
rm -rf $RPM_BUILD_ROOT %{mingw64_sysconfdir} /libvirt/nwfilter
rm -rf $RPM_BUILD_ROOT %{mingw32_datadir} /doc/*
rm -rf $RPM_BUILD_ROOT %{mingw64_datadir} /doc/*
rm -rf $RPM_BUILD_ROOT %{mingw32_datadir} /gtk-doc/*
rm -rf $RPM_BUILD_ROOT %{mingw64_datadir} /gtk-doc/*
rm -rf $RPM_BUILD_ROOT %{mingw32_libexecdir} /libvirt_iohelper.exe
rm -rf $RPM_BUILD_ROOT %{mingw64_libexecdir} /libvirt_iohelper.exe
2013-01-05 03:36:57 +04:00
rm -rf $RPM_BUILD_ROOT %{mingw32_libexecdir} /libvirt-guests.sh
rm -rf $RPM_BUILD_ROOT %{mingw64_libexecdir} /libvirt-guests.sh
2012-06-15 20:13:11 +04:00
# Mingw32
%files -n mingw32-libvirt
%dir %{mingw32_sysconfdir} /libvirt/
%config (noreplace) %{mingw32_sysconfdir} /libvirt/libvirt.conf
2016-07-01 14:41:32 +03:00
%config (noreplace) %{mingw32_sysconfdir} /libvirt/libvirt-admin.conf
2012-06-15 20:13:11 +04:00
%{mingw32_bindir} /libvirt-0.dll
%{mingw32_bindir} /virsh.exe
2016-07-01 14:41:32 +03:00
%{mingw32_bindir} /virt-admin.exe
2012-06-15 20:13:11 +04:00
%{mingw32_bindir} /virt-xml-validate
%{mingw32_bindir} /virt-pki-validate
Introduce an LXC specific public API & library
This patch introduces support for LXC specific public APIs. In
common with what was done for QEMU, this creates a libvirt_lxc.so
library and libvirt/libvirt-lxc.h header file.
The actual APIs are
int virDomainLxcOpenNamespace(virDomainPtr domain,
int **fdlist,
unsigned int flags);
int virDomainLxcEnterNamespace(virDomainPtr domain,
unsigned int nfdlist,
int *fdlist,
unsigned int *noldfdlist,
int **oldfdlist,
unsigned int flags);
which provide a way to use the setns() system call to move the
calling process into the container's namespace. It is not
practical to write in a generically applicable manner. The
nearest that we could get to such an API would be an API which
allows to pass a command + argv to be executed inside a
container. Even if we had such a generic API, this LXC specific
API is still useful, because it allows the caller to maintain
the current process context, in particular any I/O streams they
have open.
NB the virDomainLxcEnterNamespace() API is special in that it
runs client side, so does not involve the internal driver API.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-12-21 17:15:19 +04:00
%{mingw32_bindir} /libvirt-lxc-0.dll
2012-06-15 20:13:11 +04:00
%{mingw32_bindir} /libvirt-qemu-0.dll
2016-07-01 14:41:32 +03:00
%{mingw32_bindir} /libvirt-admin-0.dll
2012-06-15 20:13:11 +04:00
%{mingw32_libdir} /libvirt.dll.a
%{mingw32_libdir} /pkgconfig/libvirt.pc
2014-06-20 20:47:15 +04:00
%{mingw32_libdir} /pkgconfig/libvirt-qemu.pc
%{mingw32_libdir} /pkgconfig/libvirt-lxc.pc
2016-07-01 14:41:32 +03:00
%{mingw32_libdir} /pkgconfig/libvirt-admin.pc
Introduce an LXC specific public API & library
This patch introduces support for LXC specific public APIs. In
common with what was done for QEMU, this creates a libvirt_lxc.so
library and libvirt/libvirt-lxc.h header file.
The actual APIs are
int virDomainLxcOpenNamespace(virDomainPtr domain,
int **fdlist,
unsigned int flags);
int virDomainLxcEnterNamespace(virDomainPtr domain,
unsigned int nfdlist,
int *fdlist,
unsigned int *noldfdlist,
int **oldfdlist,
unsigned int flags);
which provide a way to use the setns() system call to move the
calling process into the container's namespace. It is not
practical to write in a generically applicable manner. The
nearest that we could get to such an API would be an API which
allows to pass a command + argv to be executed inside a
container. Even if we had such a generic API, this LXC specific
API is still useful, because it allows the caller to maintain
the current process context, in particular any I/O streams they
have open.
NB the virDomainLxcEnterNamespace() API is special in that it
runs client side, so does not involve the internal driver API.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-12-21 17:15:19 +04:00
%{mingw32_libdir} /libvirt-lxc.dll.a
2012-06-15 20:13:11 +04:00
%{mingw32_libdir} /libvirt-qemu.dll.a
2016-07-01 14:41:32 +03:00
%{mingw32_libdir} /libvirt-admin.dll.a
2012-06-15 20:13:11 +04:00
%dir %{mingw32_datadir} /libvirt/
%dir %{mingw32_datadir} /libvirt/schemas/
2020-10-08 09:16:20 +03:00
%{mingw32_datadir} /libvirt/schemas/*.rng
2012-06-15 20:13:11 +04:00
%dir %{mingw32_datadir} /libvirt/api/
%{mingw32_datadir} /libvirt/api/libvirt-api.xml
Introduce an LXC specific public API & library
This patch introduces support for LXC specific public APIs. In
common with what was done for QEMU, this creates a libvirt_lxc.so
library and libvirt/libvirt-lxc.h header file.
The actual APIs are
int virDomainLxcOpenNamespace(virDomainPtr domain,
int **fdlist,
unsigned int flags);
int virDomainLxcEnterNamespace(virDomainPtr domain,
unsigned int nfdlist,
int *fdlist,
unsigned int *noldfdlist,
int **oldfdlist,
unsigned int flags);
which provide a way to use the setns() system call to move the
calling process into the container's namespace. It is not
practical to write in a generically applicable manner. The
nearest that we could get to such an API would be an API which
allows to pass a command + argv to be executed inside a
container. Even if we had such a generic API, this LXC specific
API is still useful, because it allows the caller to maintain
the current process context, in particular any I/O streams they
have open.
NB the virDomainLxcEnterNamespace() API is special in that it
runs client side, so does not involve the internal driver API.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-12-21 17:15:19 +04:00
%{mingw32_datadir} /libvirt/api/libvirt-lxc-api.xml
2012-06-15 20:13:11 +04:00
%{mingw32_datadir} /libvirt/api/libvirt-qemu-api.xml
2016-07-01 14:41:32 +03:00
%{mingw32_datadir} /libvirt/api/libvirt-admin-api.xml
2012-06-15 20:13:11 +04:00
2018-08-16 14:39:39 +03:00
%{mingw32_datadir} /libvirt/cpu_map/*.xml
2012-06-15 20:13:11 +04:00
2016-12-06 15:45:18 +03:00
%{mingw32_datadir} /libvirt/test-screenshot.png
2012-06-15 20:13:11 +04:00
%{mingw32_datadir} /locale/*/LC_MESSAGES/libvirt.mo
%dir %{mingw32_includedir} /libvirt
%{mingw32_includedir} /libvirt/libvirt.h
2016-07-01 14:41:32 +03:00
%{mingw32_includedir} /libvirt/libvirt-common.h
2014-10-23 14:28:16 +04:00
%{mingw32_includedir} /libvirt/libvirt-domain.h
backup: Introduce virDomainCheckpoint APIs
Introduce a bunch of new public APIs related to backup checkpoints.
Checkpoints are modeled heavily after virDomainSnapshotPtr (both
represent a point in time of the guest), although a snapshot exists
with the intent of rolling back to that state, while a checkpoint
exists to make it possible to create an incremental backup at a later
time. We may have a future hypervisor that can completely manage
checkpoints without libvirt metadata, but the first two planned
hypervisors (qemu and test) both always use libvirt for tracking
metadata relations between checkpoints, so for now, I've deferred
the counterpart of virDomainSnapshotHasMetadata for a separate
API addition at a later date if there is ever a need for it.
Note that until we allow snapshots and checkpoints to exist
simultaneously on the same domain (although the actual prevention of
this will be in a separate patch for the sake of an easier revert down
the road), that it is not possible to branch out to create more than
one checkpoint child to a given parent, although it may become
possible later when we revert to a snapshot that coincides with a
checkpoint. This also means that for now, the decision of which
checkpoint becomes the parent of a newly created one is the only
checkpoint with no child (so while there are APIs for dealing with a
current snapshot, we do not need those for checkpoints). We may end
up exposing a notion of a current checkpoint later, but it's easier to
add stuff when proven needed than to blindly support it now and wish
we hadn't exposed it.
The following map shows the API relations to snapshots, with new APIs
on the right:
Operate on a domain object to create/redefine a child:
virDomainSnapshotCreateXML virDomainCheckpointCreateXML
Operate on a child object for lifetime management:
virDomainSnapshotDelete virDomainCheckpointDelete
virDomainSnapshotFree virDomainCheckpointFree
virDomainSnapshotRef virDomainCheckpointRef
Operate on a child object to learn more about it:
virDomainSnapshotGetXMLDesc virDomainCheckpointGetXMLDesc
virDomainSnapshotGetConnect virDomainCheckpointGetConnect
virDomainSnapshotGetDomain virDomainCheckpointGetDomain
virDomainSnapshotGetName virDomainCheckpiontGetName
virDomainSnapshotGetParent virDomainCheckpiontGetParent
virDomainSnapshotHasMetadata (deferred for later)
virDomainSnapshotIsCurrent (no counterpart, see note above)
Operate on a domain object to list all children:
virDomainSnapshotNum (no counterparts, these are the old
virDomainSnapshotListNames racy interfaces)
virDomainSnapshotListAllSnapshots virDomainListAllCheckpoints
Operate on a child object to list descendents:
virDomainSnapshotNumChildren (no counterparts, these are the old
virDomainSnapshotListChildrenNames racy interfaces)
virDomainSnapshotListAllChildren virDomainCheckpointListAllChildren
Operate on a domain to locate a particular child:
virDomainSnapshotLookupByName virDomainCheckpointLookupByName
virDomainSnapshotCurrent (no counterpart, see note above)
virDomainHasCurrentSnapshot (no counterpart, old racy interface)
Operate on a snapshot to roll back to earlier state:
virDomainSnapshotRevert (no counterpart, instead checkpoints
are used in incremental backups via
XML to virDomainBackupBegin)
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2019-03-13 22:35:26 +03:00
%{mingw32_includedir} /libvirt/libvirt-domain-checkpoint.h
2014-10-23 14:28:16 +04:00
%{mingw32_includedir} /libvirt/libvirt-domain-snapshot.h
2014-10-23 14:28:16 +04:00
%{mingw32_includedir} /libvirt/libvirt-event.h
2014-10-23 14:28:16 +04:00
%{mingw32_includedir} /libvirt/libvirt-host.h
2014-10-23 14:28:16 +04:00
%{mingw32_includedir} /libvirt/libvirt-interface.h
2014-10-23 14:28:16 +04:00
%{mingw32_includedir} /libvirt/libvirt-network.h
2014-10-23 14:28:16 +04:00
%{mingw32_includedir} /libvirt/libvirt-nodedev.h
2014-10-23 14:28:16 +04:00
%{mingw32_includedir} /libvirt/libvirt-nwfilter.h
2014-10-23 14:28:16 +04:00
%{mingw32_includedir} /libvirt/libvirt-secret.h
2014-10-23 14:28:16 +04:00
%{mingw32_includedir} /libvirt/libvirt-storage.h
2014-10-23 14:28:16 +04:00
%{mingw32_includedir} /libvirt/libvirt-stream.h
2012-06-15 20:13:11 +04:00
%{mingw32_includedir} /libvirt/virterror.h
Introduce an LXC specific public API & library
This patch introduces support for LXC specific public APIs. In
common with what was done for QEMU, this creates a libvirt_lxc.so
library and libvirt/libvirt-lxc.h header file.
The actual APIs are
int virDomainLxcOpenNamespace(virDomainPtr domain,
int **fdlist,
unsigned int flags);
int virDomainLxcEnterNamespace(virDomainPtr domain,
unsigned int nfdlist,
int *fdlist,
unsigned int *noldfdlist,
int **oldfdlist,
unsigned int flags);
which provide a way to use the setns() system call to move the
calling process into the container's namespace. It is not
practical to write in a generically applicable manner. The
nearest that we could get to such an API would be an API which
allows to pass a command + argv to be executed inside a
container. Even if we had such a generic API, this LXC specific
API is still useful, because it allows the caller to maintain
the current process context, in particular any I/O streams they
have open.
NB the virDomainLxcEnterNamespace() API is special in that it
runs client side, so does not involve the internal driver API.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-12-21 17:15:19 +04:00
%{mingw32_includedir} /libvirt/libvirt-lxc.h
2012-06-15 20:13:11 +04:00
%{mingw32_includedir} /libvirt/libvirt-qemu.h
2016-07-01 14:41:32 +03:00
%{mingw32_includedir} /libvirt/libvirt-admin.h
2012-06-15 20:13:11 +04:00
%{mingw32_mandir} /man1/virsh.1*
2016-07-01 14:41:32 +03:00
%{mingw32_mandir} /man1/virt-admin.1*
2012-06-15 20:13:11 +04:00
%{mingw32_mandir} /man1/virt-xml-validate.1*
%{mingw32_mandir} /man1/virt-pki-validate.1*
2017-03-03 15:43:51 +03:00
%{mingw32_mandir} /man7/virkey*.7*
2012-06-15 20:13:11 +04:00
# Mingw64
%files -n mingw64-libvirt
%dir %{mingw64_sysconfdir} /libvirt/
%config (noreplace) %{mingw64_sysconfdir} /libvirt/libvirt.conf
2016-07-01 14:41:32 +03:00
%config (noreplace) %{mingw64_sysconfdir} /libvirt/libvirt-admin.conf
2012-06-15 20:13:11 +04:00
%{mingw64_bindir} /libvirt-0.dll
%{mingw64_bindir} /virsh.exe
2016-07-01 14:41:32 +03:00
%{mingw64_bindir} /virt-admin.exe
2012-06-15 20:13:11 +04:00
%{mingw64_bindir} /virt-xml-validate
%{mingw64_bindir} /virt-pki-validate
Introduce an LXC specific public API & library
This patch introduces support for LXC specific public APIs. In
common with what was done for QEMU, this creates a libvirt_lxc.so
library and libvirt/libvirt-lxc.h header file.
The actual APIs are
int virDomainLxcOpenNamespace(virDomainPtr domain,
int **fdlist,
unsigned int flags);
int virDomainLxcEnterNamespace(virDomainPtr domain,
unsigned int nfdlist,
int *fdlist,
unsigned int *noldfdlist,
int **oldfdlist,
unsigned int flags);
which provide a way to use the setns() system call to move the
calling process into the container's namespace. It is not
practical to write in a generically applicable manner. The
nearest that we could get to such an API would be an API which
allows to pass a command + argv to be executed inside a
container. Even if we had such a generic API, this LXC specific
API is still useful, because it allows the caller to maintain
the current process context, in particular any I/O streams they
have open.
NB the virDomainLxcEnterNamespace() API is special in that it
runs client side, so does not involve the internal driver API.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-12-21 17:15:19 +04:00
%{mingw64_bindir} /libvirt-lxc-0.dll
2012-06-15 20:13:11 +04:00
%{mingw64_bindir} /libvirt-qemu-0.dll
2016-07-01 14:41:32 +03:00
%{mingw64_bindir} /libvirt-admin-0.dll
2012-06-15 20:13:11 +04:00
%{mingw64_libdir} /libvirt.dll.a
%{mingw64_libdir} /pkgconfig/libvirt.pc
2014-07-10 02:45:15 +04:00
%{mingw64_libdir} /pkgconfig/libvirt-qemu.pc
%{mingw64_libdir} /pkgconfig/libvirt-lxc.pc
2016-07-01 14:41:32 +03:00
%{mingw64_libdir} /pkgconfig/libvirt-admin.pc
Introduce an LXC specific public API & library
This patch introduces support for LXC specific public APIs. In
common with what was done for QEMU, this creates a libvirt_lxc.so
library and libvirt/libvirt-lxc.h header file.
The actual APIs are
int virDomainLxcOpenNamespace(virDomainPtr domain,
int **fdlist,
unsigned int flags);
int virDomainLxcEnterNamespace(virDomainPtr domain,
unsigned int nfdlist,
int *fdlist,
unsigned int *noldfdlist,
int **oldfdlist,
unsigned int flags);
which provide a way to use the setns() system call to move the
calling process into the container's namespace. It is not
practical to write in a generically applicable manner. The
nearest that we could get to such an API would be an API which
allows to pass a command + argv to be executed inside a
container. Even if we had such a generic API, this LXC specific
API is still useful, because it allows the caller to maintain
the current process context, in particular any I/O streams they
have open.
NB the virDomainLxcEnterNamespace() API is special in that it
runs client side, so does not involve the internal driver API.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-12-21 17:15:19 +04:00
%{mingw64_libdir} /libvirt-lxc.dll.a
2012-06-15 20:13:11 +04:00
%{mingw64_libdir} /libvirt-qemu.dll.a
2016-07-01 14:41:32 +03:00
%{mingw64_libdir} /libvirt-admin.dll.a
2012-06-15 20:13:11 +04:00
%dir %{mingw64_datadir} /libvirt/
%dir %{mingw64_datadir} /libvirt/schemas/
2020-12-02 14:29:25 +03:00
%{mingw64_datadir} /libvirt/schemas/*.rng
2012-06-15 20:13:11 +04:00
%dir %{mingw64_datadir} /libvirt/api/
%{mingw64_datadir} /libvirt/api/libvirt-api.xml
Introduce an LXC specific public API & library
This patch introduces support for LXC specific public APIs. In
common with what was done for QEMU, this creates a libvirt_lxc.so
library and libvirt/libvirt-lxc.h header file.
The actual APIs are
int virDomainLxcOpenNamespace(virDomainPtr domain,
int **fdlist,
unsigned int flags);
int virDomainLxcEnterNamespace(virDomainPtr domain,
unsigned int nfdlist,
int *fdlist,
unsigned int *noldfdlist,
int **oldfdlist,
unsigned int flags);
which provide a way to use the setns() system call to move the
calling process into the container's namespace. It is not
practical to write in a generically applicable manner. The
nearest that we could get to such an API would be an API which
allows to pass a command + argv to be executed inside a
container. Even if we had such a generic API, this LXC specific
API is still useful, because it allows the caller to maintain
the current process context, in particular any I/O streams they
have open.
NB the virDomainLxcEnterNamespace() API is special in that it
runs client side, so does not involve the internal driver API.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-12-21 17:15:19 +04:00
%{mingw64_datadir} /libvirt/api/libvirt-lxc-api.xml
2012-06-15 20:13:11 +04:00
%{mingw64_datadir} /libvirt/api/libvirt-qemu-api.xml
2016-07-01 14:41:32 +03:00
%{mingw64_datadir} /libvirt/api/libvirt-admin-api.xml
2012-06-15 20:13:11 +04:00
2018-08-16 14:39:39 +03:00
%{mingw64_datadir} /libvirt/cpu_map/*.xml
2012-06-15 20:13:11 +04:00
2016-12-06 15:45:18 +03:00
%{mingw64_datadir} /libvirt/test-screenshot.png
2012-06-15 20:13:11 +04:00
%{mingw64_datadir} /locale/*/LC_MESSAGES/libvirt.mo
%dir %{mingw64_includedir} /libvirt
%{mingw64_includedir} /libvirt/libvirt.h
2016-07-01 14:41:32 +03:00
%{mingw64_includedir} /libvirt/libvirt-common.h
2014-10-23 14:28:16 +04:00
%{mingw64_includedir} /libvirt/libvirt-domain.h
backup: Introduce virDomainCheckpoint APIs
Introduce a bunch of new public APIs related to backup checkpoints.
Checkpoints are modeled heavily after virDomainSnapshotPtr (both
represent a point in time of the guest), although a snapshot exists
with the intent of rolling back to that state, while a checkpoint
exists to make it possible to create an incremental backup at a later
time. We may have a future hypervisor that can completely manage
checkpoints without libvirt metadata, but the first two planned
hypervisors (qemu and test) both always use libvirt for tracking
metadata relations between checkpoints, so for now, I've deferred
the counterpart of virDomainSnapshotHasMetadata for a separate
API addition at a later date if there is ever a need for it.
Note that until we allow snapshots and checkpoints to exist
simultaneously on the same domain (although the actual prevention of
this will be in a separate patch for the sake of an easier revert down
the road), that it is not possible to branch out to create more than
one checkpoint child to a given parent, although it may become
possible later when we revert to a snapshot that coincides with a
checkpoint. This also means that for now, the decision of which
checkpoint becomes the parent of a newly created one is the only
checkpoint with no child (so while there are APIs for dealing with a
current snapshot, we do not need those for checkpoints). We may end
up exposing a notion of a current checkpoint later, but it's easier to
add stuff when proven needed than to blindly support it now and wish
we hadn't exposed it.
The following map shows the API relations to snapshots, with new APIs
on the right:
Operate on a domain object to create/redefine a child:
virDomainSnapshotCreateXML virDomainCheckpointCreateXML
Operate on a child object for lifetime management:
virDomainSnapshotDelete virDomainCheckpointDelete
virDomainSnapshotFree virDomainCheckpointFree
virDomainSnapshotRef virDomainCheckpointRef
Operate on a child object to learn more about it:
virDomainSnapshotGetXMLDesc virDomainCheckpointGetXMLDesc
virDomainSnapshotGetConnect virDomainCheckpointGetConnect
virDomainSnapshotGetDomain virDomainCheckpointGetDomain
virDomainSnapshotGetName virDomainCheckpiontGetName
virDomainSnapshotGetParent virDomainCheckpiontGetParent
virDomainSnapshotHasMetadata (deferred for later)
virDomainSnapshotIsCurrent (no counterpart, see note above)
Operate on a domain object to list all children:
virDomainSnapshotNum (no counterparts, these are the old
virDomainSnapshotListNames racy interfaces)
virDomainSnapshotListAllSnapshots virDomainListAllCheckpoints
Operate on a child object to list descendents:
virDomainSnapshotNumChildren (no counterparts, these are the old
virDomainSnapshotListChildrenNames racy interfaces)
virDomainSnapshotListAllChildren virDomainCheckpointListAllChildren
Operate on a domain to locate a particular child:
virDomainSnapshotLookupByName virDomainCheckpointLookupByName
virDomainSnapshotCurrent (no counterpart, see note above)
virDomainHasCurrentSnapshot (no counterpart, old racy interface)
Operate on a snapshot to roll back to earlier state:
virDomainSnapshotRevert (no counterpart, instead checkpoints
are used in incremental backups via
XML to virDomainBackupBegin)
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2019-03-13 22:35:26 +03:00
%{mingw64_includedir} /libvirt/libvirt-domain-checkpoint.h
2014-10-23 14:28:16 +04:00
%{mingw64_includedir} /libvirt/libvirt-domain-snapshot.h
2014-10-23 14:28:16 +04:00
%{mingw64_includedir} /libvirt/libvirt-event.h
2014-10-23 14:28:16 +04:00
%{mingw64_includedir} /libvirt/libvirt-host.h
2014-10-23 14:28:16 +04:00
%{mingw64_includedir} /libvirt/libvirt-interface.h
2014-10-23 14:28:16 +04:00
%{mingw64_includedir} /libvirt/libvirt-network.h
2014-10-23 14:28:16 +04:00
%{mingw64_includedir} /libvirt/libvirt-nodedev.h
2014-10-23 14:28:16 +04:00
%{mingw64_includedir} /libvirt/libvirt-nwfilter.h
2014-10-23 14:28:16 +04:00
%{mingw64_includedir} /libvirt/libvirt-secret.h
2014-10-23 14:28:16 +04:00
%{mingw64_includedir} /libvirt/libvirt-storage.h
2014-10-23 14:28:16 +04:00
%{mingw64_includedir} /libvirt/libvirt-stream.h
2012-06-15 20:13:11 +04:00
%{mingw64_includedir} /libvirt/virterror.h
Introduce an LXC specific public API & library
This patch introduces support for LXC specific public APIs. In
common with what was done for QEMU, this creates a libvirt_lxc.so
library and libvirt/libvirt-lxc.h header file.
The actual APIs are
int virDomainLxcOpenNamespace(virDomainPtr domain,
int **fdlist,
unsigned int flags);
int virDomainLxcEnterNamespace(virDomainPtr domain,
unsigned int nfdlist,
int *fdlist,
unsigned int *noldfdlist,
int **oldfdlist,
unsigned int flags);
which provide a way to use the setns() system call to move the
calling process into the container's namespace. It is not
practical to write in a generically applicable manner. The
nearest that we could get to such an API would be an API which
allows to pass a command + argv to be executed inside a
container. Even if we had such a generic API, this LXC specific
API is still useful, because it allows the caller to maintain
the current process context, in particular any I/O streams they
have open.
NB the virDomainLxcEnterNamespace() API is special in that it
runs client side, so does not involve the internal driver API.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-12-21 17:15:19 +04:00
%{mingw64_includedir} /libvirt/libvirt-lxc.h
2012-06-15 20:13:11 +04:00
%{mingw64_includedir} /libvirt/libvirt-qemu.h
2016-07-01 14:41:32 +03:00
%{mingw64_includedir} /libvirt/libvirt-admin.h
2012-06-15 20:13:11 +04:00
%{mingw64_mandir} /man1/virsh.1*
2016-07-01 14:41:32 +03:00
%{mingw64_mandir} /man1/virt-admin.1*
2012-06-15 20:13:11 +04:00
%{mingw64_mandir} /man1/virt-xml-validate.1*
%{mingw64_mandir} /man1/virt-pki-validate.1*
2017-03-03 15:43:51 +03:00
%{mingw64_mandir} /man7/virkey*.7*
2012-06-15 20:13:11 +04:00
%changelog