]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Remove some trailing white space
authorNeilBrown <neilb@suse.de>
Wed, 1 Jul 2015 22:26:30 +0000 (08:26 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 1 Jul 2015 22:26:30 +0000 (08:26 +1000)
It looks ugly in my editor.

Signed-off-by: NeilBrown <neilb@suse.de>
38 files changed:
external-reshape-design.txt
md.4
mdadm.8.in
mdadm.conf-example
mdassemble.8
tests/00linear
tests/00raid0
tests/00raid1
tests/00raid4
tests/00raid5
tests/00raid6
tests/01r1fail
tests/01r5fail
tests/02r1add
tests/02r1grow
tests/02r5grow
tests/02r6grow
tests/03r0assem
tests/03r5assem
tests/04r0update
tests/04r1update
tests/05r1-add-internalbitmap-v1b
tests/05r1-add-internalbitmap-v1c
tests/05r1-bitmapfile
tests/05r1-grow-external
tests/05r1-grow-internal
tests/05r1-grow-internal-1
tests/05r1-internalbitmap
tests/05r1-internalbitmap-v1a
tests/05r1-internalbitmap-v1b
tests/05r1-internalbitmap-v1c
tests/05r1-n3-bitmapfile
tests/07changelevels
tests/07layouts
tests/10ddf-create
tests/10ddf-incremental-wrong-order
tests/18imsm-r1_2d-takeover-r0_1d
tests/ToTest

index 4eb04a2f91a89fa3c654f796ddccf745a6014b47..10c57ccb64c96ef0b2b785f74fe6a1a244f105c3 100644 (file)
@@ -166,7 +166,7 @@ sync_action
        monitor.
     8/ mdadm::Grow_reshape() calls ->manage_reshape to oversee the
        rest of the reshape.
-       
+
     9/ mdadm::<format>->manage_reshape(): saves data that will be overwritten by
        the kernel to either the backup file or the metadata specific location,
        advances sync_max, waits for reshape, ping mdmon, repeat.
@@ -194,7 +194,7 @@ sync_action
           kernel-managed-metadata this protection is provided by
           ->reshape_safe, but that does not protect us in the case
           of user-space-managed-metadata.
-          
+
    10/ mdadm::<format>->manage_reshape(): Once reshape completes changes the raid
        level back to the nominal raid level (if necessary)
 
@@ -272,9 +272,9 @@ sync_action
        ->set_array_state to record the the reshape is complete.
        For container-wide reshape, this happens once for each
        member array.
-     
-     
-   
+
+
+
 ...
 
 [1]: Linux kernel design patterns - part 3, Neil Brown http://lwn.net/Articles/336262/
diff --git a/md.4 b/md.4
index e222237d90bdcebe9f6e63fe161a543a9847fba1..e955c3b4e8b51afcec64b8640d60022e3ce0ca26 100644 (file)
--- a/md.4
+++ b/md.4
@@ -40,7 +40,7 @@ MULTIPATH (a set of different interfaces to the same device),
 and FAULTY (a layer over a single device into which errors can be injected).
 
 .SS MD METADATA
-Each device in an array may have some 
+Each device in an array may have some
 .I metadata
 stored in the device.  This metadata is sometimes called a
 .BR superblock .
@@ -176,7 +176,7 @@ device is rounded down to a multiple of this chunksize.
 A RAID0 array (which has zero redundancy) is also known as a
 striped array.
 A RAID0 array is configured at creation with a
-.B "Chunk Size" 
+.B "Chunk Size"
 which must be a power of two (prior to Linux 2.6.31), and at least 4
 kibibytes.
 
@@ -1024,7 +1024,7 @@ number of times MD will service a full-stripe-write before servicing a
 stripe that requires some "prereading".  For fairness this defaults to
 1.  Valid values are 0 to stripe_cache_size.  Setting this to 0
 maximizes sequential-write throughput at the cost of fairness to threads
-doing small or random writes.  
+doing small or random writes.
 
 .SS KERNEL PARAMETERS
 
index b4a21d95072d8df59ea2c279d78f6be2357013e0..803d841f8284d52b430a55dc264ddc431c8bb268 100644 (file)
@@ -2196,11 +2196,11 @@ option.  Currently only
 .B name
 is supported.
 
-The 
+The
 .B name
 option updates the subarray name in the metadata, it may not affect the
 device node name or the device node symlink until the subarray is
-re\-assembled.  If updating 
+re\-assembled.  If updating
 .B name
 would change the UUID of an active subarray this operation is blocked,
 and the command will end in an error.
index d9d8d3967518202f87ef4a33e24a80eb87839e2e..35a75d128a6948ac74485d39e63cc2beaacb6c58 100644 (file)
@@ -15,9 +15,9 @@
 #      ARRAY lines specify information about how to identify arrays so
 #        so that they can be activated
 #
-# You can have more than one device line and use wild cards. The first 
+# You can have more than one device line and use wild cards. The first
 # example includes SCSI the first partition of SCSI disks /dev/sdb,
-# /dev/sdc, /dev/sdd, /dev/sdj, /dev/sdk, and /dev/sdl. The second 
+# /dev/sdc, /dev/sdd, /dev/sdj, /dev/sdk, and /dev/sdl. The second
 # line looks for array slices on IDE disks.
 #
 #DEVICE /dev/sd[bcdjkl]1
index ae6f6d459ff3d8e66fa1bb1e352862078526fae6..33192c984316db7097790ef164ca573cff6c189a 100644 (file)
@@ -53,7 +53,7 @@ supports all configuration parameters defined in
 .B mdadm.conf
 with the exception of
 .B auto=
-which is supported only if mdadm was built with the 
+which is supported only if mdadm was built with the
 .B \-DMDASSEMBLE_AUTO
 define.
 
index 30b2c65cf7d55cf5b695bd814fba97c197b7f106..e3ac6555c9dd4d6365f72db5559142f08cb69a4c 100644 (file)
@@ -19,7 +19,7 @@ testdev $md0 4 $mdsize1 1
 mdadm -S $md0
 
 # now with no superblock
-mdadm -B $md0 -l linear -n5 $dev0 $dev1 $dev2 $dev3 $dev4 
+mdadm -B $md0 -l linear -n5 $dev0 $dev1 $dev2 $dev3 $dev4
 check linear
 testdev $md0 5 $size 64
 mdadm -S $md0
index 7f87e6caae4a0406f8dccbab04fb0b5d9f746676..8bc18985f91a19d481129614aa4a24dca633b3ce 100644 (file)
@@ -1,19 +1,19 @@
 
 # create a simple raid0
 
-mdadm -CR $md0 -l raid0 -n3 $dev0 $dev1 $dev2 
+mdadm -CR $md0 -l raid0 -n3 $dev0 $dev1 $dev2
 check raid0
-testdev $md0 3 $mdsize2_l 512 
+testdev $md0 3 $mdsize2_l 512
 mdadm -S $md0
 
 # now with version-0.90 superblock
-mdadm -CR $md0 -e0.90 -l0 -n4 $dev0 $dev1 $dev2 $dev3 
+mdadm -CR $md0 -e0.90 -l0 -n4 $dev0 $dev1 $dev2 $dev3
 check raid0
-testdev $md0 4 $mdsize0 512 
+testdev $md0 4 $mdsize0 512
 mdadm -S $md0
 
 # now with no superblock
-mdadm -B $md0 -l0 -n5 $dev0 $dev1 $dev2 $dev3 $dev4 
+mdadm -B $md0 -l0 -n5 $dev0 $dev1 $dev2 $dev3 $dev4
 check raid0
 testdev $md0 5 $size 512
 mdadm -S $md0
@@ -22,19 +22,19 @@ mdadm -S $md0
 # now same again with different chunk size
 for chunk in 4 32 256
 do
-  mdadm -CR $md0 -e0.90 -l raid0 --chunk $chunk -n3 $dev0 $dev1 $dev2 
+  mdadm -CR $md0 -e0.90 -l raid0 --chunk $chunk -n3 $dev0 $dev1 $dev2
   check raid0
   testdev $md0 3 $mdsize0 $chunk
   mdadm -S $md0
 
   # now with version-1 superblock
-  mdadm -CR $md0 -e1.0 -l0 -c $chunk -n4 $dev0 $dev1 $dev2 $dev3 
+  mdadm -CR $md0 -e1.0 -l0 -c $chunk -n4 $dev0 $dev1 $dev2 $dev3
   check raid0
   testdev $md0 4 $mdsize1 $chunk
   mdadm -S $md0
 
   # now with no superblock
-  mdadm -B $md0 -l0 -n5 --chun=$chunk $dev0 $dev1 $dev2 $dev3 $dev4 
+  mdadm -B $md0 -l0 -n5 --chun=$chunk $dev0 $dev1 $dev2 $dev3 $dev4
   check raid0
   testdev $md0 5 $size $chunk
   mdadm -S $md0
index eb9a658c6ccc68a28fd74ceda1a55fcfa3b1374f..c93465d83a29fb3d602bfb3e47e6a8ea261cf5cd 100644 (file)
@@ -3,28 +3,28 @@
 # test version0, version1, and no super
 # test resync and recovery.
 
-mdadm -CR $md0 -l 1 -n2 $dev0 $dev1 
+mdadm -CR $md0 -l 1 -n2 $dev0 $dev1
 check resync
 check raid1
 testdev $md0 1 $mdsize1a 64
 mdadm -S $md0
 
 # now with version-0.90 superblock, spare
-mdadm -CR $md0 -e0.90 --level=raid1 -n3 -x2 $dev0 missing missing $dev1 $dev2 
+mdadm -CR $md0 -e0.90 --level=raid1 -n3 -x2 $dev0 missing missing $dev1 $dev2
 check recovery
 check raid1
 testdev $md0 1 $mdsize0 64
 mdadm -S $md0
 
 # now with no superblock
-mdadm -B $md0 -l mirror  -n2 $dev0 $dev1  
+mdadm -B $md0 -l mirror  -n2 $dev0 $dev1
 check resync
 check raid1
 testdev $md0 1 $size 1
 mdadm -S $md0
 
 # again, but with no resync
-mdadm -B $md0 -l 1 --assume-clean -n2 $dev0 $dev1 
+mdadm -B $md0 -l 1 --assume-clean -n2 $dev0 $dev1
 check raid1
 check nosync
 testdev $md0 1 $size 1
index 97d3e3fd6b6b53f205643840107d711d737a916f..00a14f2f83e672e7392f4ae1d4a707bde13c407d 100644 (file)
@@ -1,13 +1,13 @@
 
 # create a simple raid4 set
 
-mdadm -CfR $md0 -l 4 -n3 $dev0 $dev1 $dev2 
+mdadm -CfR $md0 -l 4 -n3 $dev0 $dev1 $dev2
 check resync ; check raid[45]
 testdev $md0 2 $mdsize1 512
 mdadm -S $md0
 
 # now with version-1 superblock
-mdadm -CR $md0 -e1 --level=raid4 -n4 $dev0 $dev1 $dev2 $dev3 
+mdadm -CR $md0 -e1 --level=raid4 -n4 $dev0 $dev1 $dev2 $dev3
 check recovery; check raid[45]
 testdev $md0 3 $mdsize1 512
 mdadm -S $md0
index a288c83991aeca4ef00024d1f0d0d4d3eefc023f..b2b7a971e80f0f4be7119d07cc983ded00d3a2da 100644 (file)
@@ -1,13 +1,13 @@
 
 # create a simple raid5 set
 
-mdadm -CfR $md0 -e 0.90 -l 5 -n3 $dev0 $dev1 $dev2 
+mdadm -CfR $md0 -e 0.90 -l 5 -n3 $dev0 $dev1 $dev2
 check resync
 testdev $md0 2 $mdsize0 512
 mdadm -S $md0
 
 # now with version-1 superblock
-mdadm -CR $md0 -e1 --level=raid5 -n4 $dev0 $dev1 $dev2 $dev3 
+mdadm -CR $md0 -e1 --level=raid5 -n4 $dev0 $dev1 $dev2 $dev3
 check recovery
 testdev $md0 3 $mdsize1 512
 mdadm -S $md0
@@ -17,13 +17,13 @@ mdadm -S $md0
 for lo in la ra left-symmetric right-symmetric
 do
 
-  mdadm -CfR $md0  -l 5 -p $lo -n3 $dev0 $dev1 $dev2 
+  mdadm -CfR $md0  -l 5 -p $lo -n3 $dev0 $dev1 $dev2
   check resync ; check raid5
   testdev $md0 2 $mdsize1 512
   mdadm -S $md0
 
   # now with version-1 superblock
-  mdadm -CR $md0 -e1 --level=raid5 --layout $lo -n4 $dev0 $dev1 $dev2 $dev3 
+  mdadm -CR $md0 -e1 --level=raid5 --layout $lo -n4 $dev0 $dev1 $dev2 $dev3
   check recovery ; check raid5
   testdev $md0 3 $mdsize1 512
   mdadm -S $md0
index 63d60f5c1445a0d7f2cf13a8c8560087dbb2fb0f..6977af9b639e0b2ed0c2a8d291b35b362656878a 100644 (file)
@@ -1,13 +1,13 @@
 
 # create a simple raid6 set
 
-mdadm -CfR $md0 -e0.90 -l 6 -n4 $dev0 $dev1 $dev2 $dev3 
+mdadm -CfR $md0 -e0.90 -l 6 -n4 $dev0 $dev1 $dev2 $dev3
 check resync ; check raid6
 testdev $md0 2 $mdsize0 512
 mdadm -S $md0
 
 # now with version-1 superblock
-mdadm -CR $md0 -e1 --level=raid6 -n5 $dev0 $dev1 $dev2 $dev3 $dev4 
+mdadm -CR $md0 -e1 --level=raid6 -n5 $dev0 $dev1 $dev2 $dev3 $dev4
 check resync ; check raid6
 testdev $md0 3 $mdsize1 512
 mdadm -S $md0
index 9f5563210a9f6768bff6c232ea5fc62cfe46077d..389b813fda1c7c4437d5d53bfed6b5ef78cc365f 100644 (file)
@@ -5,23 +5,23 @@
 
 mdadm -CR $md0 -l1 -n4 $dev0 $dev1 $dev2 missing
 check resync
-mdadm $md0 --fail $dev2 
+mdadm $md0 --fail $dev2
 check resync
-mdadm $md0 --fail $dev1 
+mdadm $md0 --fail $dev1
 sleep 1
 check nosync
 check state U___
-mdadm $md0 --add $dev4 $dev3 
+mdadm $md0 --add $dev4 $dev3
 check recovery
 # there could be two separate recoveries, one for each dev
 check wait
 check wait
-mdadm $md0 --remove $dev2 $dev1 
+mdadm $md0 --remove $dev2 $dev1
 check nosync
 check state UUU_
 
 mdadm --zero-superblock $dev2
-mdadm $md0 -a $dev2 
+mdadm $md0 -a $dev2
 check recovery
 check wait
 check state UUUU
index 1d6293216ae11e4343a18027cd663df0a9d831ae..873dba585e58a3d6c222a0f4177ee071032f14bd 100644 (file)
@@ -4,22 +4,22 @@
 # Add two more, fail and remove one
 # wait for sync to complete, fail, remove, re-add
 
-mdadm -CR $md0 -l5 -n4 $dev0 $dev1 $dev2 $dev3 
+mdadm -CR $md0 -l5 -n4 $dev0 $dev1 $dev2 $dev3
 check recovery
 mdadm $md0 --fail $dev3
 sleep 1
 check nosync
 check state UUU_
 
-mdadm $md0 --add $dev4 $dev5 
+mdadm $md0 --add $dev4 $dev5
 check recovery
 check wait
-mdadm $md0 --fail $dev0 
-mdadm $md0 --remove $dev3 $dev0 
+mdadm $md0 --fail $dev0
+mdadm $md0 --remove $dev3 $dev0
 check recovery
 check state _UUU
 
-mdadm $md0 -a $dev3 
+mdadm $md0 -a $dev3
 check recovery
 check wait
 check state UUUU
index c07ec9775da498874c3b5631c1aa99ae2670dc2e..757f696527505488dba04b4a5c1b082ad93e8421 100644 (file)
@@ -1,7 +1,7 @@
 
 # Make a raid1,  add a device, then remove it again.
 
-mdadm -CR $md0 -l1 -n2 -x1 $dev0 $dev1 $dev2  
+mdadm -CR $md0 -l1 -n2 -x1 $dev0 $dev1 $dev2
 check resync
 check wait
 check state UU
@@ -11,7 +11,7 @@ check recovery
 check wait
 check state UUU
 
-mdadm $md0 --fail $dev0 
+mdadm $md0 --fail $dev0
 check state _UU
 
 mdadm --grow $md0 -n 2
@@ -21,7 +21,7 @@ mdadm -S $md0
 # same again for version-1
 
 
-mdadm -CR $md0 -l1 -n2 -e1.2 -x1 $dev0 $dev1 $dev2  
+mdadm -CR $md0 -l1 -n2 -e1.2 -x1 $dev0 $dev1 $dev2
 check resync
 check wait
 check state UU
@@ -31,7 +31,7 @@ check recovery
 check wait
 check state UUU
 
-mdadm $md0 --fail $dev0 
+mdadm $md0 --fail $dev0
 check state _UU
 
 mdadm --grow $md0 -n 2
index 6604208d9c7cdda1433f25361b91127028dbd297..5754c88bb170816c9867d39f76681d290f5a2313 100644 (file)
@@ -2,7 +2,7 @@
 
 # create a small raid1 array, make it larger.  Then make it smaller
 
-mdadm -CR $md0 -e 0.90 --level raid1 --raid-disks 3 --size $[size/2] $dev1 $dev2 $dev3 
+mdadm -CR $md0 -e 0.90 --level raid1 --raid-disks 3 --size $[size/2] $dev1 $dev2 $dev3
 check wait
 check state UUU
 testdev $md0 1 $[size/2] 1
@@ -19,7 +19,7 @@ testdev $md0 1 $[size/2] 1
 mdadm -S $md0
 
 # same again with version 1.1 superblock
-mdadm -CR $md0 --level raid1 --metadata=1.1 --raid-disks 3 --size $[size/2] $dev1 $dev2 $dev3 
+mdadm -CR $md0 --level raid1 --metadata=1.1 --raid-disks 3 --size $[size/2] $dev1 $dev2 $dev3
 check wait
 check state UUU
 testdev $md0 1 $[size/2] 1
index b91ffcd41ee5878b0b6f0fbdf33f242985807c3d..386e82ee9b9e3f8cf0465f5466fd34578cfc2dd3 100644 (file)
@@ -2,7 +2,7 @@
 
 # create a small raid5 array, make it larger.  Then make it smaller
 
-mdadm -CR $md0 -e0.90 --level raid5 --chunk=64 --raid-disks 3 --size $[size/2] $dev1 $dev2 $dev3 
+mdadm -CR $md0 -e0.90 --level raid5 --chunk=64 --raid-disks 3 --size $[size/2] $dev1 $dev2 $dev3
 check wait
 check state UUU
 testdev $md0 2 $[size/2] 32
@@ -19,7 +19,7 @@ testdev $md0 2 $[size/2] 32
 mdadm -S $md0
 
 # same again with version 1.1 superblock
-mdadm -CR $md0 --level raid5 --metadata=1.1 --chunk=128 --raid-disks 4 --size $[size/2] $dev1 $dev2 $dev3 $dev4 
+mdadm -CR $md0 --level raid5 --metadata=1.1 --chunk=128 --raid-disks 4 --size $[size/2] $dev1 $dev2 $dev3 $dev4
 check wait
 check state UUUU
 testdev $md0 3 $[size/2] 128
index 38c77810319a8670a3d90dbb4ebeebed3ec45f3c..759e6275eade794dfee28f5e190f484bfae79ef3 100644 (file)
@@ -2,7 +2,7 @@
 
 # create a small raid6 array, make it larger.  Then make it smaller
 
-mdadm -CR $md0 -e 0.90 --level raid6 --chunk=64 --raid-disks 4 --size $[size/2] $dev1 $dev2 $dev3 $dev4 
+mdadm -CR $md0 -e 0.90 --level raid6 --chunk=64 --raid-disks 4 --size $[size/2] $dev1 $dev2 $dev3 $dev4
 check wait
 check state UUUU
 testdev $md0 2 $[size/2] 32
@@ -19,7 +19,7 @@ testdev $md0 2 $[size/2] 32
 mdadm -S $md0
 
 # same again with version 1.1 superblock
-mdadm -CR $md0 --level raid6 --metadata=1.1 --chunk=128 --raid-disks 4 --size $[size/2] $dev1 $dev2 $dev3 $dev4 
+mdadm -CR $md0 --level raid6 --metadata=1.1 --chunk=128 --raid-disks 4 --size $[size/2] $dev1 $dev2 $dev3 $dev4
 check wait
 check state UUUU
 testdev $md0 2 $[size/2] 128
index 0b998ec1f918fe152057809086407eb8838f93d1..6744e3221062943989a2a74817c88e8de90d6ca0 100644 (file)
@@ -4,63 +4,63 @@
 # uuid, md-minor on command line with wildcard devices
 # mdadm.conf file
 
-mdadm -CR $md2 -l0 -n3 $dev0 $dev1 $dev2 
+mdadm -CR $md2 -l0 -n3 $dev0 $dev1 $dev2
 check raid0
 tst="testdev $md2 3 $mdsize1_l 512"
 $tst
 uuid=`mdadm -Db $md2 | sed 's/.*UUID=//'`
 mdadm -S $md2
 
-mdadm -A $md2 $dev0 $dev1 $dev2  
+mdadm -A $md2 $dev0 $dev1 $dev2
 $tst
 mdadm -S $md2
 
-mdadm -A $md2 -u $uuid $devlist 
+mdadm -A $md2 -u $uuid $devlist
 $tst
 mdadm -S $md2
 
-mdadm --assemble $md2 --name=2 $devlist 
+mdadm --assemble $md2 --name=2 $devlist
 $tst
 mdadm -S $md2
 
 conf=$targetdir/mdadm.conf
-{ 
+{
   echo DEVICE $devlist
   echo array $md2 UUID=$uuid
 } > $conf
 
-mdadm -As -c $conf $md2 
+mdadm -As -c $conf $md2
 $tst
 mdadm -S $md2
 
-{ 
+{
   echo DEVICE $devlist
   echo array $md2 name=2
 } > $conf
 
-mdadm -As -c $conf $md2 
+mdadm -As -c $conf $md2
 $tst
 mdadm -S $md2
 
 
-{ 
+{
   echo DEVICE $devlist
   echo array $md2 devices=$dev0,$dev1,$dev2
 } > $conf
 
-mdadm -As -c $conf $md2 
+mdadm -As -c $conf $md2
 $tst
 
 echo "DEVICE $devlist" > $conf
 mdadm -Db $md2 >> $conf
 mdadm -S $md2
 
-mdadm --assemble --scan --config=$conf $md2 
+mdadm --assemble --scan --config=$conf $md2
 $tst
 mdadm -S $md2
 
 echo "  metadata=0.90 devices=$dev0,$dev1,$dev2" >> $conf
-mdadm --assemble --scan --config=$conf $md2 
+mdadm --assemble --scan --config=$conf $md2
 $tst
 mdadm -S $md2
 
@@ -68,7 +68,7 @@ mdadm -S $md2
 ### Now for version 0...
 
 mdadm --zero-superblock $dev0 $dev1 $dev2
-mdadm -CR $md2 -l0 --metadata=0.90 -n3 $dev0 $dev1 $dev2 
+mdadm -CR $md2 -l0 --metadata=0.90 -n3 $dev0 $dev1 $dev2
 check raid0
 tst="testdev $md2 3 $mdsize0 512"
 $tst
@@ -76,56 +76,56 @@ $tst
 uuid=`mdadm -Db $md2 | sed 's/.*UUID=//'`
 mdadm -S $md2
 
-mdadm -A $md2 $dev0 $dev1 $dev2  
+mdadm -A $md2 $dev0 $dev1 $dev2
 $tst
 mdadm -S $md2
 
-mdadm -A $md2 -u $uuid $devlist 
+mdadm -A $md2 -u $uuid $devlist
 $tst
 mdadm -S $md2
 
-mdadm --assemble $md2 --super-minor=2 $devlist # 
+mdadm --assemble $md2 --super-minor=2 $devlist #
 $tst
 mdadm -S $md2
 
 conf=$targetdir/mdadm.conf
-{ 
+{
   echo DEVICE $devlist
   echo array $md2 UUID=$uuid
 } > $conf
 
-mdadm -As -c $conf $md2 
+mdadm -As -c $conf $md2
 $tst
 mdadm -S $md2
 
-{ 
+{
   echo DEVICE $devlist
   echo array $md2 super-minor=2
 } > $conf
 
-mdadm -As -c $conf $md2 
+mdadm -As -c $conf $md2
 $tst
 mdadm -S $md2
 
 
-{ 
+{
   echo DEVICE $devlist
   echo array $md2 devices=$dev0,$dev1,$dev2
 } > $conf
 
-mdadm -As -c $conf $md2 
+mdadm -As -c $conf $md2
 $tst
 
 echo "DEVICE $devlist" > $conf
 mdadm -Db $md2 >> $conf
 mdadm -S $md2
 
-mdadm --assemble --scan --config=$conf $md2 
+mdadm --assemble --scan --config=$conf $md2
 $tst
 mdadm -S $md2
 
 echo "  metadata=1 devices=$dev0,$dev1,$dev2" >> $conf
-mdadm --assemble --scan --config=$conf $md2 
+mdadm --assemble --scan --config=$conf $md2
 $tst
 mdadm -S $md2
 
index de0d56b6b02233d67f6a2259313a66e7322f738b..0c7fb8c65e1724823d1cc3f486c6060ced24d437 100644 (file)
 # create a raid5 array and assemble it in various ways,
 # including with missing devices.
 
-mdadm -CR -e 0.90 $md1 -l5 -n3 $dev0 $dev1 $dev2 
+mdadm -CR -e 0.90 $md1 -l5 -n3 $dev0 $dev1 $dev2
 tst="check raid5 ;testdev $md1 2 $mdsize0 512 ; mdadm -S $md1"
 uuid=`mdadm -Db $md1 | sed 's/.*UUID=//'`
 check wait
 eval $tst
 
-mdadm -A $md1 $dev0 $dev1 $dev2 
+mdadm -A $md1 $dev0 $dev1 $dev2
 eval $tst
 
-mdadm -A $md1 -u $uuid $devlist 
+mdadm -A $md1 -u $uuid $devlist
 eval $tst
 
-mdadm -A $md1 -m 1 $devlist  
+mdadm -A $md1 -m 1 $devlist
 eval $tst
 
 
 conf=$targetdir/mdadm.conf
-{ 
+{
   echo DEVICE $devlist
   echo array $md1 UUID=$uuid
 } > $conf
 
-mdadm -As -c $conf $md1 
+mdadm -As -c $conf $md1
 eval $tst
 
-{ 
+{
   echo DEVICE $devlist
   echo array $md1 super-minor=1
 } > $conf
 
-mdadm -As -c $conf  
+mdadm -As -c $conf
 eval $tst
 
-{ 
+{
   echo DEVICE $devlist
   echo array $md1 devices=$dev0,$dev1,$dev2
 } > $conf
 
-mdadm -As -c $conf 
+mdadm -As -c $conf
 
 echo "DEVICE $devlist" > $conf
 mdadm -Db $md1 >> $conf
 eval $tst
 
-mdadm --assemble --scan --config=$conf $md1 
+mdadm --assemble --scan --config=$conf $md1
 eval $tst
 
 echo "  metadata=0.90 devices=$dev0,$dev1,$dev2" >> $conf
-mdadm --assemble --scan --config=$conf $md1 
+mdadm --assemble --scan --config=$conf $md1
 eval $tst
 
 ### Now with a missing device
 
-mdadm -AR $md1 $dev0 $dev2 # 
+mdadm -AR $md1 $dev0 $dev2 #
 check state U_U
 eval $tst
 
-mdadm -A $md1 -u $uuid $devlist 
+mdadm -A $md1 -u $uuid $devlist
 check state U_U
 eval $tst
 
-mdadm -A $md1 -m 1 $devlist  
+mdadm -A $md1 -m 1 $devlist
 check state U_U
 eval $tst
 
 
 conf=$targetdir/mdadm.conf
-{ 
+{
   echo DEVICE $devlist
   echo array $md1 UUID=$uuid
 } > $conf
 
-mdadm -As -c $conf $md1 
+mdadm -As -c $conf $md1
 check state U_U
 eval $tst
 
-{ 
+{
   echo DEVICE $devlist
   echo array $md1 super-minor=1
 } > $conf
 
-mdadm -As -c $conf  
+mdadm -As -c $conf
 check state U_U
 eval $tst
 
-{ 
+{
   echo DEVICE $devlist
   echo array $md1 devices=$dev0,$dev1,$dev2
 } > $conf
 
-mdadm -As -c $conf 
+mdadm -As -c $conf
 
 echo "DEVICE $devlist" > $conf
 mdadm -Db $md1 >> $conf
 check state U_U
 eval $tst
 
-mdadm --assemble --scan --config=$conf $md1 
+mdadm --assemble --scan --config=$conf $md1
 check state U_U
 eval $tst
 
 echo "  metadata=0.90 devices=$dev0,$dev1,$dev2" >> $conf
-mdadm --assemble --scan --config=$conf $md1 
+mdadm --assemble --scan --config=$conf $md1
 check state U_U
 eval $tst
index 0cd815acd4886a8bb8421ae9a6c72efbcda02bb1..73ee3b9fed918de030149f9a836ac469a696eefe 100644 (file)
@@ -1,15 +1,15 @@
 
 # create a raid0, re-assemble with a different super-minor
-mdadm -CR -e 0.90 $md0 -l0 -n3 $dev0 $dev1 $dev2 
+mdadm -CR -e 0.90 $md0 -l0 -n3 $dev0 $dev1 $dev2
 testdev $md0 3 $mdsize0 512
 minor1=`mdadm -E $dev0 | sed -n -e 's/.*Preferred Minor : //p'`
 mdadm -S /dev/md0
 
-mdadm -A $md1 $dev0 $dev1 $dev2 
+mdadm -A $md1 $dev0 $dev1 $dev2
 minor2=`mdadm -E $dev0 | sed -n -e 's/.*Preferred Minor : //p'`
 mdadm -S /dev/md1
 
-mdadm -A $md1 --update=super-minor $dev0 $dev1 $dev2  
+mdadm -A $md1 --update=super-minor $dev0 $dev1 $dev2
 minor3=`mdadm -E $dev0 | sed -n -e 's/.*Preferred Minor : //p'`
 mdadm -S /dev/md1
 
index 7a50131f79ba83280c83ade74b9ac005c57ac8ef..e22965bccd0a115c83963d4f6596de5daa0d60b1 100644 (file)
@@ -2,14 +2,14 @@ set -i
 
 # create a raid1 array, let it sync, then re-assemble with a force-sync
 
-mdadm -CR $md0 -l1 -n2 $dev0 $dev1 
+mdadm -CR $md0 -l1 -n2 $dev0 $dev1
 check wait
 mdadm -S $md0
 
-mdadm -A $md0 $dev0 $dev1 
+mdadm -A $md0 $dev0 $dev1
 check nosync
 mdadm -S $md0
 
-mdadm -A $md0 -U resync $dev0 $dev1 
+mdadm -A $md0 -U resync $dev0 $dev1
 check resync
 mdadm -S $md0
index b077fa7efadfb09ac58ad21416ecd6e686937037..da78fd61340174fcec73a9c89113a3d88f75e55b 100644 (file)
@@ -1,4 +1,4 @@
-# 
+#
 # create a raid1 without any bitmap, add the bitmap and then write to
 # the device. This should catch the case where the bitmap is created
 # but not reloaded correctly, such as the case fixed by
index 7b3978444bc0d14245f1dd0ccece73a57cd845c8..9f2f128b0336d81f7c5f1e74b1c8750fe831f71f 100644 (file)
@@ -1,4 +1,4 @@
-# 
+#
 # create a raid1 without any bitmap, add the bitmap and then write to
 # the device. This should catch the case where the bitmap is created
 # but not reloaded correctly, such as the case fixed by
index fcd8372bae17cb4a66ab8861bf38ea0997665953..f384f0ea4185b73b7b65430fed543d990539bcde 100644 (file)
@@ -1,10 +1,10 @@
 
-# 
+#
 # create a raid1 with a bitmap file
 #
 bmf=$targetdir/bitmap
 rm -f $bmf
-mdadm --create --run $md0 --level=1 -n2 --delay=1  --bitmap $bmf $dev1 $dev2  
+mdadm --create --run $md0 --level=1 -n2 --delay=1  --bitmap $bmf $dev1 $dev2
 check wait
 testdev $md0 1 $mdsize1a 64
 mdadm -S $md0
@@ -24,7 +24,7 @@ testdev $md0 1 $mdsize1a 64
 sleep 4
 dirty3=`mdadm -X $bmf | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
 if [ $dirty3 -lt 400 ]
-then 
+then
    echo >&2 "ERROR dirty count $dirty3 is too small"
    exit 2
 fi
index 496663695619c9020cd66672fba59710302e1a3f..69da3e90eeda650ae0f7a4f4e8898240e1db4766 100644 (file)
@@ -21,7 +21,7 @@ dirty4=`mdadm -X $bmf | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
 
 #echo $dirty1 $dirty2 $dirty3 $dirty4
 if [ $dirty2 -ne 0 -o $dirty4 -ne 0 -o $dirty3 -lt 400 ]
-then 
+then
    echo bad dirty counts
    exit 1
 fi
index a648b440508b77c396bb4ac748d41d1a3901b823..24b3aece2bfd8c5dcce7fbdb041b7805ddd62277 100644 (file)
@@ -19,7 +19,7 @@ dirty4=`mdadm -X $dev2 | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
 
 #echo $dirty1 $dirty2 $dirty3 $dirty4
 if [ $dirty2 -ne 0 -o $dirty4 -ne 0 -o $dirty3 -lt 400 ]
-then 
+then
    echo bad dirty counts
    exit 1
 fi
index a110f3b0cb09876634a2e6e0b84208c32c64d54f..2f0d82376164085c933a4052decf37ac1033eb9b 100644 (file)
@@ -19,7 +19,7 @@ dirty4=`mdadm -X $dev2 | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
 
 #echo $dirty1 $dirty2 $dirty3 $dirty4
 if [ $dirty2 -ne 0 -o $dirty4 -ne 0 -o $dirty3 -lt 400 ]
-then 
+then
    echo bad dirty counts
    exit 1
 fi
index 2bfeab8ebdf6e0a13caa050a1f8de46193e53107..dd7232a7ad5adc7ee29e4bde73780b390aecc8f7 100644 (file)
@@ -1,8 +1,8 @@
 
-# 
+#
 # create a raid1 with an internal bitmap
 #
-mdadm --create -e0.90 --run $md0 --level=1 -n2 --delay=1  --bitmap internal --bitmap-chunk=4 $dev1 $dev2  
+mdadm --create -e0.90 --run $md0 --level=1 -n2 --delay=1  --bitmap internal --bitmap-chunk=4 $dev1 $dev2
 check wait
 testdev $md0 1 $mdsize0 64
 mdadm -S $md0
@@ -22,7 +22,7 @@ testdev $md0 1 $mdsize0 64
 sleep 4
 dirty3=`mdadm -X $dev2 | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
 if [ $dirty3 -lt 400 ]
-then 
+then
    echo >&2 "ERROR dirty count $dirty3 is too small"
    exit 2
 fi
index 3fcb0249050567b733b57fc1ab8950c520799d8b..3ddc082feafcf9ad286c54aa493644d2f595a947 100644 (file)
@@ -1,8 +1,8 @@
 
-# 
+#
 # create a raid1 with an internal bitmap
 #
-mdadm --create --run $md0 --metadata=1.0 --level=1 -n2 --delay=1  --bitmap internal --bitmap-chunk=4 $dev1 $dev2  
+mdadm --create --run $md0 --metadata=1.0 --level=1 -n2 --delay=1  --bitmap internal --bitmap-chunk=4 $dev1 $dev2
 check wait
 check bitmap
 testdev $md0 1 $mdsize1b 64
@@ -23,7 +23,7 @@ testdev $md0 1 $mdsize1b 64
 sleep 4
 dirty3=`mdadm -X $dev2 | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
 if [ $dirty3 -lt 400 ]
-then 
+then
    echo >&2 "ERROR dirty count $dirty3 is too small"
    exit 2
 fi
index 1097536b280ad3598c7e1f52d5d06573cbc20084..40f7abea46a38977d52f0f6ff50d4efe72f7a77b 100644 (file)
@@ -1,8 +1,8 @@
 
-# 
+#
 # create a raid1 with an internal bitmap
 #
-mdadm --create --run $md0 --metadata=1.1 --level=1 -n2 --delay=1  --bitmap internal --bitmap-chunk=4 $dev1 $dev2  
+mdadm --create --run $md0 --metadata=1.1 --level=1 -n2 --delay=1  --bitmap internal --bitmap-chunk=4 $dev1 $dev2
 check wait
 check bitmap
 testdev $md0 1 $mdsize11 64
@@ -24,7 +24,7 @@ testdev $md0 1 $mdsize11 64
 sleep 4
 dirty3=`mdadm -X $dev2 | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
 if [ $dirty3 -lt 400 ]
-then 
+then
    echo >&2 "ERROR dirty count $dirty3 is too small"
    exit 2
 fi
index f6bbcf6bfc15472aee7753b9f54cffc9c87bd9c6..2eaea59b79c05377091568a7a4b049a7083b9a8a 100644 (file)
@@ -1,8 +1,8 @@
 
-# 
+#
 # create a raid1 with an internal bitmap
 #
-mdadm --create --run $md0 --metadata=1.2 --level=1 -n2 --delay=1  --bitmap internal --bitmap-chunk 4 $dev1 $dev2  
+mdadm --create --run $md0 --metadata=1.2 --level=1 -n2 --delay=1  --bitmap internal --bitmap-chunk 4 $dev1 $dev2
 check wait
 check bitmap
 testdev $md0 1 $mdsize12 64
@@ -23,7 +23,7 @@ testdev $md0 1 $mdsize12 64
 sleep 4
 dirty3=`mdadm -X $dev2 | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
 if [ $dirty3 -lt 400 ]
-then 
+then
    echo >&2 "ERROR dirty count $dirty3 is too small"
    exit 2
 fi
index 1bb9af16b115edba9df7ad0fa58739065c8a370f..f1c3f1eecf01ad11ce310fdb93b3c611caabbfb9 100644 (file)
@@ -1,12 +1,12 @@
 
-# 
+#
 # create a raid1 with 3 devices and a bitmap file
 # make  sure resync does right thing.
 #
 #
 bmf=$targetdir/bitmap
 rm -f $bmf
-mdadm --create -e0.90 --run $md0 --level=1 -n3 --delay=1  --bitmap $bmf $dev1 $dev2 $dev3  
+mdadm --create -e0.90 --run $md0 --level=1 -n3 --delay=1  --bitmap $bmf $dev1 $dev2 $dev3
 check wait
 testdev $md0 1 $mdsize0 64
 mdadm -S $md0
@@ -26,7 +26,7 @@ testdev $md0 1 $mdsize0 64
 sleep 4
 dirty3=`mdadm -X $bmf | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
 if [ $dirty3 -lt 400 ]
-then 
+then
    echo >&2 "ERROR dirty count $dirty3 is too small"
    exit 2
 fi
index 5d1051a148f8c7ca69207ed28806a494ee74e766..a328874ac43ffb182ac6ffc8569fa1867906a084 100644 (file)
@@ -27,7 +27,7 @@ checkgeo() {
  sleep 0.5
  check wait
  sleep 1
- for attr in level raid_disks chunk_size layout 
+ for attr in level raid_disks chunk_size layout
  do
    if [ $# -gt 0 ] ; then
       val=$1
index 4c20eb8bb7b7b8dc3479044c411d76bb4fa82365..acd1a800e58e59559f76c0244d4e40d49e075d70 100644 (file)
@@ -28,7 +28,7 @@ checkgeo() {
  shift
  sleep 0.5
  check wait
- for attr in level raid_disks chunk_size layout 
+ for attr in level raid_disks chunk_size layout
  do
    if [ $# -gt 0 ] ; then
       val=$1
@@ -40,7 +40,7 @@ checkgeo() {
    fi
  done
 }
-   
+
 
 bu=/tmp/md-test-backup
 rm -f $bu
index 2f7747cda67a118e1cf2b31f3d316ef583874f59..44e95441faabe52748f54c843bcedacf3f327c7d 100644 (file)
@@ -78,7 +78,7 @@ mdadm -Ss
 
 # and now assemble fully incrementally.
 for i in  $dev8 $dev9 $dev10 $dev11 $dev12
-do 
+do
    mdadm -I $i -c /var/tmp/mdadm.conf
 done
 check nosync
index d4e0d81797bbab30321f010a674b25e2d5c8b0dc..1c088c117a2df73c03937309136180460d9bb2f8 100644 (file)
@@ -52,11 +52,11 @@ fi
 
 #[ -f /var/tmp/mdmon.log ] && cat /var/tmp/mdmon.log
 
-# Now reassemble 
+# Now reassemble
 # Note that we add the previously missing disks first.
 # $dev10 should have a higher seq number than $dev8
 for d in $dev8 $dev9 $dev10 $dev11; do
-    mdadm -I $d  
+    mdadm -I $d
 done
 
 mdadm -IRs || true
index 1697d60ed5c14ad3bae6d914026be267a384a2c5..cb10ec970ec29e38d669e64a8f05de4ebe1fa5bb 100644 (file)
@@ -10,7 +10,7 @@ device_list="$dev0 $dev1"
 vol0_level=1
 vol0_comp_size=$((5 * 1024))
 vol0_chunk=64
-vol0_num_comps=$(( $num_disks - 1 )) 
+vol0_num_comps=$(( $num_disks - 1 ))
 vol0_offset=0
 
 # After: RAID 0 volume, 1 disks, 64k chunk size
index 31d708281e5abd16a42c6e31b679376658a62e7a..b98e266d9ce65882e460d8c865baf9997bc1e593 100644 (file)
@@ -6,7 +6,7 @@ add/remove/fail
   raid5 DONE
   raid6/10 needed??
 
-assemble 
+assemble
   by devices     DONE
   by uuid        DONE
   by superminor  DONE
@@ -23,7 +23,7 @@ bitmap
   separate file
   internal
   filename in config file
-  
+
 examine
   --scan
   --brief