ntfs_device_disk_io_ops is now ntfs_device_default_io_ops.
(Logical change 1.188)edge.strict_endians
parent
a34d218e90
commit
f49930c0f4
|
@ -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. */
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue