diff options
| author | gkostka <kostka.grzegorz@gmail.com> | 2014-04-06 15:58:29 +0000 |
|---|---|---|
| committer | gkostka <kostka.grzegorz@gmail.com> | 2014-04-06 15:58:29 +0000 |
| commit | 52a1caf80302fcaa86466785cd036bdfab2d2298 (patch) | |
| tree | 93a904dcc002e95a0d54c1f2a1548d4254b1266d /blockdev | |
| parent | 28eaf612482f3b681e9d17e7370052d73649ffd1 (diff) | |
Client server basic test suite + minor code improvment.
Diffstat (limited to 'blockdev')
| -rw-r--r-- | blockdev/filedev/ext4_filedev.c | 10 | ||||
| -rw-r--r-- | blockdev/filedev/ext4_filedev.h | 5 | ||||
| -rw-r--r-- | blockdev/filedev_win/io_raw.c (renamed from blockdev/io_raw/io_raw.c) | 10 | ||||
| -rw-r--r-- | blockdev/filedev_win/io_raw.h (renamed from blockdev/io_raw/io_raw.h) | 4 |
4 files changed, 2 insertions, 27 deletions
diff --git a/blockdev/filedev/ext4_filedev.c b/blockdev/filedev/ext4_filedev.c index 09c19ef..ea3ba7c 100644 --- a/blockdev/filedev/ext4_filedev.c +++ b/blockdev/filedev/ext4_filedev.c @@ -69,9 +69,6 @@ EXT4_BLOCKDEV_STATIC_INSTANCE( ); /******************************************************************************/ -EXT4_BCACHE_STATIC_INSTANCE(__cache, CONFIG_BLOCK_DEV_CACHE_SIZE, 1024); - -/******************************************************************************/ static int filedev_open(struct ext4_blockdev *bdev) { dev_file = fopen(fname, "r+b"); @@ -137,13 +134,6 @@ static int filedev_close(struct ext4_blockdev *bdev) return EOK; } - -/******************************************************************************/ - -struct ext4_bcache* ext4_filecache_get(void) -{ - return &__cache; -} /******************************************************************************/ struct ext4_blockdev* ext4_filedev_get(void) { diff --git a/blockdev/filedev/ext4_filedev.h b/blockdev/filedev/ext4_filedev.h index b37ee9b..cbd8aa5 100644 --- a/blockdev/filedev/ext4_filedev.h +++ b/blockdev/filedev/ext4_filedev.h @@ -34,13 +34,10 @@ #include <stdint.h> #include <stdbool.h> -/**@brief Filecache get.*/ -struct ext4_bcache* ext4_filecache_get(void); - /**@brief File blockdev get.*/ struct ext4_blockdev* ext4_filedev_get(void); -/**@brief Filename set.*/ +/**@brief Set filename to open.*/ void ext4_filedev_filename(const char *n); #endif /* EXT4_FILEDEV_H_ */ diff --git a/blockdev/io_raw/io_raw.c b/blockdev/filedev_win/io_raw.c index 66b35b4..6af3861 100644 --- a/blockdev/io_raw/io_raw.c +++ b/blockdev/filedev_win/io_raw.c @@ -71,9 +71,6 @@ EXT4_BLOCKDEV_STATIC_INSTANCE( );
/******************************************************************************/
-EXT4_BCACHE_STATIC_INSTANCE(__cache, CONFIG_BLOCK_DEV_CACHE_SIZE, 1024);
-
-/******************************************************************************/
static int io_raw_open(struct ext4_blockdev *bdev)
{
char path[64];
@@ -179,13 +176,6 @@ static int io_raw_close(struct ext4_blockdev *bdev) return EOK;
}
-
-/******************************************************************************/
-
-struct ext4_bcache* ext4_io_raw_cache_get(void)
-{
- return &__cache;
-}
/******************************************************************************/
struct ext4_blockdev* ext4_io_raw_dev_get(void)
{
diff --git a/blockdev/io_raw/io_raw.h b/blockdev/filedev_win/io_raw.h index cf097aa..742f49e 100644 --- a/blockdev/io_raw/io_raw.h +++ b/blockdev/filedev_win/io_raw.h @@ -35,12 +35,10 @@ #include <stdbool.h>
-/**@brief IO raw get.*/
-struct ext4_bcache* ext4_io_raw_cache_get(void);
-
/**@brief IO raw blockdev get.*/
struct ext4_blockdev* ext4_io_raw_dev_get(void);
+/**@brief Set filrname to open.*/
void ext4_io_raw_filename(const char *n);
#endif /* IO_RAW_H_ */
|
