summaryrefslogtreecommitdiffstats
path: root/cpukit/libblock/src/diskdevs-init.c
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 /cpukit/libblock/src/diskdevs-init.c
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 '')
-rw-r--r--cpukit/libblock/src/diskdevs-init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libblock/src/diskdevs-init.c b/cpukit/libblock/src/diskdevs-init.c
index 5ec96b250c..02ef392a28 100644
--- a/cpukit/libblock/src/diskdevs-init.c
+++ b/cpukit/libblock/src/diskdevs-init.c
@@ -43,7 +43,7 @@ rtems_status_code rtems_disk_init_phys(
dd->capabilities = 0;
}
- sc = rtems_bdbuf_set_block_size(dd, block_size);
+ sc = rtems_bdbuf_set_block_size(dd, block_size, false);
} else {
sc = RTEMS_INVALID_NUMBER;
}
@@ -78,7 +78,7 @@ rtems_status_code rtems_disk_init_log(
&& block_count > 0
&& block_count <= phys_block_count - block_begin
) {
- sc = rtems_bdbuf_set_block_size(dd, phys_dd->media_block_size);
+ sc = rtems_bdbuf_set_block_size(dd, phys_dd->media_block_size, false);
} else {
sc = RTEMS_INVALID_NUMBER;
}