Skip Headers
Oracle Hierarchical Storage Manager and QFS Software Command Reference
Section 3: Introduction to Library Functions
Release 6.1.1
E70305-03

NAME

sam_mig_rearchive - Sets rearchive flag on files residing on foreign media

SYNOPSIS

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 );

AVAILABILITY

SUNWsamfs

DESCRIPTION

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.

RETURN VALUES

Upon succesful initialization a value of 0 is returned. Otherwise, a value of 1 is returned and errno is set to indicate the error.

FILES

∕opt∕SUNWsamfs∕migkit∕mig_rearch.c

The example Migration Toolkit program.

∕etc∕opt∕SUNWsamfs∕mcf

The configuration file for StorageTek QFS and Oracle HSM file systems.

SEE ALSO

mcf (4).