00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include <string>
00021 #include <vector>
00022 #include <y2util/FSize.h>
00023
00027 class DiskSpace
00028 {
00029 public:
00030 typedef struct
00031 {
00032 std::string device;
00033 std::string fstype;
00034 FSize total;
00035 FSize used;
00036 FSize available;
00037 short percent;
00038 std::string mountpoint;
00039 } DfInfo;
00040
00041 typedef std::vector<DfInfo> DfVec;
00042
00049 static DfVec df(bool filter_nonlocal = false, bool filter_pseudo = false);
00050 };
00051