Data Structures | |
class | Cmd |
Functions | |
def | ask |
def | ask_file |
def | ask_hash |
def | ask_num |
def | ask_opt_file |
def | ask_recover |
def | ask_size |
def | ask_slice |
def | ask_yn |
def | format |
def | fprint |
def | toplevel |
Variables | |
string | blksize_help |
string | blksize_text = """Block size?""" |
string | count_help |
string | count_text = """How many bytes to read?""" |
string | DEFAULT_BLKSIZE = "512k" |
string | DEFAULT_INTERVAL = "5" |
string | DEFAULT_LOG = "rdd-%u.log" |
int | DEFAULT_MAXERR = 0 |
string | DEFAULT_MINBLKSIZE = "512" |
DEFAULT_OUT = None | |
string | DEFAULT_PORT = "4832" |
int | DEFAULT_RECOVERYLEN = 3 |
string | destfile_help |
string | destfile_text = """Output file:""" |
string | desthost_help |
string | desthost_text = """Destination host:""" |
string | hash_help |
string | hash_text = """Hash the data?""" |
string | inetd_help |
string | inetd_text = """Use (x)inetd to start the rdd server process?""" |
string | intro_text |
string | logfile_help |
string | logfile_text = """Log file:""" |
string | maxerr_help |
string | maxerr_text = """Quit after how many read errors?""" |
string | md5_help |
string | md5_text = """Use MD5?""" |
string | minblksize_help |
string | minblksize_text = """Minimum block size?""" |
string | mode_help |
string | mode_text |
string | offset_help |
string | offset_text = """Input file offset (in bytes)?""" |
string | overwrite_help |
string | overwrite_text = """Overwrite existing files?""" |
string | port_help |
string | port_text = """At which TCP port does the rdd server listen?""" |
string | progress_help |
string | progress_text |
dictionary | Q |
string | recover_help |
string | recover_text = """Do you want to modify any recovery options?""" |
string | run_help |
string | run_text = """Run now?""" |
string | section_help |
string | section_text |
string | sha1_help |
string | sha1_text = """Use SHA1?""" |
string | size_help |
string | slice_help |
string | slice_text = """Process entire input file?""" |
string | source_help |
string | source_text = """Input file:""" |
string | verb_help |
string | verb_text = """Do you want rdd to be verbose?""" |
string rddi::blksize_help |
Initial value:
""" The block size specifies how much data rdd will read and write at a time. The block size should be (significantly) less than the size of your machine's physical memory. I cannot give exact guidelines, but very small block sizes will slow down the copying and very large block sizes waste memory without improving performance. """
string rddi::blksize_text = """Block size?""" |
string rddi::count_help |
string rddi::count_text = """How many bytes to read?""" |
string rddi::DEFAULT_BLKSIZE = "512k" |
string rddi::DEFAULT_INTERVAL = "5" |
string rddi::DEFAULT_LOG = "rdd-%u.log" |
int rddi::DEFAULT_MAXERR = 0 |
string rddi::DEFAULT_MINBLKSIZE = "512" |
rddi::DEFAULT_OUT = None |
string rddi::DEFAULT_PORT = "4832" |
int rddi::DEFAULT_RECOVERYLEN = 3 |
string rddi::destfile_help |
Initial value:
""" This is the name of the output file. All directories leading up to the output file should already exist; rdd will not create missing directories. If you do not want to create an output file, just hit ENTER. If you use output splitting, rdd will prefix the name of each output file with a sequence number. Do not specify such prefixes manually. For example, /tmp/disk.img will automatically be converted to /tmp/000-disk.img, /tmp/001-disk.img, and so on. """
string rddi::destfile_text = """Output file:""" |
string rddi::desthost_help |
Initial value:
""" You can specify the destination host's DNS host name (e.g., yota.holmes.nl) or its IPv4 address in dotted quad notation (e.g., 10.5.0.23). The DNS host name will work only if your client host knows how to resolve DNS host names to IPv4 addresses. """
string rddi::desthost_text = """Destination host:""" |
string rddi::hash_help |
Initial value:
""" A (cryptographic) hash is a fixed-length, digital finger print of a sequence of bytes that is computed by a well-defined hash algorithm. It is very difficult to find two inputs that have the same hash value (in a reasonable amount of time). Computing a cryptographic hash over the data allows you to verify the data's integrity at another time by recomputing the hash value. The hash is computed only over the data that is read. Rdd does not guarantee that the data that it reads will be written to disk (or to the network correctly). To make sure that you have stored the data correctly, we recommend that you recompute the hash value over the stored data and compare it to the hash value computed by rdd. They should be equal. You can use the following hash algorithms: MD5 and SHA1. """
string rddi::hash_text = """Hash the data?""" |
string rddi::inetd_help |
string rddi::inetd_text = """Use (x)inetd to start the rdd server process?""" |
string rddi::intro_text |
Initial value:
""" This is the rdd command-line wizard. It will help you construct a sensible rdd command line. The wizard will ask a series of questions and will eventually print a command line that is based on your answers. Optionally, the wizard will also run this command. Type '?' to obtain help information about a question. Rdd comes with a man page. Type 'man rdd' in another window to read it. """
string rddi::logfile_help |
string rddi::logfile_text = """Log file:""" |
string rddi::maxerr_help |
string rddi::maxerr_text = """Quit after how many read errors?""" |
string rddi::md5_help |
Initial value:
""" MD5 is a cryptographic hash algorithm. It generates a 128-bit hash value from an arbitrary input stream. For a full description, see RFC 1321. MD5 is widely used, but has known weaknesses. SHA1 is considered stronger, but is not used as widely. Many hash-value databases consist only of MD5 hash values. """
string rddi::md5_text = """Use MD5?""" |
string rddi::minblksize_help |
Initial value:
""" When read errors occur, rdd will progressively reduce its block size. This way, the amount of data lost to read errors is reduced. You must specify the minimum block size. Rdd will not use blocks that are smaller than this size. If a read error occurs, at least this many bytes of data will be lost. """
string rddi::minblksize_text = """Minimum block size?""" |
string rddi::mode_help |
Initial value:
""" In local mode, you can copy data within a single file system. (If you have NFS mount points, your file system may span multiple hosts.) In client mode, you can copy a file across the network to a server host. On the server host, you must start a server process that will receive and process the data that you send to it. In server mode, you can receive a file from an rdd client on another host. """
string rddi::mode_text |
string rddi::offset_help |
string rddi::offset_text = """Input file offset (in bytes)?""" |
string rddi::overwrite_help |
string rddi::overwrite_text = """Overwrite existing files?""" |
string rddi::port_help |
Initial value:
""" By default, rdd clients and servers assume that rdd requests must be sent to TCP port 3482 on the server host. If you want to use another port, then you should specify another number, both at the client and the server side. Remember that ports 0-1023 are reserved for privileged uses. Port numbers higher than 65535 are invalid. """
string rddi::port_text = """At which TCP port does the rdd server listen?""" |
string rddi::progress_help |
Initial value:
""" If you say 0 here, rdd will not print periodic progress messages. If you specify some positive number s, rdd will print a progress line every s seconds (approximately). The progress line tells you how much of the data has already been copied and gives the current copy speed. """
string rddi::progress_text |
dictionary rddi::Q |
Initial value:
{ "blksize" : (blksize_text, blksize_help), "count" : (count_text, count_help), "destfile" : (destfile_text, destfile_help), "desthost" : (desthost_text, desthost_help), "hash" : (hash_text, hash_help), "logfile" : (logfile_text, logfile_help), "maxerr" : (maxerr_text, maxerr_help), "md5" : (md5_text, md5_help), "minblksize" : (minblksize_text, minblksize_help), "mode" : (mode_text, mode_help), "offset" : (offset_text, offset_help), "port" : (port_text, port_help), "progress" : (progress_text, progress_help), "recover" : (recover_text, recover_help), "run" : (run_text, run_help), "sha1" : (sha1_text, sha1_help), "slice" : (slice_text, slice_help), "source" : (source_text, source_help), "verb" : (verb_text, verb_help), }
string rddi::recover_help |
string rddi::recover_text = """Do you want to modify any recovery options?""" |
string rddi::run_help |
string rddi::run_text = """Run now?""" |
string rddi::section_help |
string rddi::section_text |
string rddi::sha1_help |
string rddi::sha1_text = """Use SHA1?""" |
string rddi::size_help |
string rddi::slice_help |
string rddi::slice_text = """Process entire input file?""" |
string rddi::source_help |
string rddi::source_text = """Input file:""" |
string rddi::verb_help |
string rddi::verb_text = """Do you want rdd to be verbose?""" |