Previous Topic

Next Topic

Individual File Disk Space Threshold (dskful)

c-tree Plus gives you the ability to turn on/off disk full checking on a file-by-file basis and the ability to define the disk full threshold on a file-by-file basis.

To turn off disk full checks for a particular file, create the file using the 8-byte extended creates (e.g., CreateDataFileXtd8()) and set the ctNOSPACHK bit in the x8mode member of the XCREblk structure on.

To turn on file by file checking with a file specific disk full threshold, set the dskful member of the XCREblk structure to the desired limit at file create time using the extended 8-byte create functions.

To specify the size, in bytes, of the disk-full threshold to be used whenever the file is extended, place the non-zero limit in the dskful member of the XCREblk structure. If extending the size of the file will leave less than the threshold specified in dskful, then the write operation causing the file extension will fail with the error SAVL_ERR (583).