From ae21edb1412396d4384a29b516cf236b28e7a114 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Wed, 25 Feb 2015 21:43:41 +0100 Subject: [PATCH] remove useless sync() calls unless we had serious kernel bugs, those sync() calls serve no useful purpose --- src/eitd/xmlutil.cpp | 2 +- src/gui/hdd_menu.cpp | 2 +- src/zapit/src/getservices.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/eitd/xmlutil.cpp b/src/eitd/xmlutil.cpp index 7dd9cdb8f..540135f7d 100644 --- a/src/eitd/xmlutil.cpp +++ b/src/eitd/xmlutil.cpp @@ -565,7 +565,7 @@ _done: filename = (std::string)epgdir + "/index.xml"; rename(tmpname.c_str(), filename.c_str()); - sync(); + // sync(); printf("[sectionsd] Writing Information finished\n"); return ; } diff --git a/src/gui/hdd_menu.cpp b/src/gui/hdd_menu.cpp index 7b0f4df6c..9d22d1111 100644 --- a/src/gui/hdd_menu.cpp +++ b/src/gui/hdd_menu.cpp @@ -1200,7 +1200,7 @@ _remount: safe_mkdir(cmd); snprintf(cmd, sizeof(cmd), "%s/plugins", dst.c_str()); safe_mkdir(cmd); - sync(); + // sync(); #if HAVE_TRIPLEDRAGON /* on the tripledragon, we mount via fstab, so we need to add an fstab entry for dst */ diff --git a/src/zapit/src/getservices.cpp b/src/zapit/src/getservices.cpp index 402a279ae..a868cbb3c 100644 --- a/src/zapit/src/getservices.cpp +++ b/src/zapit/src/getservices.cpp @@ -1020,7 +1020,7 @@ void CServiceManager::CopyFile(char * from, char * to) strcat(cmd, " "); strcat(cmd, to); system(cmd); - sync(); + // sync(); } void CServiceManager::WriteSatHeader(FILE * fd, sat_config_t &config)