dm-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [PATCH] dm-thin: update the documentation.
@ 2025-07-31  8:53 LongPing Wei
  2025-07-31 14:21 ` Mikulas Patocka
  0 siblings, 1 reply; 2+ messages in thread
From: LongPing Wei @ 2025-07-31  8:53 UTC (permalink / raw)
  To: mpatocka; +Cc: dm-devel, guoweichao, snitzer, LongPing Wei

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>
---
 .../device-mapper/thin-provisioning.rst          | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/Documentation/admin-guide/device-mapper/thin-provisioning.rst b/Documentation/admin-guide/device-mapper/thin-provisioning.rst
index bafebf79da4b..b2fa49a5608a 100644
--- a/Documentation/admin-guide/device-mapper/thin-provisioning.rst
+++ b/Documentation/admin-guide/device-mapper/thin-provisioning.rst
@@ -80,11 +80,11 @@ less sharing than average you'll need a larger-than-average metadata device.
 
 As a guide, we suggest you calculate the number of bytes to use in the
 metadata device as 48 * $data_dev_size / $data_block_size but round it up
-to 2MB if the answer is smaller.  If you're creating large numbers of
+to 2MiB if the answer is smaller.  If you're creating large numbers of
 snapshots which are recording large amounts of change, you may find you
 need to increase this.
 
-The largest size supported is 16GB: If the device is larger,
+The largest size supported is 16GiB: If the device is larger,
 a warning will be issued and the excess space will not be used.
 
 Reloading a pool table
@@ -107,13 +107,13 @@ Using an existing pool device
 
 $data_block_size gives the smallest unit of disk space that can be
 allocated at a time expressed in units of 512-byte sectors.
-$data_block_size must be between 128 (64KB) and 2097152 (1GB) and a
-multiple of 128 (64KB).  $data_block_size cannot be changed after the
+$data_block_size must be between 128 (64KiB) and 2097152 (1GiB) and a
+multiple of 128 (64KiB).  $data_block_size cannot be changed after the
 thin-pool is created.  People primarily interested in thin provisioning
-may want to use a value such as 1024 (512KB).  People doing lots of
-snapshotting may want a smaller value such as 128 (64KB).  If you are
+may want to use a value such as 1024 (512KiB).  People doing lots of
+snapshotting may want a smaller value such as 128 (64KiB).  If you are
 not zeroing newly-allocated data, a larger $data_block_size in the
-region of 256000 (128MB) is suggested.
+region of 262144 (128MiB) is suggested.
 
 $low_water_mark is expressed in blocks of size $data_block_size.  If
 free space on the data device drops below this level then a dm event
@@ -291,7 +291,7 @@ i) Constructor
       error_if_no_space:
 	Error IOs, instead of queueing, if no space.
 
-    Data block size must be between 64KB (128 sectors) and 1GB
+    Data block size must be between 64KiB (128 sectors) and 1GiB
     (2097152 sectors) inclusive.
 
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] dm-thin: update the documentation.
  2025-07-31  8:53 [PATCH] dm-thin: update the documentation LongPing Wei
@ 2025-07-31 14:21 ` Mikulas Patocka
  0 siblings, 0 replies; 2+ messages in thread
From: Mikulas Patocka @ 2025-07-31 14:21 UTC (permalink / raw)
  To: LongPing Wei; +Cc: dm-devel, guoweichao, snitzer

Applied, thanks.

Mikulas


On Thu, 31 Jul 2025, LongPing Wei wrote:

> 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>
> ---
>  .../device-mapper/thin-provisioning.rst          | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/Documentation/admin-guide/device-mapper/thin-provisioning.rst b/Documentation/admin-guide/device-mapper/thin-provisioning.rst
> index bafebf79da4b..b2fa49a5608a 100644
> --- a/Documentation/admin-guide/device-mapper/thin-provisioning.rst
> +++ b/Documentation/admin-guide/device-mapper/thin-provisioning.rst
> @@ -80,11 +80,11 @@ less sharing than average you'll need a larger-than-average metadata device.
>  
>  As a guide, we suggest you calculate the number of bytes to use in the
>  metadata device as 48 * $data_dev_size / $data_block_size but round it up
> -to 2MB if the answer is smaller.  If you're creating large numbers of
> +to 2MiB if the answer is smaller.  If you're creating large numbers of
>  snapshots which are recording large amounts of change, you may find you
>  need to increase this.
>  
> -The largest size supported is 16GB: If the device is larger,
> +The largest size supported is 16GiB: If the device is larger,
>  a warning will be issued and the excess space will not be used.
>  
>  Reloading a pool table
> @@ -107,13 +107,13 @@ Using an existing pool device
>  
>  $data_block_size gives the smallest unit of disk space that can be
>  allocated at a time expressed in units of 512-byte sectors.
> -$data_block_size must be between 128 (64KB) and 2097152 (1GB) and a
> -multiple of 128 (64KB).  $data_block_size cannot be changed after the
> +$data_block_size must be between 128 (64KiB) and 2097152 (1GiB) and a
> +multiple of 128 (64KiB).  $data_block_size cannot be changed after the
>  thin-pool is created.  People primarily interested in thin provisioning
> -may want to use a value such as 1024 (512KB).  People doing lots of
> -snapshotting may want a smaller value such as 128 (64KB).  If you are
> +may want to use a value such as 1024 (512KiB).  People doing lots of
> +snapshotting may want a smaller value such as 128 (64KiB).  If you are
>  not zeroing newly-allocated data, a larger $data_block_size in the
> -region of 256000 (128MB) is suggested.
> +region of 262144 (128MiB) is suggested.
>  
>  $low_water_mark is expressed in blocks of size $data_block_size.  If
>  free space on the data device drops below this level then a dm event
> @@ -291,7 +291,7 @@ i) Constructor
>        error_if_no_space:
>  	Error IOs, instead of queueing, if no space.
>  
> -    Data block size must be between 64KB (128 sectors) and 1GB
> +    Data block size must be between 64KiB (128 sectors) and 1GiB
>      (2097152 sectors) inclusive.
>  
>  
> -- 
> 2.34.1
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-07-31 14:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-31  8:53 [PATCH] dm-thin: update the documentation LongPing Wei
2025-07-31 14:21 ` Mikulas Patocka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).