summaryrefslogtreecommitdiffstats
path: root/src/ewf.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/ewf.c
parent91c44757340fd6f598e2708f8e20038158766c8e (diff)
Get rid of pread_fast(), it's too error prone
Diffstat (limited to 'src/ewf.c')
-rw-r--r--src/ewf.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/ewf.c b/src/ewf.c
index e301d79..e68debc 100644
--- a/src/ewf.c
+++ b/src/ewf.c
@@ -77,7 +77,6 @@ extern const arch_fnct_t arch_none;
static const char *fewf_description(disk_t *disk);
static const char *fewf_description_short(disk_t *disk);
static void fewf_clean(disk_t *disk);
-static void *fewf_pread_fast(disk_t *disk, void *buffer, const unsigned int count, const uint64_t offset);
static int fewf_pread(disk_t *disk, void *buffer, const unsigned int count, const uint64_t offset);
static int fewf_nopwrite(disk_t *disk, const void *buffer, const unsigned int count, const uint64_t offset);
static int fewf_pwrite(disk_t *disk, const void *buffer, const unsigned int count, const uint64_t offset);
@@ -266,7 +265,6 @@ disk_t *fewf_init(const char *device, const int mode)
disk->data=data;
disk->description=fewf_description;
disk->description_short=fewf_description_short;
- disk->pread_fast=fewf_pread_fast;
disk->pread=fewf_pread;
disk->pwrite=(data->mode&TESTDISK_O_RDWR?fewf_pwrite:fewf_nopwrite);
disk->sync=fewf_sync;
@@ -455,13 +453,6 @@ static int fewf_pwrite(disk_t *disk, const void *buffer, const unsigned int coun
return taille;
}
-static void *fewf_pread_fast(disk_t *disk, void *buf, const unsigned int count, const uint64_t offset)
-{
- if(fewf_pread(disk, buf, count, offset)==offset)
- return buf;
- return NULL;
-}
-
static int fewf_nopwrite(disk_t *disk, const void *buffer, const unsigned int count, const uint64_t offset)
{
log_error("fewf_nopwrite(xx,%u,buffer,%lu(%u/%u/%u)) write refused\n",