[libvirt] [PATCHv1.5 2/8] storage: Add witness for checking storage volume use in security driver

John Ferlan jferlan at redhat.com
Tue Jul 22 14:09:13 UTC 2014



On 07/22/2014 05:20 AM, Peter Krempa wrote:
> With my intended use of storage driver assist to chown files on remote
> storage we will need a witness that will tell us whether the given
> storage volume supports operations needed by the storage driver.
> ---
>  src/storage/storage_driver.c | 30 ++++++++++++++++++++++++++++++
>  src/storage/storage_driver.h |  2 ++
>  2 files changed, 32 insertions(+)
> 
> diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c
> index efd79b9..b397c6e 100644
> --- a/src/storage/storage_driver.c
> +++ b/src/storage/storage_driver.c
> @@ -2357,6 +2357,36 @@ virStorageFileSupportsBackingChainTraversal(virStorageSourcePtr src)
>             backend->storageFileAccess;
>  }
> 
> +
> +/**
> + * virStorageFileSupportsSecurityDriver:
> + *
> + * @src: a storage file structure
> + *
> + * Check if a storage file supports operations needed by the security
> + * driver to perform labelling */

NIT: Closing comment on new line.


ACK

John




More information about the libvir-list mailing list