2.4 Run-time Variables

Fatback provides run-time variables as a way of dynamically configuring the behavior of its execution during run-time. Variables are set and viewed with the set command (see The set Command).

Here is a list of the run-time variables in Fatback version 1.3:

verbose

The variable that determines whether or not to display extra information to the screen.

sectsize

The sector size for fatback to use when making calculations. This defaults to 512, but if an input drive uses a different size and Fatback does not detect it properly, then set this by hand. This variable can also be set via the command line using the -z or --sectsize option.

prompt

The string that Fatback uses to prompt the user. This is set by default to ‘fatback>’. This probably will be of little interest to most end users, however it is important to note for someone who, for example, plans to write custom automation scripts using Expect5.

showall

The variable that determines whether or not to display non-deleted files when the ls command is executed. This variable can be set to either ‘on’ or ‘off’. If it set to ‘on’ then all files will be displayed with the ls command. Otherwise, if it is set to ‘off’ then only deleted files will be displayed.

deleted_prefix

The string that Fatback uses as the first part of the name of deleted files. The default value is ’?’.


Footnotes

(5)

Expect is a program for automating interactive programs. For more information visit http://expect.nist.gov/.