summaryrefslogtreecommitdiffstats
path: root/Documentation/device-mapper/switch.txt
diff options
context:
space:
mode:
authorMichael Witten <mfwitten@gmail.com>2016-09-01 19:38:30 +0000
committerJiri Kosina <jkosina@suse.cz>2016-12-14 10:54:27 +0100
commit95f21c5c6d8345f8253057b24a98adfbceb2aca1 (patch)
treed66a08c2563fe039d4d09b45294b333c5285c533 /Documentation/device-mapper/switch.txt
parent3e5de27e940d00d8d504dfb96625fb654f641509 (diff)
downloadlinux-0-day-95f21c5c6d8345f8253057b24a98adfbceb2aca1.tar.gz
linux-0-day-95f21c5c6d8345f8253057b24a98adfbceb2aca1.tar.xz
Documentation/device-mapper: s/getsize/getsz/
According to `man blockdev': --getsize Print device size (32-bit!) in sectors. Deprecated in favor of the --getsz option. ... --getsz Get size in 512-byte sectors. Hence, occurrences of `--getsize' should be replaced with `--getsz', which this commit has achieved as follows: $ cd "$repo" $ git grep -l -e --getsz Documentation/device-mapper/delay.txt Documentation/device-mapper/dm-crypt.txt Documentation/device-mapper/linear.txt Documentation/device-mapper/log-writes.txt Documentation/device-mapper/striped.txt Documentation/device-mapper/switch.txt $ cd Documentation/device-mapper $ sed -i s/getsize/getsz/g * Signed-off-by: Michael Witten <mfwitten@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'Documentation/device-mapper/switch.txt')
-rw-r--r--Documentation/device-mapper/switch.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/device-mapper/switch.txt b/Documentation/device-mapper/switch.txt
index 424835e57f271..5bd4831db4a8d 100644
--- a/Documentation/device-mapper/switch.txt
+++ b/Documentation/device-mapper/switch.txt
@@ -123,7 +123,7 @@ Assume that you have volumes vg1/switch0 vg1/switch1 vg1/switch2 with
the same size.
Create a switch device with 64kB region size:
- dmsetup create switch --table "0 `blockdev --getsize /dev/vg1/switch0`
+ dmsetup create switch --table "0 `blockdev --getsz /dev/vg1/switch0`
switch 3 128 0 /dev/vg1/switch0 0 /dev/vg1/switch1 0 /dev/vg1/switch2 0"
Set mappings for the first 7 entries to point to devices switch0, switch1,