From: Ramana Raja Date: Wed, 8 Jun 2016 11:04:56 +0000 (+0530) Subject: ceph_volume_client: use fsync instead of syncfs X-Git-Tag: ses5-milestone5~353^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=27eb51baab4cda6b385aef53fc7c3962a9debae5;p=ceph.git ceph_volume_client: use fsync instead of syncfs Signed-off-by: Ramana Raja --- diff --git a/src/pybind/ceph_volume_client.py b/src/pybind/ceph_volume_client.py index 5a7c6fcaa73a..ac32be9b578c 100644 --- a/src/pybind/ceph_volume_client.py +++ b/src/pybind/ceph_volume_client.py @@ -233,7 +233,6 @@ class CephFSVolumeClient(object): # ".meta" filenames # TODO: remove .meta files on volume deletion # TODO: remove .meta files on last rule for an auth ID deletion - # TODO: implement fsync in bindings so that we don't have to syncfs # TODO: version the on-disk structures def recover(self): @@ -726,7 +725,7 @@ class CephFSVolumeClient(object): fd = self.fs.open(path, "w") try: self.fs.write(fd, serialized, 0) - self.fs.sync_fs() + self.fs.fsync(fd, 0) finally: self.fs.close(fd)