fix tab damage that broke examples formatting in man page
When did vim default to expandtabs for mdwn? No.
This commit is contained in:
parent
8e94b75a61
commit
431499e4ff
1 changed files with 57 additions and 57 deletions
|
@ -46,40 +46,40 @@ followed by parameters to the command. Lines starting with "#" are comments.
|
||||||
|
|
||||||
Here is an example sim file:
|
Here is an example sim file:
|
||||||
|
|
||||||
# add repositories to the simulation and connect them as remotes
|
# add repositories to the simulation and connect them as remotes
|
||||||
init foo
|
init foo
|
||||||
init bar
|
init bar
|
||||||
connect foo <-> bar
|
connect foo <-> bar
|
||||||
|
|
||||||
# add a special remote
|
# add a special remote
|
||||||
initremote baz
|
initremote baz
|
||||||
connect foo -> baz <- bar
|
connect foo -> baz <- bar
|
||||||
|
|
||||||
# configure repositories
|
# configure repositories
|
||||||
numcopies 2
|
numcopies 2
|
||||||
group foo client
|
group foo client
|
||||||
wanted foo standard
|
wanted foo standard
|
||||||
group bar archive
|
group bar archive
|
||||||
wanted bar standard
|
wanted bar standard
|
||||||
wanted baz include=*.mp3
|
wanted baz include=*.mp3
|
||||||
|
|
||||||
# add annexed files in the working tree to the simulation, as if they
|
# add annexed files in the working tree to the simulation, as if they
|
||||||
# were just added to repository foo
|
# were just added to repository foo
|
||||||
addtree foo include=*.mp3
|
addtree foo include=*.mp3
|
||||||
addtree foo include=*.jpg
|
addtree foo include=*.jpg
|
||||||
addtree foo include=bigfiles/
|
addtree foo include=bigfiles/
|
||||||
|
|
||||||
# add simulated annexed files
|
# add simulated annexed files
|
||||||
add bigfile 100gb bar
|
add bigfile 100gb bar
|
||||||
add hugefile 10tb foo
|
add hugefile 10tb foo
|
||||||
|
|
||||||
# run the simulation forward by ten steps
|
# run the simulation forward by ten steps
|
||||||
step 10
|
step 10
|
||||||
|
|
||||||
# remove foo's remote bar and see if a new file added to foo reaches bar
|
# remove foo's remote bar and see if a new file added to foo reaches bar
|
||||||
disconnect foo -> bar
|
disconnect foo -> bar
|
||||||
add foo.mp3 2mb foo
|
add foo.mp3 2mb foo
|
||||||
step 5
|
step 5
|
||||||
|
|
||||||
# SIM COMMANDS
|
# SIM COMMANDS
|
||||||
|
|
||||||
|
@ -181,7 +181,7 @@ as passed to "git annex sim" while a simulation is running.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
addmulti 100 testfile.jpg 100kb 10mb foo
|
addmulti 100 testfile.jpg 100kb 10mb foo
|
||||||
|
|
||||||
That adds files named "1testfile.jpg", 2testfile.jpg", etc.
|
That adds files named "1testfile.jpg", 2testfile.jpg", etc.
|
||||||
|
|
||||||
|
@ -261,7 +261,7 @@ as passed to "git annex sim" while a simulation is running.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
action foo dropunwanted while action bar getwanted foo
|
action foo dropunwanted while action bar getwanted foo
|
||||||
|
|
||||||
In this example, bar may or may not get a file before foo drops it.
|
In this example, bar may or may not get a file before foo drops it.
|
||||||
|
|
||||||
|
@ -363,10 +363,10 @@ as passed to "git annex sim" while a simulation is running.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
maxsize foo 1tb
|
maxsize foo 1tb
|
||||||
rebalance on
|
rebalance on
|
||||||
step 100
|
step 100
|
||||||
rebalance off
|
rebalance off
|
||||||
|
|
||||||
* `clusternode name repo`
|
* `clusternode name repo`
|
||||||
|
|
||||||
|
@ -388,23 +388,23 @@ as passed to "git annex sim" while a simulation is running.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
init foo
|
init foo
|
||||||
init bar
|
init bar
|
||||||
init node1
|
init node1
|
||||||
init node2
|
init node2
|
||||||
clusternode cluster-node1 node1
|
clusternode cluster-node1 node1
|
||||||
clusternode cluster-node2 node2
|
clusternode cluster-node2 node2
|
||||||
group node1 cluster
|
group node1 cluster
|
||||||
group node2 cluster
|
group node2 cluster
|
||||||
wanted node1 sizebalanced=cluster
|
wanted node1 sizebalanced=cluster
|
||||||
wanted node2 sizebalanced=cluster
|
wanted node2 sizebalanced=cluster
|
||||||
maxsize node1 100gb
|
maxsize node1 100gb
|
||||||
maxsize node2 100gb
|
maxsize node2 100gb
|
||||||
connect cluster-node2 <- foo -> cluster-node1
|
connect cluster-node2 <- foo -> cluster-node1
|
||||||
connect cluster-node2 <- bar -> cluster-node1
|
connect cluster-node2 <- bar -> cluster-node1
|
||||||
addmulti 10 foo 1gb 2gb foo
|
addmulti 10 foo 1gb 2gb foo
|
||||||
addmulti 10 bar 1gb 2gb bar
|
addmulti 10 bar 1gb 2gb bar
|
||||||
action foo sendwanted cluster-node1 while action foo sendwanted cluster-node2 while action bar sendwanted cluster-node1 while action bar sendwanted cluster-node2
|
action foo sendwanted cluster-node1 while action foo sendwanted cluster-node2 while action bar sendwanted cluster-node1 while action bar sendwanted cluster-node2
|
||||||
|
|
||||||
In the above example, while foo and bar are both concurrently sending
|
In the above example, while foo and bar are both concurrently sending
|
||||||
wanted files to both cluster nodes, each will know immediately which
|
wanted files to both cluster nodes, each will know immediately which
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue