• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

cmd/continuity/H14-Aug-2018-128

commands/H14-Aug-2018-483372

continuityfs/H14-Aug-2018-351273

devices/H14-Aug-2018-7756

driver/H14-Aug-2018-413244

fs/H14-Aug-2018-3,0142,387

pathdriver/H14-Aug-2018-8660

proto/H14-Aug-2018-284174

syscallx/H14-Aug-2018-10883

sysx/H14-Aug-2018-344212

testutil/H14-Aug-2018-13789

vendor/H14-Aug-2018-189,384158,557

version/H14-Aug-2018-123

.gitignoreH A D14-Aug-2018270 2620

.mailmapH A D14-Aug-201888 21

.travis.ymlH A D14-Aug-2018452 2419

AUTHORSH A D14-Aug-2018630 1716

LICENSEH A D14-Aug-201811.1 KiB203169

MakefileH A D14-Aug-20181.8 KiB6944

README.mdH A D14-Aug-20181.7 KiB7554

context.goH A D14-Aug-201817.2 KiB654498

digests.goH A D14-Aug-20182.2 KiB8957

digests_test.goH A D14-Aug-20181.8 KiB7360

groups_unix.goH A D14-Aug-20181.9 KiB11486

hardlinks.goH A D14-Aug-20181.2 KiB5841

hardlinks_unix.goH A D14-Aug-2018982 3720

hardlinks_windows.goH A D14-Aug-2018386 136

ioutils.goH A D14-Aug-2018742 4035

manifest.goH A D14-Aug-20183.1 KiB145102

manifest_test.goH A D14-Aug-20189.5 KiB421326

manifest_test_darwin.goH A D14-Aug-2018354 2418

resource.goH A D14-Aug-201812.7 KiB575389

resource_test.goH A D14-Aug-20182.7 KiB157134

resource_unix.goH A D14-Aug-20181.1 KiB3818

resource_windows.goH A D14-Aug-2018286 138

testutil_test.goH A D14-Aug-2018986 5450

vendor.confH A D14-Aug-2018845 1413

README.md

1# continuity
2
3[![GoDoc](https://godoc.org/github.com/containerd/continuity?status.svg)](https://godoc.org/github.com/containerd/continuity)
4[![Build Status](https://travis-ci.org/containerd/continuity.svg?branch=master)](https://travis-ci.org/containerd/continuity)
5
6A transport-agnostic, filesystem metadata manifest system
7
8This project is a staging area for experiments in providing transport agnostic
9metadata storage.
10
11Please see https://github.com/opencontainers/specs/issues/11 for more details.
12
13## Manifest Format
14
15A continuity manifest encodes filesystem metadata in Protocol Buffers.
16Please refer to [proto/manifest.proto](proto/manifest.proto).
17
18## Usage
19
20Build:
21
22```console
23$ make
24```
25
26Create a manifest (of this repo itself):
27
28```console
29$ ./bin/continuity build . > /tmp/a.pb
30```
31
32Dump a manifest:
33
34```console
35$ ./bin/continuity ls /tmp/a.pb
36...
37-rw-rw-r--      270 B   /.gitignore
38-rw-rw-r--      88 B    /.mailmap
39-rw-rw-r--      187 B   /.travis.yml
40-rw-rw-r--      359 B   /AUTHORS
41-rw-rw-r--      11 kB   /LICENSE
42-rw-rw-r--      1.5 kB  /Makefile
43...
44-rw-rw-r--      986 B   /testutil_test.go
45drwxrwxr-x      0 B     /version
46-rw-rw-r--      478 B   /version/version.go
47```
48
49Verify a manifest:
50
51```console
52$ ./bin/continuity verify . /tmp/a.pb
53```
54
55Break the directory and restore using the manifest:
56```console
57$ chmod 777 Makefile
58$ ./bin/continuity verify . /tmp/a.pb
592017/06/23 08:00:34 error verifying manifest: resource "/Makefile" has incorrect mode: -rwxrwxrwx != -rw-rw-r--
60$ ./bin/continuity apply . /tmp/a.pb
61$ stat -c %a Makefile
62664
63$ ./bin/continuity verify . /tmp/a.pb
64```
65
66
67## Contribution Guide
68### Building Proto Package
69
70If you change the proto file you will need to rebuild the generated Go with `go generate`.
71
72```console
73$ go generate ./proto
74```
75