]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
storage_backend_fs.c: do not ignore probe failure
authorJim Meyering <meyering@redhat.com>
Mon, 18 Jan 2010 09:34:53 +0000 (10:34 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 18 Jan 2010 13:46:51 +0000 (14:46 +0100)
* 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.

src/storage/storage_backend_fs.c

index 4fe40b379d7b268335da29d58f561d926284ae22..b03e4e92a4af00199e3bcf141e6e2f020dd54a35 100644 (file)
@@ -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 {