Shell Commands/PFSSetRollover

From MorphOS Library

Revision as of 18:36, 11 December 2015 by JPV (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Shell Commands

PFSSetRollover - Manipulates rollover files

ROLLOVERFILE/A, SET/S, REALSIZE/K/N, VIRTUALSIZE/K/N, ROLLPOINTER/K/N

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