|
|
@ -11,6 +11,8 @@
|
|
|
|
#ifndef PARTITION_SYNC_H
|
|
|
|
#ifndef PARTITION_SYNC_H
|
|
|
|
#define PARTITION_SYNC_H
|
|
|
|
#define PARTITION_SYNC_H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "DllMacro.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace CalamaresUtils
|
|
|
|
namespace CalamaresUtils
|
|
|
|
{
|
|
|
|
{
|
|
|
|
namespace Partition
|
|
|
|
namespace Partition
|
|
|
@ -24,10 +26,10 @@ namespace Partition
|
|
|
|
* are sensitive, and systemd tends to keep disks busy after a change
|
|
|
|
* are sensitive, and systemd tends to keep disks busy after a change
|
|
|
|
* for a while).
|
|
|
|
* for a while).
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void sync();
|
|
|
|
DLLEXPORT void sync();
|
|
|
|
|
|
|
|
|
|
|
|
/** @brief RAII class for calling sync() */
|
|
|
|
/** @brief RAII class for calling sync() */
|
|
|
|
struct Syncer
|
|
|
|
struct DLLEXPORT Syncer
|
|
|
|
{
|
|
|
|
{
|
|
|
|
~Syncer() { sync(); }
|
|
|
|
~Syncer() { sync(); }
|
|
|
|
};
|
|
|
|
};
|
|
|
|