Project

General

Profile

Ndnfs » History » Version 3

Wentao Shang, 11/19/2015 03:11 PM

1 1 Wentao Shang
NDNFS: an NDN-friendly file system
2
=====
3
4
NDNFS Metadata format
5
-----
6 2 Wentao Shang
7
NDNFS uses metadata to facilitate the discovery of directory contents, file versions and segments.
8
The format of metadata is specified using "Google Protobuf":https://github.com/google/protobuf/.
9 3 Wentao Shang
Currently two types of metadata are defined: directory metadata and file metadata.
10
11
Directory metadata
12
-----
13
14
The directory metadata helps the client navigate through the NDNFS hierarchy.
15
The metadata packet contains a list of metadata entries.
16
Each entry specifies the path of the entry and its entry type (file, directory, symlink, etc.).
17
18
    message DirInfo
19
    {
20
      required string path = 1;
21
      required int32 type = 2;
22
    }
23
24
    message DirInfoArray
25
    {
26
      repeated DirInfo di = 1;
27
    }
28
29
30
File metadata
31
-----
32
33
The file metadata contains at least three attributes: size, total number of segments and current version number.
34
More attributes can be added in the future.
35
36
    message FileInfo
37
    {
38
      required int32 size = 1;
39
      required int32 totalseg = 2;
40
      required int32 version = 3;
41
    }
42
43
44
NDNFS Metadata Protocol
45
-----
46
47
TBD.