Difference between revisions of "Shell Commands/PFSSetRollover"
From MorphOS Library
(Created page with "'''PFSSetRollover''' - Manipulates rollover files ROLLOVERFILE/A, SET/S, REALSIZE/K/N, VIRTUALSIZE/K/N, ROLLPOINTER/K/N <nowiki> SET - If supplied realsize, virtual...") |
|||
Line 3: | Line 3: | ||
ROLLOVERFILE/A, SET/S, REALSIZE/K/N, VIRTUALSIZE/K/N, ROLLPOINTER/K/N | ROLLOVERFILE/A, SET/S, REALSIZE/K/N, VIRTUALSIZE/K/N, ROLLPOINTER/K/N | ||
<nowiki> | <nowiki> | ||
− | SET | + | ROLLOVERFILE - The file to manipulate |
− | + | SET - If supplied realsize, virtual size and rollpointer are set, | |
− | REALSIZE | + | otherwise they are read. |
− | + | REALSIZE - The size the file takes on disk in bytes. This is the rollover | |
− | + | size plus 1. It must be a multiple of the block size, otherwise | |
− | + | it will be rounded down to the first valid size. Changing this | |
− | + | value will clear the virtual size and the rollpointer, unless | |
− | VIRTUALSIZE - The virtual size is the number of bytes that are in use. The | + | specified otherwise. |
− | + | VIRTUALSIZE - The virtual size is the number of bytes that are in use. The | |
− | + | maximum virtual size is the rollover size. Changing this value | |
− | ROLLPOINTER - The rollpointer is the 'start of file' offset. Changing this | + | will clear the rollpointer, unless specified otherwise. |
− | + | ROLLPOINTER - The rollpointer is the 'start of file' offset. Changing this | |
+ | value will clear the virtual size, unless specified otherwise. | ||
</nowiki> | </nowiki> | ||
Latest revision as of 18:38, 11 December 2015
PFSSetRollover - Manipulates rollover files
ROLLOVERFILE/A, SET/S, REALSIZE/K/N, VIRTUALSIZE/K/N, ROLLPOINTER/K/N
ROLLOVERFILE - The file to manipulate SET - If supplied realsize, virtual size and rollpointer are set, otherwise they are read. REALSIZE - The size the file takes on disk in bytes. This is the rollover size plus 1. It must be a multiple of the block size, otherwise it will be rounded down to the first valid size. Changing this value will clear the virtual size and the rollpointer, unless specified otherwise. VIRTUALSIZE - The virtual size is the number of bytes that are in use. The maximum virtual size is the rollover size. Changing this value will clear the rollpointer, unless specified otherwise. ROLLPOINTER - The rollpointer is the 'start of file' offset. Changing this value will clear the virtual size, unless specified otherwise.
Examples:
1.Workbench:> setrollover foo real size = 1024 virtual size = 400 rollpointer = 12
1.Workbench:> setrollover foo set virtualsize 200 rollpointer 220 real size = 1024 virtual size = 200 rollpointer = 220
1.Workbench:> setrollover foo set realsize = 512 real size = 512 virtual size = 0 rollpointer = 0