Revision 1 (by moose, 2006/07/06 01:31:16) Initial import
#ifndef __TFS_H__
#define __TFS_H__

#define TFS_VERSION 2

/*
Block/Page layer handles block allocation, paging, and journaling
Btree layer handles all objects though (guid) globally uniqe IDs

FS header contains guid for root node

UUID module handles creation of guid's

*/

typedef tfs_uuid_u tfs_uuid_t;
union tfs_uuid_u {
	uint64_t u_id;
	struct {
		uint32_t u_sec;
		uint32_t u_msec : 20; // 42 bits, 22 bits left
		uint32_t u_inc : 12; // global->id++;
	} __attribute__((packed));
};

typedef struct tfs_s tfs_t;
typedef struct tfs_disk_s tfs_disk_t;

struct tfs_disk_s {

};


/*


*/

#endif /* __TFS_H__ */