summaryrefslogtreecommitdiff
path: root/blockdev
diff options
context:
space:
mode:
authorgkostka <kostka.grzegorz@gmail.com>2013-10-27 14:57:55 +0000
committergkostka <kostka.grzegorz@gmail.com>2013-10-27 14:57:55 +0000
commita48f2f6fecddd54a5830d6b61cfc608fb3f364c3 (patch)
treeb29de3003ecd2a0a5b30bde6bd8c119f50af96d5 /blockdev
parent2c61a24dfa6b65ae4292915c7ede68f01005bfa5 (diff)
Disable linux caches.
Diffstat (limited to 'blockdev')
-rw-r--r--blockdev/filedev/ext4_filedev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/blockdev/filedev/ext4_filedev.c b/blockdev/filedev/ext4_filedev.c
index b2173ba..68e6e59 100644
--- a/blockdev/filedev/ext4_filedev.c
+++ b/blockdev/filedev/ext4_filedev.c
@@ -42,7 +42,7 @@ static const char *fname = "ext2";
/**@brief Image file descriptor.*/
static FILE *dev_file;
-#define DROP_LINUXCACHE_BUFFERS 0
+#define DROP_LINUXCACHE_BUFFERS 1
/**********************BLOCKDEV INTERFACE**************************************/
@@ -103,7 +103,7 @@ static int filedev_bread(struct ext4_blockdev *bdev, void *buf, uint64_t blk_id
static void drop_cache(void)
{
-#if defined(LINUX) && DROP_LINUXCACHE_BUFFERS
+#if defined(__linux__) && DROP_LINUXCACHE_BUFFERS
int fd;
char* data = "3";