summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAlistair Coles <alistairncoles@gmail.com>2017-07-26 12:53:46 +0100
committerAlistair Coles <alistairncoles@gmail.com>2017-07-26 12:53:46 +0100
commitb599b48f69d6c6b192bd0ae7ae4a493434761958 (patch)
treead723cba4de34e36bab8b5450e6f029f87576c20 /bin
parent972f7c9f45f737815173d9cac341ed757272c30c (diff)
downloadswift-b599b48f69d6c6b192bd0ae7ae4a493434761958.tar.gz
Clarify usage of replicator and reconstructor override options
Clarify in usage statement and man pages that CLI override options for swift-object-reconstructor and swift-object-replicator only have effect when --once is used. Also add a link to object reconstructor source code docs to the doc index page for consistency with the other object services. Change-Id: If348b340d59a672d3a19d4df231ebdb74f4aed51
Diffstat (limited to 'bin')
-rwxr-xr-xbin/swift-object-reconstructor6
-rwxr-xr-xbin/swift-object-replicator9
2 files changed, 10 insertions, 5 deletions
diff --git a/bin/swift-object-reconstructor b/bin/swift-object-reconstructor
index ee4c5d643..2c28437cd 100755
--- a/bin/swift-object-reconstructor
+++ b/bin/swift-object-reconstructor
@@ -23,9 +23,11 @@ if __name__ == '__main__':
parser = OptionParser("%prog CONFIG [options]")
parser.add_option('-d', '--devices',
help='Reconstruct only given devices. '
- 'Comma-separated list')
+ 'Comma-separated list. '
+ 'Only has effect if --once is used.')
parser.add_option('-p', '--partitions',
help='Reconstruct only given partitions. '
- 'Comma-separated list')
+ 'Comma-separated list. '
+ 'Only has effect if --once is used.')
conf_file, options = parse_options(parser=parser, once=True)
run_daemon(ObjectReconstructor, conf_file, **options)
diff --git a/bin/swift-object-replicator b/bin/swift-object-replicator
index ed3cb8521..7a53470a8 100755
--- a/bin/swift-object-replicator
+++ b/bin/swift-object-replicator
@@ -23,12 +23,15 @@ if __name__ == '__main__':
parser = OptionParser("%prog CONFIG [options]")
parser.add_option('-d', '--devices',
help='Replicate only given devices. '
- 'Comma-separated list')
+ 'Comma-separated list. '
+ 'Only has effect if --once is used.')
parser.add_option('-p', '--partitions',
help='Replicate only given partitions. '
- 'Comma-separated list')
+ 'Comma-separated list. '
+ 'Only has effect if --once is used.')
parser.add_option('-i', '--policies',
help='Replicate only given policy indices. '
- 'Comma-separated list')
+ 'Comma-separated list. '
+ 'Only has effect if --once is used.')
conf_file, options = parse_options(parser=parser, once=True)
run_daemon(ObjectReplicator, conf_file, **options)