*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> getfh (2)              
Title
Content
Arch
Section
 

Contents


 getfh(2)                                                           getfh(2)




 NAME    [Toc]    [Back]
      getfh() - return file handle for file on remote node

 SYNOPSIS    [Toc]    [Back]
      #include <errno.h>
      #include <time.h>
      #include <nfs/nfs.h>
      #include <rpc/rpc.h>

      int getfh(char *path, fhandle_t *fhp);

 DESCRIPTION    [Toc]    [Back]
      The getfh() system call returns a file handle in the struct pointed to
      by fhp for the file pointed to by path.  This information is used to
      perform an NFS mount for a remote node.  getfh() is executed on the
      remote node; results are passed back to the program doing the NFS
      mount.  The caller should never examine the file handle contents.  The
      file handle only identifies a file to the node that produced the file
      handle.  (The term "file handle" refers to an NFS concept.)

      The effective user ID of the calling process must be superuser.

 RETURN VALUE    [Toc]    [Back]
      getfh() returns the following values:

            0   Successful completion.
           -1   Failure.  errno is set to indicate the error.

 ERRORS    [Toc]    [Back]
      If getfh() fails, errno is set to one of the following values.

           [EINVAL]       Invalid argument, or the file or directory has not
                          been exported by exportfs (see exportfs(1M)).

           [ENOENT]       File or directory specified by path does not
                          exist.

           [EPERM]        The effective user ID is not superuser.

           [EREMOTE]      The file or directory specified by path is a
                          remote file or directory.

 WARNINGS    [Toc]    [Back]
      This call should be used only by HP-supplied commands and is not
      recommended for use by non-HP-supplied programs.

 AUTHOR    [Toc]    [Back]
      getfh() was developed by Sun Microsystems, Inc.

 SEE ALSO    [Toc]    [Back]
      exportfs(1M), mount(1M), vfsmount(2).


 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
st_data_addr_to_sym Tru64 convert an address in an object to a file handle, procedure handle, line number, or symbol handle an...
st_text_addr_to_sym Tru64 convert an address in an object to a file handle, procedure handle, line number, or symbol handle an...
st_addr_to_file Tru64 convert an address in an object to a file handle, procedure handle, line number, or symbol handle an...
st_addr_to_line Tru64 convert an address in an object to a file handle, procedure handle, line number, or symbol handle an...
st_addr_to_proc Tru64 convert an address in an object to a file handle, procedure handle, line number, or symbol handle an...
st_addr_to_sym Tru64 convert an address in an object to a file handle, procedure handle, line number, or symbol handle an...
fhstatfs FreeBSD access file via file handle
fhstat FreeBSD access file via file handle
fhopen NetBSD access file via file handle
fhstat NetBSD access file via file handle
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service