Rudiments
filesystem.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information.
3
4#ifndef RUDIMENTS_FILESYSTEM_H
5#define RUDIMENTS_FILESYSTEM_H
6
7#include <rudiments/private/filesystemincludes.h>
8
16class RUDIMENTS_DLLSPEC filesystem : virtual public object {
17 public:
20
22 virtual ~filesystem();
23
29 bool open(const char *path);
30
35 bool open(int32_t fd);
36
38 bool close();
39
44
46 int64_t getType();
47
49 int64_t getBlockSize();
50
53
58 static int64_t getOptimumTransferBlockSize(const char *path);
59
62 int64_t getTotalBlocks();
63
65 int64_t getFreeBlocks();
66
70
74
77
80
84
88
90 int64_t getFileSystemId();
91
95
97 uid_t getOwner();
98
101 int64_t getSyncWrites();
102
105 int64_t getAsyncWrites();
106
108 const char *getTypeName();
109
111 const char *getMountPoint();
112
115 int64_t getSyncReads();
116
119 int64_t getAsyncReads();
120
122 const char *getDeviceName();
123
126
131
132 #include <rudiments/private/filesystem.h>
133};
134
135#endif
Definition filesystem.h:16
int64_t getTotalBlocks()
void * getInternalFilesystemStatisticsStructure()
int64_t getReservedFileNodes()
int64_t getAsyncWrites()
int64_t getAsyncReads()
const char * getDeviceName()
int64_t getFreeFileNodes()
int64_t getBlockSize()
bool open(int32_t fd)
bool close()
virtual ~filesystem()
int64_t getFreeBlocks()
const char * getFilesystemSpecificString()
int64_t getType()
int64_t getAvailableBlocks()
int64_t getFileSystemId()
int64_t getMaximumFileNameLength()
int64_t getReservedBlocks()
int64_t getOptimumTransferBlockSize()
int64_t getSyncReads()
int64_t getAvailableFileNodes()
uid_t getOwner()
static int64_t getOptimumTransferBlockSize(const char *path)
const char * getTypeName()
int64_t getSyncWrites()
int64_t getTotalFileNodes()
bool open(const char *path)
bool getCurrentProperties()
const char * getMountPoint()
Definition object.h:10