[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH nbdkit 1/2] cow: Return NBDKIT_CACHE_NATIVE from can_cache.



Seems as if this was a typo in the original commit.  It happens that
both constants have the same value.

Fixes: commit 90438c112cedbaab6afdcc85560c54d015c67e54
---
 filters/cow/cow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/filters/cow/cow.c b/filters/cow/cow.c
index 51ca64a4..cbb072f1 100644
--- a/filters/cow/cow.c
+++ b/filters/cow/cow.c
@@ -183,7 +183,7 @@ cow_can_cache (struct nbdkit_next_ops *next_ops, void *nxdata, void *handle)
   int r = next_ops->can_cache (nxdata);
   if (r == -1)
     return -1;
-  return NBDKIT_FUA_NATIVE;
+  return NBDKIT_CACHE_NATIVE;
 }
 
 /* Override the plugin's .can_fast_zero, because our .zero is not fast */
-- 
2.29.0.rc2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]