diff --git a/node.go b/node.go index d7f4bcf..79ea19b 100644 --- a/node.go +++ b/node.go @@ -23,5 +23,12 @@ package main type Node struct { - name string + Magic uint8 + Size uint64 + Atime int64 + Mtime int64 + Ctime int64 + Mode uint32 + Uid uint32 + Gid uint32 } diff --git a/table.go b/table.go index 6e5910f..a51a171 100644 --- a/table.go +++ b/table.go @@ -29,7 +29,8 @@ import ( ) type NodeTable struct { - nodes []Node + Magic uint16 + Nodes []Node } func NewNodeTable() *NodeTable {