Skip to contentSkip to conversation

master - docs: Refresh kernel target docs

PATCH Alasdair Kergon 1 participant 1 message Jul 12, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=c2de4b9747fcaf4c3735dc68318a28c80a939374
Commit:        c2de4b9747fcaf4c3735dc68318a28c80a939374
Parent:        c838e79cd2e1dc3c6054e661e6a2f65c0d5c6144
Author:        Alasdair G Kergon <[email protected]>
AuthorDate:    Wed Jul 12 18:59:07 2017 +0100
Committer:     Alasdair G Kergon <[email protected]>
CommitterDate: Wed Jul 12 18:59:52 2017 +0100

docs: Refresh kernel target docs

---
 doc/kernel/cache.txt      |    6 +-
 doc/kernel/crypt.txt      |   80 +++++++++++++++++--
 doc/kernel/delay.txt      |    4 +-
 doc/kernel/flakey.txt     |    2 +-
 doc/kernel/integrity.txt  |  199 +++++++++++++++++++++++++++++++++++++++++++++
 doc/kernel/linear.txt     |    8 +-
 doc/kernel/log-writes.txt |   10 +-
 doc/kernel/raid.txt       |   92 ++++++++++++++++++++-
 doc/kernel/striped.txt    |    4 +-
 doc/kernel/switch.txt     |    2 +-
 doc/kernel/zoned.txt      |  144 ++++++++++++++++++++++++++++++++
 11 files changed, 525 insertions(+), 26 deletions(-)
doc/kernel/cache.txt +5 -1
index 785eab8..cdfd0fe 100644
@@ -207,6 +207,10 @@ Optional feature arguments are:
 		   block, then the cache block is invalidated.
 		   To enable passthrough mode the cache must be clean.
 
+   metadata2	: use version 2 of the metadata.  This stores the dirty bits
+                  in a separate btree, which improves speed of shutting
+		  down the cache.
+
 A policy called 'default' is always registered.  This is an alias for
 the policy we currently think is giving best all round performance.
 
@@ -286,7 +290,7 @@ message, which takes an arbitrary number of cblock ranges.  Each cblock
 range's end value is "one past the end", meaning 5-10 expresses a range
 of values from 5 to 9.  Each cblock must be expressed as a decimal
 value, in the future a variant message that takes cblock ranges
-expressed in hexidecimal may be needed to better support efficient
+expressed in hexadecimal may be needed to better support efficient
 invalidation of larger caches.  The cache must be in passthrough mode
 when invalidate_cblocks is used.
 
doc/kernel/crypt.txt +73 -7

109 lines not on this page · raw message

doc/kernel/delay.txt +2 -2
index a07b592..4b1d22a 100644
@@ -16,12 +16,12 @@ Example scripts
 [[
 #!/bin/sh
 # Create device delaying rw operation for 500ms
-echo "0 `blockdev --getsize $1` delay $1 0 500" | dmsetup create delayed
+echo "0 `blockdev --getsz $1` delay $1 0 500" | dmsetup create delayed
 ]]
 
 [[
 #!/bin/sh
 # Create device delaying only write operation for 500ms and
 # splitting reads and writes to different devices $1 $2
-echo "0 `blockdev --getsize $1` delay $1 0 0 $2 0 500" | dmsetup create delayed
+echo "0 `blockdev --getsz $1` delay $1 0 0 $2 0 500" | dmsetup create delayed
 ]]
doc/kernel/flakey.txt +1 -1
index 6ff5c23..c430307 100644
@@ -42,7 +42,7 @@ Optional feature parameters:
     <direction>: Either 'r' to corrupt reads or 'w' to corrupt writes.
 		 'w' is incompatible with drop_writes.
     <value>: The value (from 0-255) to write.
-    <flags>: Perform the replacement only if bio->bi_rw has all the
+    <flags>: Perform the replacement only if bio->bi_opf has all the
 	     selected flags set.
 
 Examples:
doc/kernel/integrity.txt new file +199 -0

199 lines not on this page · raw message

doc/kernel/linear.txt +4 -4
index d5307d3..7cb98d8 100644
@@ -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);
 
doc/kernel/log-writes.txt +5 -5
index c10f30c..f4ebcba 100644
@@ -14,14 +14,14 @@ Log Ordering
 
 We log things in order of completion once we are sure the write is no longer in
 cache.  This means that normal WRITE requests are not actually logged until the
-next REQ_FLUSH request.  This is to make it easier for userspace to replay the
-log in a way that correlates to what is on disk and not what is in cache, to
-make it easier to detect improper waiting/flushing.
+next REQ_PREFLUSH request.  This is to make it easier for userspace to replay
+the log in a way that correlates to what is on disk and not what is in cache,
+to make it easier to detect improper waiting/flushing.
 
 This works by attaching all WRITE requests to a list once the write completes.
-Once we see a REQ_FLUSH request we splice this list onto the request and once
+Once we see a REQ_PREFLUSH request we splice this list onto the request and once
 the FLUSH request completes we log all of the WRITEs and then the FLUSH.  Only
-completed WRITEs, at the time the REQ_FLUSH is issued, are added in order to
+completed WRITEs, at the time the REQ_PREFLUSH is issued, are added in order to
 simulate the worst case scenario with regard to power failures.  Consider the
 following example (W means write, C means complete):
 
doc/kernel/raid.txt +89 -3

130 lines not on this page · raw message

doc/kernel/striped.txt +2 -2
index 45f3b91..07ec492 100644
@@ -37,9 +37,9 @@ if (!$num_devs) {
         die("Specify at least one device\n");
 }
 
-$min_dev_size = `blockdev --getsize $devs[0]`;
+$min_dev_size = `blockdev --getsz $devs[0]`;
 for ($i = 1; $i < $num_devs; $i++) {
-        my $this_size = `blockdev --getsize $devs[$i]`;
+        my $this_size = `blockdev --getsz $devs[$i]`;
         $min_dev_size = ($min_dev_size < $this_size) ?
                         $min_dev_size : $this_size;
 }
doc/kernel/switch.txt +1 -1
index 424835e..5bd4831 100644
@@ -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,
doc/kernel/zoned.txt new file +144 -0

144 lines not on this page · raw message