master - tests: drop useless literal
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=ff2242036b9719c51a7f000dcb91f3ad5aa2580a Commit: ff2242036b9719c51a7f000dcb91f3ad5aa2580a Parent: 5214e62f095909da03fac49d2a9e4fa7dabf7244 Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Jul 6 19:45:41 2017 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Jul 10 14:23:53 2017 +0200
tests: drop useless literal
Here was usage of '\' unneeded.
--- test/shell/vgchange-many.sh | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-)
test/shell/vgchange-many.sh +16 -16
@@ -30,23 +30,23 @@ vgcreate -s 128K $vg $(cat DEVICES) vgcfgbackup -f data $vg # Generate a lot of devices (size of 1 extent) -awk -v DEVICES=$DEVICES '/^\t\}/ { \ - printf("\t}\n\tlogical_volumes {\n");\ +awk -v DEVICES=$DEVICES '/^\t\}/ { + printf("\t}\n\tlogical_volumes {\n"); cnt=0; - for (i = 0; i < DEVICES; i++) { \ - printf("\t\tlvol%06d {\n", i);\ - printf("\t\t\tid = \"%06d-1111-2222-3333-2222-1111-%06d\"\n", i, i); \ - print "\t\t\tstatus = [\"READ\", \"WRITE\", \"VISIBLE\"]"; \ - print "\t\t\tsegment_count = 1"; \ - print "\t\t\tsegment1 {"; \ - print "\t\t\t\tstart_extent = 0"; \ - print "\t\t\t\textent_count = 1"; \ - print "\t\t\t\ttype = \"striped\""; \ - print "\t\t\t\tstripe_count = 1"; \ - print "\t\t\t\tstripes = ["; \ - print "\t\t\t\t\t\"pv0\", " cnt++; \ - printf("\t\t\t\t]\n\t\t\t}\n\t\t}\n"); \ - } \ + for (i = 0; i < DEVICES; i++) { + printf("\t\tlvol%06d {\n", i); + printf("\t\t\tid = \"%06d-1111-2222-3333-2222-1111-%06d\"\n", i, i); + print "\t\t\tstatus = [\"READ\", \"WRITE\", \"VISIBLE\"]"; + print "\t\t\tsegment_count = 1"; + print "\t\t\tsegment1 {"; + print "\t\t\t\tstart_extent = 0"; + print "\t\t\t\textent_count = 1"; + print "\t\t\t\ttype = \"striped\""; + print "\t\t\t\tstripe_count = 1"; + print "\t\t\t\tstripes = ["; + print "\t\t\t\t\t\"pv0\", " cnt++; + printf("\t\t\t\t]\n\t\t\t}\n\t\t}\n"); + } } {print} ' data >data_new