]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- workaround not required anymore
authorArvin Schnell <aschnell@suse.de>
Wed, 6 Feb 2013 17:01:10 +0000 (12:01 -0500)
committerArvin Schnell <aschnell@suse.de>
Wed, 6 Feb 2013 17:01:10 +0000 (12:01 -0500)
snapper/Lvm.cc

index a25eb783100e77077ad3e6f20771595c061981f7..0182c4adbdce0462703813d58ac1483b9c40048b 100644 (file)
@@ -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)