diff options
author | Michael Witten <mfwitten@gmail.com> | 2016-09-01 19:38:30 +0000 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2016-12-14 10:54:27 +0100 |
commit | 95f21c5c6d8345f8253057b24a98adfbceb2aca1 (patch) | |
tree | d66a08c2563fe039d4d09b45294b333c5285c533 /Documentation/device-mapper/linear.txt | |
parent | 3e5de27e940d00d8d504dfb96625fb654f641509 (diff) | |
download | talos-op-linux-95f21c5c6d8345f8253057b24a98adfbceb2aca1.tar.gz talos-op-linux-95f21c5c6d8345f8253057b24a98adfbceb2aca1.zip |
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/linear.txt')
-rw-r--r-- | Documentation/device-mapper/linear.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/device-mapper/linear.txt b/Documentation/device-mapper/linear.txt index d5307d380a45..7cb98d89d3f8 100644 --- a/Documentation/device-mapper/linear.txt +++ b/Documentation/device-mapper/linear.txt @@ -16,15 +16,15 @@ Example scripts [[ #!/bin/sh # Create an identity mapping for a device -echo "0 `blockdev --getsize $1` linear $1 0" | dmsetup create identity +echo "0 `blockdev --getsz $1` linear $1 0" | dmsetup create identity ]] [[ #!/bin/sh # Join 2 devices together -size1=`blockdev --getsize $1` -size2=`blockdev --getsize $2` +size1=`blockdev --getsz $1` +size2=`blockdev --getsz $2` echo "0 $size1 linear $1 0 $size1 $size2 linear $2 0" | dmsetup create joined ]] @@ -44,7 +44,7 @@ if (!defined($dev)) { die("Please specify a device.\n"); } -my $dev_size = `blockdev --getsize $dev`; +my $dev_size = `blockdev --getsz $dev`; my $extents = int($dev_size / $extent_size) - (($dev_size % $extent_size) ? 1 : 0); |