smbd/statvfs.c

ソースコードを見る。

関数

static int linux_statvfs (const char *path, vfs_statvfs_struct *statbuf)
int sys_statvfs (const char *path, vfs_statvfs_struct *statbuf)


関数

static int linux_statvfs ( const char *  path,
vfs_statvfs_struct statbuf 
) [static]

statvfs.c25 行で定義されています。

参照先 vfs_statvfs_struct::BlocksAvailvfs_statvfs_struct::BlockSizevfs_statvfs_struct::FreeFileNodesvfs_statvfs_struct::FsIdentifiervfs_statvfs_struct::OptimalTransferSizeresultvfs_statvfs_struct::TotalBlocksvfs_statvfs_struct::TotalFileNodesvfs_statvfs_struct::UserBlocksAvail.

参照元 sys_statvfs().

00026 {
00027         struct statvfs statvfs_buf;
00028         int result;
00029 
00030         result = statvfs(path, &statvfs_buf);
00031 
00032         if (!result) {
00033                 statbuf->OptimalTransferSize = statvfs_buf.f_frsize;
00034                 statbuf->BlockSize = statvfs_buf.f_bsize;
00035                 statbuf->TotalBlocks = statvfs_buf.f_blocks;
00036                 statbuf->BlocksAvail = statvfs_buf.f_bfree;
00037                 statbuf->UserBlocksAvail = statvfs_buf.f_bavail;
00038                 statbuf->TotalFileNodes = statvfs_buf.f_files;
00039                 statbuf->FreeFileNodes = statvfs_buf.f_ffree;
00040                 statbuf->FsIdentifier = statvfs_buf.f_fsid;
00041         }
00042         return result;
00043 }

int sys_statvfs ( const char *  path,
vfs_statvfs_struct statbuf 
)

statvfs.c52 行で定義されています。

参照先 linux_statvfs().

参照元 vfswrap_statvfs().

00053 {
00054 #if defined(LINUX) && defined(HAVE_FSID_INT)
00055         return linux_statvfs(path, statbuf);
00056 #else
00057         /* BB change this to return invalid level */
00058 #ifdef EOPNOTSUPP
00059         return EOPNOTSUPP;
00060 #else
00061         return -1;
00062 #endif /* EOPNOTSUPP */
00063 #endif /* LINUX */
00064 
00065 }


Sambaに対してSat Aug 29 21:24:29 2009に生成されました。  doxygen 1.4.7