mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
storage_backend_fs.c: do not ignore probe failure
* src/storage/storage_backend_fs.c (virStorageBackendFileSystemRefresh): Correct parentheses. The documented intent is to ignore non-regular files, yet due to a parenthesization error all errors were handled that way.
This commit is contained in:
parent
1ed1bf3a38
commit
a6e7ba9464
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* storage_backend_fs.c: storage backend for FS and directory handling
|
||||
*
|
||||
* Copyright (C) 2007-2009 Red Hat, Inc.
|
||||
* Copyright (C) 2007-2010 Red Hat, Inc.
|
||||
* Copyright (C) 2007-2008 Daniel P. Berrange
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
@ -562,7 +562,7 @@ virStorageBackendFileSystemRefresh(virConnectPtr conn,
|
||||
&backingStore,
|
||||
&vol->allocation,
|
||||
&vol->capacity,
|
||||
&vol->target.encryption) < 0)) {
|
||||
&vol->target.encryption)) < 0) {
|
||||
if (ret == -1)
|
||||
goto cleanup;
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user