diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-10-26 21:31:45 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-10-26 22:03:22 +0200 |
commit | 9dffa384e1ce14ab110a30737051c4e8c98d7fc3 (patch) | |
tree | b0e9c4143e20c18d5a4742700157eca6dd64636d /testsuites | |
parent | libblock: ramdisk documentation (diff) | |
download | rtems-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')
-rw-r--r-- | testsuites/libtests/block15/init.c | 2 | ||||
-rw-r--r-- | testsuites/libtests/block16/init.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/libtests/block15/init.c b/testsuites/libtests/block15/init.c index 3cefd6c0d8..e6de9c3d05 100644 --- a/testsuites/libtests/block15/init.c +++ b/testsuites/libtests/block15/init.c @@ -100,7 +100,7 @@ static void test_write_requests(rtems_disk_device *dd) rtems_status_code sc; int i; - sc = rtems_bdbuf_set_block_size(dd, BLOCK_SIZE); + sc = rtems_bdbuf_set_block_size(dd, BLOCK_SIZE, true); rtems_test_assert(sc == RTEMS_SUCCESSFUL); for (i = 0; i < ACTION_COUNT; ++i) { 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) { |