[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'amigados' (#aros)

AddBuffers

Changes the number of buffers for a filesystem

Declaration

Source position: amigados.pas line 2367

function AddBuffers(

  const DeviceName: STRPTR;

  NumbBuffers: LongInt

):LongBool;

Arguments

DeviceName

  

DOS device name (with trailing ':').

NumbBuffers

  

Number of buffers to add. May be negative for decreasing.

Description

Add or remove cache memory to/from a filesystem. The amount of memory per cache buffer and the limit depends on the filesystem.

Some old filesystems return the actual buffer size. See the example for a workaround for that case.

Example:

Res1 := AddBuffers('df0:', 10);
Res2 := IoErr();
if (res1 <> DosFalse) and (res1 <> DosTrue) then
begin
  Res2 := Res1;
  Res1 := DosTrue;
end;

See also

IoErr

  

Return extra information from the system


Documentation generated on: 2017-01-10