JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Sun QFS and Sun Storage Archive Manager 5.3 Reference Manual     Sun QFS and Sun Storage Archive Manager 5.3 Information Library
search filter icon
search icon

Document Information

Preface

1.  User Commands (Man Pages Section 1)

2.  Maintenance Commands (Man Pages Section 1M)

3.  Library Functions (Man Pages Section 3)

4.  Library Functions (Man Pages Section 3X)

intro_libsam(3X)

intro_libsamrpc(3X)

sam_archive(3X)

sam_closerpc(3X)

sam_initrpc(3X)

sam_lstat(3X)

sam_release(3X)

sam_segment(3X)

sam_setfa(3X

sam_stage(3X)

sam_stat(3X)

5.  File Formats (Man Pages Section 4)

6.  Standards, Environment, and Macros (Man Pages Section 5)

7.  Device and Network Interfaces (Man Pages Section 7)

sam_stage(3X)

NAME
     sam_stage - Sets stage attributes on a file

SYNOPSIS
     cc [ flag  ... ] file  ... -L/opt/SUNWsamfs/lib -lsamrpc  -lnsl [ library ... ]

     #include "/opt/SUNWsamfs/include/samrpc.h"

     int sam_stage(const char *path, const char *ops);

DESCRIPTION
     This is the RPC-based version of sam_stage(3), which  allows
     stage attributes on a file to be set from a remote machine.

     sam_stage(3x) sets stage attributes on a file  or  directory
     by sending its request to the Sun QFS or SAM-QFS RPC server,
     sam-rpcd.

     A call to sam_initrpc(3X) must be issued before calling this
     routine.

RETURN VALUES
     Upon successful completion, a value of 0 is returned.   Oth-
     erwise,  a value of -1 is returned and errno is set to indi-
     cate the error.

ERRORS
     EDESTADDRREQ        sam_initrpc was not successfully called,
                         as required, before making this call.

SEE ALSO
     stage(1).

     sam-stagealld(1M).

     sam_stage(3).

     sam_initrpc(3X), sam_closerpc(3X).