32,32 → 32,48 |
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
|
/** @addtogroup FileSystemImpl |
* @{ |
*/ |
|
/** |
* @file dir.h |
* @brief The layout of a directory. |
*/ |
|
/* The layout of a directory. */ |
|
|
#ifndef _DIR_H |
#define _DIR_H |
|
#define DIRBLKSIZ 512 /* size of directory block */ |
#define DIRSIZ 14 |
#define DIRSIZEX 30 |
#define DIRBLKSIZ 512 /**< size of directory block */ |
#define DIRSIZ 14 /**< directory entry name length */ |
#define DIRSIZEX 30 /**< extended directory entry name length */ |
|
#include "inode.h" |
|
/** |
* Directory entry type |
*/ |
typedef struct { |
ino_t d_ino; |
char d_name[DIRSIZ]; |
} direct_t; |
|
/** |
* Extended directory entry type |
*/ |
typedef struct { |
ino_t d_ino; |
char d_name[DIRSIZEX]; |
} directex_t; |
|
direct_t direct; |
directex_t directex; |
direct_t direct; /**< Variable for storing a directory entry */ |
directex_t directex; /**< Variable for storing an extended directory entry */ |
|
#endif /* _DIR_H */ |
|
/** |
* } |
*/ |
|