sam_mig_rearchive - Sets rearchive flag on files residing on foreign media
cc [ flag
… ] file
… -L∕opt∕SUNWsamfs∕lib -lsamut [ library … ]
#include "∕opt∕SUNWsamfs∕include∕mig.h"
int sam_mig_rearchive(char * mount_point ,
char * vsns ,
char * media );
SUNWsamfs
sam_mig_rearchive()
is a routine that traverses a file system and marks archive files residing on
a foreign medium as needing to be rearchived. This allows a site the
ability to migrate files from the foreign media
to StorageTek QFS or Oracle HSM
media in a controlled fashion.
mount_point is the mount point of the StorageTek QFS or Oracle HSM file system to scan. vsns is a NULL terminated list pointing to the VSNs to be searched. media is the two character string containing the foreign media type.
Upon succesful initialization a value of 0 is returned.
Otherwise, a value of 1 is returned and
errno
is set to indicate the error.
∕opt∕SUNWsamfs∕migkit∕mig_rearch.cThe example Migration Toolkit program.
∕etc∕opt∕SUNWsamfs∕mcfThe configuration file for StorageTek QFS and Oracle HSM file systems.