mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
tests: drop useless literal
Here was usage of '\' unneeded.
This commit is contained in:
parent
5214e62f09
commit
ff2242036b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user