From 1a2f8ae10639775f4889ea5b16d7131068a40e86 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Mon, 1 May 2017 17:53:59 -0500 Subject: [PATCH 1/2] Added blurb around the utility block devices into the block device doc --- docs/APIs/storage/block_device.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/APIs/storage/block_device.md b/docs/APIs/storage/block_device.md index deae035..be6f765 100644 --- a/docs/APIs/storage/block_device.md +++ b/docs/APIs/storage/block_device.md @@ -28,6 +28,14 @@ Block devices indicate their block sizes through the `get_read_size`, `get_progr As a rule of thumb, you can use the erase size for applications that use a single block size (for example, the FAT file system). +## Utility block devices + +mbed OS contains several utility block devices to give you better control over how storage is allocated. + +- The [slicing block device](https://github.com/ARMmbed/mbed-os/blob/master/features/filesystem/bd/SlicingBlockDevice.h) allows you to partition storage into smaller block devices that you can use independentally. +- The [chaining block device](https://github.com/ARMmbed/mbed-os/blob/master/features/filesystem/bd/ChainingBlockDevice.h) allows you to chain multiple block devices together and extend the usable amount of storage. +- The [MBR block device](https://github.com/ARMmbed/mbed-os/blob/master/features/filesystem/bd/MBRBlockDevice.h) allows you to partition storage with a [Master Boot Record](https://en.wikipedia.org/wiki/Master_boot_record). The MBR allows the partitions to be configured seperately from outside the application. + ## Example block devices - [SDBlockDevice](https://github.com/armmbed/sd-driver) - Block device for SD cards. From 4ae351f3953e97d915b52fd0fb81cac281b96933 Mon Sep 17 00:00:00 2001 From: Amanda Butler Date: Thu, 1 Jun 2017 11:17:36 -0500 Subject: [PATCH 2/2] Copy edit block_device.md Make suggested grammar changes --- docs/APIs/storage/block_device.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/APIs/storage/block_device.md b/docs/APIs/storage/block_device.md index be6f765..295090c 100644 --- a/docs/APIs/storage/block_device.md +++ b/docs/APIs/storage/block_device.md @@ -30,11 +30,11 @@ As a rule of thumb, you can use the erase size for applications that use a singl ## Utility block devices -mbed OS contains several utility block devices to give you better control over how storage is allocated. +mbed OS contains several utility block devices to give you better control over the allocation of storage. -- The [slicing block device](https://github.com/ARMmbed/mbed-os/blob/master/features/filesystem/bd/SlicingBlockDevice.h) allows you to partition storage into smaller block devices that you can use independentally. -- The [chaining block device](https://github.com/ARMmbed/mbed-os/blob/master/features/filesystem/bd/ChainingBlockDevice.h) allows you to chain multiple block devices together and extend the usable amount of storage. -- The [MBR block device](https://github.com/ARMmbed/mbed-os/blob/master/features/filesystem/bd/MBRBlockDevice.h) allows you to partition storage with a [Master Boot Record](https://en.wikipedia.org/wiki/Master_boot_record). The MBR allows the partitions to be configured seperately from outside the application. +- With the [slicing block device](https://github.com/ARMmbed/mbed-os/blob/master/features/filesystem/bd/SlicingBlockDevice.h), you can partition storage into smaller block devices that you can use independentally. +- With the [chaining block device](https://github.com/ARMmbed/mbed-os/blob/master/features/filesystem/bd/ChainingBlockDevice.h), you can chain multiple block devices together and extend the usable amount of storage. +- mbed OS comes with support for storing partitions on disk with a [Master Boot Record (MBR)](https://en.wikipedia.org/wiki/Master_boot_record). The [MBR block device](https://github.com/ARMmbed/mbed-os/blob/master/features/filesystem/bd/MBRBlockDevice.h) provides this functionality and supports creating partitions at runtime or using preformatted partitions configured separately from outside the application. ## Example block devices