summaryrefslogtreecommitdiffstats
path: root/src/ntfs_io.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2007-12-02 21:21:18 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2007-12-02 21:21:18 +0100
commit920b5e4ff3c58982b1531638fad6d0bbdfacf770 (patch)
treefc230f7efa66c76c9cd8db5fe7605a4dae5ff416 /src/ntfs_io.c
parent50d67341a5893bb76021cd693bf29e608faa815f (diff)
Add some synchronisation points, should help to deal with unexpected program termination
Diffstat (limited to 'src/ntfs_io.c')
-rw-r--r--src/ntfs_io.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ntfs_io.c b/src/ntfs_io.c
index 1271b07..aa2436e 100644
--- a/src/ntfs_io.c
+++ b/src/ntfs_io.c
@@ -119,9 +119,8 @@ static s64 ntfs_device_testdisk_io_write(struct ntfs_device *dev, const void *bu
static int ntfs_device_testdisk_io_sync(struct ntfs_device *dev)
{
- log_warning("ntfs_device_testdisk_io_sync() unimplemented\n");
- errno = ENOTSUP;
- return -1;
+ my_data_t *my_data=(my_data_t*)dev->d_private;
+ return my_data->disk_car->sync(my_data->disk_car);
}
static int ntfs_device_testdisk_io_stat(struct ntfs_device *dev, struct stat *buf)