@@ -30,7 +30,7 @@ struct FSOpt
3030    bool  accept (const  FSBlock *b) const  { return  b ? (filter ? filter (*b) : true ) : false ; }
3131};
3232
33- enum  class  FSVolumeType  : long 
33+ enum  class  FSFormat  : long 
3434{
3535    OFS      = 0 ,    //  Original File System
3636    FFS      = 1 ,    //  Fast File System
@@ -43,85 +43,85 @@ enum class FSVolumeType : long
4343    NODOS
4444};
4545
46- struct  FSVolumeTypeEnum  : Reflection<FSVolumeTypeEnum, FSVolumeType >
46+ struct  FSFormatEnum  : Reflection<FSFormatEnum, FSFormat >
4747{
4848    static  constexpr  long  minVal = 0 ;
49-     static  constexpr  long  maxVal = long (FSVolumeType ::NODOS);
49+     static  constexpr  long  maxVal = long (FSFormat ::NODOS);
5050
51-     static  const  char  *_key (FSVolumeType  value)
51+     static  const  char  *_key (FSFormat  value)
5252    {
5353        switch  (value) {
5454
55-             case  FSVolumeType ::OFS:       return  " OFS" 
56-             case  FSVolumeType ::FFS:       return  " FFS" 
57-             case  FSVolumeType ::OFS_INTL:  return  " OFS_INTL" 
58-             case  FSVolumeType ::FFS_INTL:  return  " FFS_INTL" 
59-             case  FSVolumeType ::OFS_DC:    return  " OFS_DC" 
60-             case  FSVolumeType ::FFS_DC:    return  " FFS_DC" 
61-             case  FSVolumeType ::OFS_LNFS:  return  " OFS_LNFS" 
62-             case  FSVolumeType ::FFS_LNFS:  return  " FFS_LNFS" 
63-             case  FSVolumeType ::NODOS:     return  " NODOS" 
55+             case  FSFormat ::OFS:       return  " OFS" 
56+             case  FSFormat ::FFS:       return  " FFS" 
57+             case  FSFormat ::OFS_INTL:  return  " OFS_INTL" 
58+             case  FSFormat ::FFS_INTL:  return  " FFS_INTL" 
59+             case  FSFormat ::OFS_DC:    return  " OFS_DC" 
60+             case  FSFormat ::FFS_DC:    return  " FFS_DC" 
61+             case  FSFormat ::OFS_LNFS:  return  " OFS_LNFS" 
62+             case  FSFormat ::FFS_LNFS:  return  " FFS_LNFS" 
63+             case  FSFormat ::NODOS:     return  " NODOS" 
6464        }
6565        return  " ???" 
6666    }
6767
68-     static  const  char  *help (FSVolumeType  value)
68+     static  const  char  *help (FSFormat  value)
6969    {
7070        return  " " 
7171    }
7272
73-     static  FSVolumeType  fromDosType (u32  value)
73+     static  FSFormat  fromDosType (u32  value)
7474    {
7575        switch  (value) {
7676
77-             case  0x444F5300 :    return  FSVolumeType ::OFS;
78-             case  0x444F5301 :    return  FSVolumeType ::FFS;
79-             case  0x444F5302 :    return  FSVolumeType ::OFS_INTL;
80-             case  0x444F5303 :    return  FSVolumeType ::FFS_INTL;
81-             case  0x444F5304 :    return  FSVolumeType ::OFS_DC;
82-             case  0x444F5305 :    return  FSVolumeType ::FFS_DC;
83-             case  0x444F5306 :    return  FSVolumeType ::OFS_LNFS;
84-             case  0x444F5307 :    return  FSVolumeType ::FFS_LNFS;
85-             default :            return  FSVolumeType ::NODOS;
77+             case  0x444F5300 :    return  FSFormat ::OFS;
78+             case  0x444F5301 :    return  FSFormat ::FFS;
79+             case  0x444F5302 :    return  FSFormat ::OFS_INTL;
80+             case  0x444F5303 :    return  FSFormat ::FFS_INTL;
81+             case  0x444F5304 :    return  FSFormat ::OFS_DC;
82+             case  0x444F5305 :    return  FSFormat ::FFS_DC;
83+             case  0x444F5306 :    return  FSFormat ::OFS_LNFS;
84+             case  0x444F5307 :    return  FSFormat ::FFS_LNFS;
85+             default :            return  FSFormat ::NODOS;
8686        }
8787    }
8888};
8989
90- inline  bool  isOFSVolumeType (FSVolumeType  value)
90+ inline  bool  isOFSVolumeType (FSFormat  value)
9191{
9292    switch  (value) {
9393
94-         case  FSVolumeType ::OFS:
95-         case  FSVolumeType ::OFS_INTL:
96-         case  FSVolumeType ::OFS_DC:
97-         case  FSVolumeType ::OFS_LNFS:    return  true ;
98-         default :                         return  false ;
94+         case  FSFormat ::OFS:
95+         case  FSFormat ::OFS_INTL:
96+         case  FSFormat ::OFS_DC:
97+         case  FSFormat ::OFS_LNFS:    return  true ;
98+         default :                    return  false ;
9999    }
100100}
101101
102- inline  bool  isFFSVolumeType (FSVolumeType  value)
102+ inline  bool  isFFSVolumeType (FSFormat  value)
103103{
104104    switch  (value) {
105105
106-         case  FSVolumeType ::FFS:
107-         case  FSVolumeType ::FFS_INTL:
108-         case  FSVolumeType ::FFS_DC:
109-         case  FSVolumeType ::FFS_LNFS:    return  true ;
110-         default :                         return  false ;
106+         case  FSFormat ::FFS:
107+         case  FSFormat ::FFS_INTL:
108+         case  FSFormat ::FFS_DC:
109+         case  FSFormat ::FFS_LNFS:    return  true ;
110+         default :                    return  false ;
111111    }
112112}
113113
114- inline  bool  isINTLVolumeType (FSVolumeType  value)
114+ inline  bool  isINTLVolumeType (FSFormat  value)
115115{
116116    switch  (value) {
117117
118-         case  FSVolumeType ::OFS_INTL:
119-         case  FSVolumeType ::FFS_INTL:
120-         case  FSVolumeType ::OFS_DC:
121-         case  FSVolumeType ::FFS_DC:
122-         case  FSVolumeType ::OFS_LNFS:
123-         case  FSVolumeType ::FFS_LNFS:    return  true ;
124-         default :                         return  false ;
118+         case  FSFormat ::OFS_INTL:
119+         case  FSFormat ::FFS_INTL:
120+         case  FSFormat ::OFS_DC:
121+         case  FSFormat ::FFS_DC:
122+         case  FSFormat ::OFS_LNFS:
123+         case  FSFormat ::FFS_LNFS:    return  true ;
124+         default :                    return  false ;
125125    }
126126}
127127
@@ -273,7 +273,7 @@ struct FSItemTypeEnum : Reflection<FSItemTypeEnum, FSItemType>
273273
274274struct  FSTraits 
275275{
276-     FSVolumeType  dos = FSVolumeType ::NODOS;
276+     FSFormat  dos = FSFormat ::NODOS;
277277
278278    isize blocks = 0 ;
279279    isize bytes = 0 ;
@@ -307,13 +307,12 @@ typedef struct
307307    string modificationDate;
308308
309309    //  Capacity information
310-     /* 
310+     isize numBlocks; 
311311    isize freeBlocks;
312312    isize usedBlocks;
313313    isize freeBytes;
314314    isize usedBytes;
315315    double  fillLevel;
316-     */  
317316}
318317FSInfo;
319318
0 commit comments