git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix 'unknown filesystem' warnings in old inspection code (RHBZ#678231 RHBZ#666578).
[libguestfs.git]
/
daemon
/
dropcaches.c
diff --git
a/daemon/dropcaches.c
b/daemon/dropcaches.c
index
a818323
..
46bfd07
100644
(file)
--- a/
daemon/dropcaches.c
+++ b/
daemon/dropcaches.c
@@
-34,7
+34,10
@@
do_drop_caches (int what)
{
FILE *fp;
{
FILE *fp;
- sync ();
+ if (sync_disks () == -1) {
+ reply_with_perror ("sync");
+ return -1;
+ }
fp = fopen (PROCFILE, "w");
if (fp == NULL) {
fp = fopen (PROCFILE, "w");
if (fp == NULL) {