diff --git a/libntfs/volume.c b/libntfs/volume.c index f83a6571..f068e40e 100644 --- a/libntfs/volume.c +++ b/libntfs/volume.c @@ -32,7 +32,7 @@ #include "attrib.h" #include "mft.h" #include "bootsect.h" -#include "disk_io.h" +#include "device.h" #include "debug.h" #include "inode.h" #include "runlist.h" @@ -944,7 +944,7 @@ ntfs_volume *ntfs_mount(const char *name, unsigned long rwflag) struct ntfs_device *dev; /* Allocate an ntfs_device structure. */ - dev = ntfs_device_alloc(name, 0, &ntfs_device_disk_io_ops, NULL); + dev = ntfs_device_alloc(name, 0, &ntfs_device_default_io_ops, NULL); if (!dev) return NULL; /* Call ntfs_device_mount() to do the actual mount. */ diff --git a/ntfsprogs/mkntfs.c b/ntfsprogs/mkntfs.c index 1c8fd65d..049b0e5f 100644 --- a/ntfsprogs/mkntfs.c +++ b/ntfsprogs/mkntfs.c @@ -90,7 +90,6 @@ #include "types.h" #include "bootsect.h" -#include "disk_io.h" #include "device.h" #include "attrib.h" #include "bitmap.h" @@ -2555,7 +2554,7 @@ int main(int argc, char **argv) * the volume. */ if (!(vol->dev = ntfs_device_alloc(dev_name, 0, - &ntfs_device_disk_io_ops, NULL))) + &ntfs_device_default_io_ops, NULL))) err_exit("Could not allocate memory for internal buffer.\n"); /* Open the device for reading or reading and writing. */ if (opts.no_action) { diff --git a/ntfsprogs/ntfsfix.c b/ntfsprogs/ntfsfix.c index 587e8e24..bf47e721 100644 --- a/ntfsprogs/ntfsfix.c +++ b/ntfsprogs/ntfsfix.c @@ -55,7 +55,6 @@ #include "types.h" #include "attrib.h" #include "mft.h" -#include "disk_io.h" #include "device.h" #include "logfile.h" @@ -126,7 +125,7 @@ int main(int argc, char **argv) printf("Attempting to correct errors... "); - dev = ntfs_device_alloc(argv[1], 0, &ntfs_device_disk_io_ops, NULL); + dev = ntfs_device_alloc(argv[1], 0, &ntfs_device_default_io_ops, NULL); if (!dev) { puts(FAILED); perror("Failed to allocate device");