From: Arvin Schnell Date: Wed, 6 Feb 2013 17:01:10 +0000 (-0500) Subject: - workaround not required anymore X-Git-Tag: v0.1.3~37 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=4eaaea706a8bc5af3a519d80adcccefa6f8ef181;p=thirdparty%2Fsnapper.git - workaround not required anymore --- diff --git a/snapper/Lvm.cc b/snapper/Lvm.cc index a25eb783..0182c4ad 100644 --- a/snapper/Lvm.cc +++ b/snapper/Lvm.cc @@ -178,16 +178,6 @@ namespace snapper void Lvm::createSnapshot(unsigned int num) const { - { - // TODO looks like a bug that this is needed (with ext4) -#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 14) - SDir subvolume_dir = openSubvolumeDir(); - syncfs(subvolume_dir.fd()); -#else - sync(); -#endif - } - SystemCmd cmd(LVCREATEBIN " --permission r --snapshot --name " + quote(snapshotLvName(num)) + " " + quote(vg_name + "/" + lv_name)); if (cmd.retcode() != 0)