#
3db72a44 |
| 14-Apr-2015 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sbin/hammer: Remove unnecessary strndup(3)
- user string is relative to host string, not filesystem string.
|
#
9f1b0121 |
| 13-Mar-2014 |
Antonio Huete Jimenez <tuxillo@quantumachine.net> |
sbin/hammer - Add 'header' option for mirror-dump directive.
- Provide means to dump PFS information only via 'mirror-dump' directive. - Snapshots directory is not shown at the moment.
Submitted-
sbin/hammer - Add 'header' option for mirror-dump directive.
- Provide means to dump PFS information only via 'mirror-dump' directive. - Snapshots directory is not shown at the moment.
Submitted-by: YONETANI Tomokazu <y0netan1@dragonflybsd.org> DragonFly-bug: <http://bugs.dragonflybsd.org/issues/1497>
This commit closes #1497
show more ...
|
#
8b640662 |
| 04-Mar-2014 |
Antonio Huete Jimenez <tuxillo@quantumachine.net> |
sbin/hammer - Remove trailing '/' from paths.
When operating PFSes through symbolic links, it was not possible to specify the trailing backslash since that translated to the PFS root dir inste
sbin/hammer - Remove trailing '/' from paths.
When operating PFSes through symbolic links, it was not possible to specify the trailing backslash since that translated to the PFS root dir instead of the symbolic link to the PFS itself. This caused problems when upgrading or downgrading PFSes (and probably in other cases too). The error was "Directory not empty".
This commit should solve those cases, but keep in mind there are other cases where it is actually not possible to complete certain operations (like while destroying PFSes).
Reported-by: Siju George, others
show more ...
|
#
e2c596b1 |
| 12-Sep-2012 |
Chris Turner <c.turner@199technologies.com> |
hammer(8): add HAMMER_RSH environment variable support.
Add support for a HAMMER_RSH environment variable which can be used to select an alternate remote shell to be used for hammer remote operation
hammer(8): add HAMMER_RSH environment variable support.
Add support for a HAMMER_RSH environment variable which can be used to select an alternate remote shell to be used for hammer remote operations, change remote shell invocation to rsh(1) style '-l user host' instead of ssh-style user@host to permit usage of rsh(1) as an alternate HAMMER_RSH without the need for a wrapper script. Also change exec call of subshell to use execvp instead of a hardcoded path to facillitate this change.
Update hammer.8 docs, along with minor formatting fix to environment variable summary header sentence.
show more ...
|
#
69f5a58c |
| 11-Sep-2012 |
Matthew Dillon <dillon@apollo.backplane.com> |
hammer - Add ssh-remote directive
* Adds a feature that allows you to set up a command="..." prefix for a ssh key in your ~/.ssh/authorized_keys file that only runs the hammer utility and only w
hammer - Add ssh-remote directive
* Adds a feature that allows you to set up a command="..." prefix for a ssh key in your ~/.ssh/authorized_keys file that only runs the hammer utility and only with specific commands and filesystem paths.
For example:
command="/sbin/hammer ssh-remote mirror-read,mirror-write /path/" ssh-rsa...
Currently requires a trailing '/' if you want to restrict the path to a subdirectory. Multiple commands can be listed but the filesystem path restriction is only currently tested for mirror-read and mirror-write.
* This allows ssh to be used for mirroring without having to give shell access to the remote.
show more ...
|
#
269cdd19 |
| 11-Sep-2012 |
Matthew Dillon <dillon@apollo.backplane.com> |
hammer - Add scoreboard file option
* Add -e <scoreboardfile> option for mirror-stream, so one can see the progress of mirror-streams running in the background.
|
#
a446fca6 |
| 11-Sep-2012 |
Sascha Wildner <saw@online.de> |
Fix buildworld.
|
#
db7dd3cf |
| 10-Sep-2012 |
Matthew Dillon <dillon@apollo.backplane.com> |
hammer - Fix core dump during remote termination of mirror-stream
* Fix issue where remote-end hammer can core trying to fprintf() an error message if a mirror-stream connection is lost unexpected
hammer - Fix core dump during remote termination of mirror-stream
* Fix issue where remote-end hammer can core trying to fprintf() an error message if a mirror-stream connection is lost unexpectedly.
show more ...
|
#
4839c61e |
| 17-Jun-2012 |
Sascha Wildner <saw@online.de> |
hammer(8): Fix a wrong sizeof.
Use the size passed to the malloc() here.
Found-with: Coccinelle (http://coccinelle.lip6.fr/)
|
#
08b71f9f |
| 16-Jan-2012 |
Matthew Dillon <dillon@apollo.backplane.com> |
hammer - Properly pass -S option to hammer run via remote ssh
* Properly pass -S option to hammer run via remote ssh
Reported-by: someone not me, sorry I forgot.
|
#
d6c40a21 |
| 01-Jan-2012 |
François Tigeot <ftigeot@wolfpond.org> |
hammer(8): fix an obsolete comment
|
#
84e57c2c |
| 26-Sep-2011 |
Thomas Nikolajsen <thomas@dragonflybsd.org> |
hammer(8): whitespace cleanup: delete blank at end of line
|
#
39e88285 |
| 02-Mar-2010 |
Matthew Dillon <dillon@apollo.backplane.com> |
HAMMER Utility - Enhance the mirroring and show code
* mirror-read will now run the histogram just like mirror-stream does.
* improve versbose output when doing a mirror-read or mirror-stream.
* h
HAMMER Utility - Enhance the mirroring and show code
* mirror-read will now run the histogram just like mirror-stream does.
* improve versbose output when doing a mirror-read or mirror-stream.
* hammer show now validates the mirror_tid in the B-Tree and produces a 'B' indication with the 'M' flag if it finds a bad mirror_tid chaining.
show more ...
|
#
27eff55e |
| 11-Feb-2010 |
Matthew Dillon <dillon@apollo.backplane.com> |
HAMMER Utility - cleanup
* Cleanup pass
|
#
ced4470d |
| 11-Feb-2010 |
Matthew Dillon <dillon@apollo.backplane.com> |
HAMMER Utility - Clean up histogram code for mirror-stream, handle SKIPs
* Do a cleanup pass, fixing some of the verbose output
* Do not misinterpret SKIP records as REC records when estimating t
HAMMER Utility - Clean up histogram code for mirror-stream, handle SKIPs
* Do a cleanup pass, fixing some of the verbose output
* Do not misinterpret SKIP records as REC records when estimating the transfer size.
* Refactor the histogram array a bit (don't reverse the array).
show more ...
|
#
3d7b2393 |
| 11-Feb-2010 |
Matthew Dillon <dillon@apollo.backplane.com> |
HAMMER Utility - Refactor the histogram code for mirror-stream.
* Refactor the histogram code. This code is responsible for breaking down a large initial mirroring stream into smaller chunks so t
HAMMER Utility - Refactor the histogram code for mirror-stream.
* Refactor the histogram code. This code is responsible for breaking down a large initial mirroring stream into smaller chunks so the transaction id can be synced more often. This way if the stream is interrupted it can be restarted at a more recent point instead of having to restart further back (or at the beginning).
* Add -S splitsize (default 100MB) to specify the desired breakdown for the histogram.
show more ...
|
#
3a998207 |
| 21-Dec-2009 |
Matthew Dillon <dillon@apollo.backplane.com> |
HAMMER Utility - Add ssh compression option
* Unfortunately the utility already uses -C, so the new option is -X
* For the moment the utility has no visibility on the actual over-the-wire bandwid
HAMMER Utility - Add ssh compression option
* Unfortunately the utility already uses -C, so the new option is -X
* For the moment the utility has no visibility on the actual over-the-wire bandwidth used and any specified bandwidth limits will apply to the uncompressed data stream.
show more ...
|
#
6c45ca3e |
| 07-Dec-2009 |
Matthew Dillon <dillon@apollo.backplane.com> |
HAMMER Utility - Add -p <ssh-port> option
* Allows the ssh port for remote specification to be specified. This option is passed as '-p <ssh-port>' to ssh invocations.
|
#
a276dc6b |
| 21-Aug-2009 |
Matthew Dillon <dillon@apollo.backplane.com> |
AMD64 - AUDIT RUN - Fix format strings, size_t, and other issues
|
#
0bd7a37c |
| 17-Aug-2009 |
Matthew Dillon <dillon@apollo.backplane.com> |
HAMMER Util - Bulk transfer, SIGPIPE, more features.
* Add -B option for initial bulk transfer in a mirror-stream
* The parent process in a mirror-stream and mirror-copy operation now ignores SIG
HAMMER Util - Bulk transfer, SIGPIPE, more features.
* Add -B option for initial bulk transfer in a mirror-stream
* The parent process in a mirror-stream and mirror-copy operation now ignores SIGPIPE
* Use the smaller of ctime or mtime when calculating the real timestamp for a snapshot softlink in a prune operation.
* Sleep an additional 15 seconds before reconnecting a failed connection in a mirror-stream operation.
show more ...
|
#
e7f926a5 |
| 17-Aug-2009 |
Matthew Dillon <dillon@apollo.backplane.com> |
HAMMER Util - Add new features, fix history retention bug in prune
* The prune code was not retaining the fine-grained history between the last snapshot and current.
* Add a new PFS config variab
HAMMER Util - Add new features, fix history retention bug in prune
* The prune code was not retaining the fine-grained history between the last snapshot and current.
* Add a new PFS config variable called 'prune-min' which may be used to set the minimum fine-grained history retention, in seconds. The hammer prune code will not prune inbetween any snapshots that are within the fine-grained retention period.
* The mirror-stream directive now automatically loops and reconnects if the network connection fails.
* The mirror-stream directive now attempts to break-up a large initial bulk transfer into smaller transfers, inserting synchronization points so a failure in the middle of the large bulk transfer does not require starting from scratch again.
* The show directive (show btree) now takes an optional localization[:objid] argument (specified in hex). If specified the directive will search the B-Tree for the key, printing nodes as it goes, and then continue with a normal iteration.
show more ...
|
#
f414d101 |
| 14-Jun-2009 |
Sascha Wildner <saw@online.de> |
sbin/hammer/cmd_mirror.c: Stick with style(9) bracing style.
|
#
dda7ab78 |
| 14-Jun-2009 |
Michael Neumann <mneumann@ntecs.de> |
Simplify logical expression
|
#
07485271 |
| 14-Jun-2009 |
Michael Neumann <mneumann@ntecs.de> |
Implement -y "force yes" option for hammer utility.
This fixes a problem with terminals when operating remotely via ssh while using the auto-PFS creation feature of hammer mirror-stream or hammer mi
Implement -y "force yes" option for hammer utility.
This fixes a problem with terminals when operating remotely via ssh while using the auto-PFS creation feature of hammer mirror-stream or hammer mirror-copy.
For more information see the following thread (off-box mirror-stream and friends):
http://leaf.dragonflybsd.org/mailarchive/users/2009-02/msg00017.html
show more ...
|
#
85a8e8a7 |
| 29-Apr-2009 |
Matthew Dillon <dillon@apollo.backplane.com> |
HAMMER Utility: Update mirror-dump, mirror-read to reflect protocol changes.
The mirror-dump command now ignores PFSD records instead of complaining and aborting.
The mirror-read command now includ
HAMMER Utility: Update mirror-dump, mirror-read to reflect protocol changes.
The mirror-dump command now ignores PFSD records instead of complaining and aborting.
The mirror-read command now includes handling for CRC-errored records.
show more ...
|