summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/block16
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-10-26 21:31:45 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-10-26 22:03:22 +0200
commit9dffa384e1ce14ab110a30737051c4e8c98d7fc3 (patch)
treeb0e9c4143e20c18d5a4742700157eca6dd64636d /testsuites/libtests/block16
parentlibblock: ramdisk documentation (diff)
downloadrtems-9dffa384e1ce14ab110a30737051c4e8c98d7fc3.tar.bz2
libblock: rtems_bdbuf_set_block_size() API change
The set block size must synchronize and purge the disk to avoid an inconsistent cache state and data corruption. The synchronization is optional depending on the new sync parameter. In some contexts a synchronization must not be performed, e.g. during disk creation.
Diffstat (limited to 'testsuites/libtests/block16')
-rw-r--r--testsuites/libtests/block16/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuites/libtests/block16/init.c b/testsuites/libtests/block16/init.c
index e115227f8e..5c7033ff3d 100644
--- a/testsuites/libtests/block16/init.c
+++ b/testsuites/libtests/block16/init.c
@@ -92,7 +92,7 @@ static void test(void)
rtems_test_assert(media_bd [i]->buffer [0] == buf [i] + media_block_count);
}
- sc = rtems_bdbuf_set_block_size(dd, media_size);
+ sc = rtems_bdbuf_set_block_size(dd, media_size, true);
ASSERT_SC(sc);
for (i = 0; i < media_block_count; i += 2) {