rfio_statfs man page

RFIO_STATFS(3)              Rfio Library Functions              RFIO_STATFS(3)

[1mNAME[0m
      rfio_statfs - get information about a mounted filesystem

[1mSYNOPSIS[0m
      [1m#include <sys/types.h>[0m
      [1m#include "rfio_api.h"[0m

      [1mint rfio_statfs (const char *[4m[22mpath[24m[1m, struct rfstatfs *[4m[22mstatfsbuf[24m[1m);[0m

      Under Linux, for large files:
      [1m#define _LARGEFILE64_SOURCE[0m
      [1m#include <sys/types.h>[0m
      [1m#include "rfio_api.h"[0m

      [1mint rfio_statfs64 (const char *[4m[22mpath[24m[1m, struct rfstatfs64 *[4m[22mstatfsbuf[24m[1m);[0m

      For large files, under other systems:
      [1m#include <sys/types.h>[0m
      [1m#include "rfio_api.h"[0m

      [1mint rfio_statfs64 (const char *[4m[22mpath[24m[1m, struct rfstatfs64 *[4m[22mstatfsbuf[24m[1m);[0m

[1mDESCRIPTION[0m
      [1mrfio_statfs [22mgets information about a mounted filesystem.

      [4mpath[24m    specifies  the  logical pathname relative to the current direc-
              tory or the full pathname of any file in this filesystem.

      [4mstatfsbuf[0m
              is a pointer to a rfstatfs structure:
              struct rfstatfs {
                      long totblks  ;      /* Total number of blocks       */
                      long freeblks ;      /* Number of free blocks        */
                      long bsize    ;      /* Block size                   */
                      long totnods  ;      /* Total number of inodes       */
                      long freenods ;      /* Number of free inodes        */
              };
              struct rfstatfs64 {
                      signed64 totblks  ;  /* Total number of blocks       */
                      signed64 freeblks ;  /* Number of free blocks        */
                      long bsize        ;  /* Block size                   */
                      signed64 totnods  ;  /* Total number of inodes       */
                      signed64 freenods ;  /* Number of free inodes        */
              };

      The 64 bits function must be used for large  filesystems.  It  has  the
      same  syntax  as  the normal statfs function except that it uses a [1mrfs-[0m
      [1mtatfs64 [22mstructure.

[1mRETURN VALUE[0m
      This routine returns 0 if the operation was successful  or  -1  if  the
      operation failed. In the latter case, [1mserrno [22mis set appropriately.

[1mERRORS[0m
      [1mENOENT       [22mThe named file/directory does not exist or is a null path-
                   name.

      [1mEACCES       [22mSearch permission is denied on a  component  of  the  [4mpath[0m
                   prefix.

      [1mEFAULT       [4m[22mpath[24m or [4mstatfsbuf[24m is a NULL pointer.

      [1mENOTDIR      [22mA component of [4mpath[24m prefix is not a directory.

      [1mENAMETOOLONG [22mThe  length of [4mpath[24m exceeds [1mCA_MAXPATHLEN [22mor the length of
                   a [4mpath[24m component exceeds [1mCA_MAXNAMELEN[22m.

      [1mSENOSHOST    [22mHost unknown.

      [1mSENOSSERV    [22mService unknown.

      [1mSECOMERR     [22mCommunication error.

[1mSEE ALSO[0m
      [1mCastor_limits(4)[0m

[1mAUTHOR[0m
      [1mLCG Grid Deployment [22mTeam

LCG                      $Date: 2005/09/20 12:07:09 $           RFIO_STATFS(3)

Referenced By

rfio_statfs64(3) is an alias of rfio_statfs(3).