[libvirt] [PATCH v3 2/8] storage: Use VIR_AUTOFREE for storage backends
Ján Tomko
jtomko at redhat.com
Tue Feb 12 15:35:50 UTC 2019
On Tue, Feb 12, 2019 at 09:19:00AM -0500, John Ferlan wrote:
>Let's make use of the auto __cleanup capabilities. This also allows
>for the cleanup of some goto paths.
>
>Signed-off-by: John Ferlan <jferlan at redhat.com>
>---
> src/storage/storage_backend.c | 9 +--
> src/storage/storage_backend_disk.c | 62 +++++++------------
> src/storage/storage_backend_fs.c | 17 ++---
> src/storage/storage_backend_gluster.c | 30 ++++-----
> src/storage/storage_backend_iscsi.c | 72 +++++++---------------
> src/storage/storage_backend_iscsi_direct.c | 36 ++++-------
> src/storage/storage_backend_logical.c | 32 +++-------
> src/storage/storage_backend_mpath.c | 17 +++--
> src/storage/storage_backend_rbd.c | 35 ++++-------
> src/storage/storage_backend_scsi.c | 64 +++++++------------
> src/storage/storage_backend_sheepdog.c | 27 +++-----
> src/storage/storage_backend_vstorage.c | 25 +++-----
> src/storage/storage_backend_zfs.c | 15 ++---
> src/storage/storage_file_gluster.c | 17 ++---
> 14 files changed, 150 insertions(+), 308 deletions(-)
>
Reviewed-by: Ján Tomko <jtomko at redhat.com>
Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190212/b473c4e9/attachment-0001.sig>
More information about the libvir-list
mailing list