Skip to contentSkip to conversation

dm stripe: document that chunk size is specified in sectors

PATCH New Tomohiro Kusumi 1 participant 2 messages Nov 18, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 dm stripe: document that chunk size is specified in sectors

Mention it's in sector similar to f49e869.
It sounds like one specifies it in a number like 4096.

---
 Documentation/device-mapper/striped.txt |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Documentation/device-mapper/striped.txt +2 -2
index 45f3b91..66a7671 100644
@@ -9,8 +9,8 @@ devices in parallel.
 
 Parameters: <num devs> <chunk size> [<dev path> <offset>]+
     <num devs>: Number of underlying devices.
-    <chunk size>: Size of each chunk of data. Must be at least as
-                  large as the system's PAGE_SIZE.
+    <chunk size>: Size of each chunk of data in sector. Must be
+                  at least as large as the system's PAGE_SIZE.
     <dev path>: Full pathname to the underlying block-device, or a
                 "major:minor" device-number.
     <offset>: Starting sector within the device.
Signature · 1 line
1.7.1
#1 lore raw

PATCH 2/2 dm flakey: document that default I/O error is only for write

.map of dm-flakey with no optional feature parameters specified results in -EIO only for writes during down time. Read bios are submitted as usual whether it's in up or down time.

---
 Documentation/device-mapper/dm-flakey.txt |    2 +-
 drivers/md/dm-flakey.c                    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Documentation/device-mapper/dm-flakey.txt +1 -1
index 6ff5c23..c171706 100644
@@ -27,7 +27,7 @@ Mandatory parameters:
 
 Optional feature parameters:
   If no feature parameters are present, during the periods of
-  unreliability, all I/O returns errors.
+  unreliability, all write I/O returns errors.
 
   drop_writes:
 	All write I/O is silently ignored.
drivers/md/dm-flakey.c +1 -1
index 09e2afc..8da73ac 100644
@@ -312,7 +312,7 @@ static int flakey_map(struct dm_target *ti, struct bio *bio)
 		}
 
 		/*
-		 * By default, error all I/O.
+		 * By default, error all write I/O.
 		 */
 		return -EIO;
 	}
Signature · 1 line
1.7.1