Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dm-thin: update the documentation

1. convert KB/MB/GB to KiB/MiB/GiB;
2. change the number of sectors for 128MiB from 256000 to 262144 as
256000 sectors is neither 128 MB nor 128 MiB.

Signed-off-by: LongPing Wei <weilongping@oppo.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

authored by

LongPing Wei and committed by
Mikulas Patocka
9576e1ae 8d05316d

+8 -8
+8 -8
Documentation/admin-guide/device-mapper/thin-provisioning.rst
··· 80 80 81 81 As a guide, we suggest you calculate the number of bytes to use in the 82 82 metadata device as 48 * $data_dev_size / $data_block_size but round it up 83 - to 2MB if the answer is smaller. If you're creating large numbers of 83 + to 2MiB if the answer is smaller. If you're creating large numbers of 84 84 snapshots which are recording large amounts of change, you may find you 85 85 need to increase this. 86 86 87 - The largest size supported is 16GB: If the device is larger, 87 + The largest size supported is 16GiB: If the device is larger, 88 88 a warning will be issued and the excess space will not be used. 89 89 90 90 Reloading a pool table ··· 107 107 108 108 $data_block_size gives the smallest unit of disk space that can be 109 109 allocated at a time expressed in units of 512-byte sectors. 110 - $data_block_size must be between 128 (64KB) and 2097152 (1GB) and a 111 - multiple of 128 (64KB). $data_block_size cannot be changed after the 110 + $data_block_size must be between 128 (64KiB) and 2097152 (1GiB) and a 111 + multiple of 128 (64KiB). $data_block_size cannot be changed after the 112 112 thin-pool is created. People primarily interested in thin provisioning 113 - may want to use a value such as 1024 (512KB). People doing lots of 114 - snapshotting may want a smaller value such as 128 (64KB). If you are 113 + may want to use a value such as 1024 (512KiB). People doing lots of 114 + snapshotting may want a smaller value such as 128 (64KiB). If you are 115 115 not zeroing newly-allocated data, a larger $data_block_size in the 116 - region of 256000 (128MB) is suggested. 116 + region of 262144 (128MiB) is suggested. 117 117 118 118 $low_water_mark is expressed in blocks of size $data_block_size. If 119 119 free space on the data device drops below this level then a dm event ··· 291 291 error_if_no_space: 292 292 Error IOs, instead of queueing, if no space. 293 293 294 - Data block size must be between 64KB (128 sectors) and 1GB 294 + Data block size must be between 64KiB (128 sectors) and 1GiB 295 295 (2097152 sectors) inclusive. 296 296 297 297