DemigrateFunc_t

Is called to demigrate files.

Service:File System Services (64-Bit)

Syntax

#include <zMigrate.h>

STATUS (*demigrateFunction) (
   key_t   key,
   QUAD    offset,
   QUAD    length);

Parameters

key

(IN) Specifies that read/write access is to be granted to the migrated file. This parameter can be used to write back to the file the data that has been migrated.

offset

(IN) Specifies the offset in the file where the user is starting to access the file. This parameter helps determine the minimum amount of data that must be migrated. However, the user can choose to migrate more data.

length

(IN) Specifies the length of the data that must be demigrated, starting from the offset parameter.

Return Values

zOK

The operation completed successfully.

zERR_DEMIGRATE_ ALREADY_REGISTERED

A demigration function has been registered. Only one demigrator can reside in the system at a time.

Remarks

When you request that NSS access the data portion of a migrated file, NSS calls this demigration function. After this demigration function returns, NSS expects the data to be demigrated and begins accessing the data.

To demigrate a file, call zWrite to write the demigrated data back to the data stream. After this demigrated function returns, the key parameter is cleaned up.

See Also

zRegisterDemigrateFunction