summaryrefslogtreecommitdiffstats
path: root/src/io_redir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-24 08:51:29 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-24 08:51:29 +0200
commiteb3b555b50e2c82f67559472bdf0a1d54325550f (patch)
treef3aaea1d3c9cd8e8423d69eeda0fba794bed7eb0 /src/io_redir.c
parent91c44757340fd6f598e2708f8e20038158766c8e (diff)
Get rid of pread_fast(), it's too error prone
Diffstat (limited to 'src/io_redir.c')
-rw-r--r--src/io_redir.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/io_redir.c b/src/io_redir.c
index 449a3e8..a8f85ca 100644
--- a/src/io_redir.c
+++ b/src/io_redir.c
@@ -55,7 +55,6 @@ struct info_io_redir
list_redir_t *list_redir;
};
-static void *io_redir_pread_fast(disk_t *disk_car, void *buffer, const unsigned int count, const uint64_t offset);
static int io_redir_pread(disk_t *disk_car, void *buffer, const unsigned int count, const uint64_t offset);
static int io_redir_clean(disk_t *clean);
@@ -79,7 +78,6 @@ int io_redir_add_redir(disk_t *disk_car, const uint64_t org_offset, const unsign
disk_car->data=data;
disk_car->description=old_disk_car->description;
disk_car->pwrite=old_disk_car->pwrite;
- disk_car->pread_fast=io_redir_pread_fast;
disk_car->pread=io_redir_pread;
disk_car->clean=io_redir_clean;
}
@@ -219,13 +217,6 @@ static int io_redir_pread(disk_t *disk_car, void *buffer, const unsigned int cou
return count;
}
-static void *io_redir_pread_fast(disk_t *disk, void *buffer, const unsigned int count, const uint64_t offset)
-{
- if(io_redir_pread(disk, buffer, count, offset)==count)
- return buffer;
- return NULL;
-}
-
static int io_redir_clean(disk_t *disk_car)
{
if(disk_car->data)