containerd/services
Stephen J Day 863784f991
snapshot: replace "readonly" with View snapshot type
What started out as a simple PR to remove the "Readonly" column became an
adventure to add a proper type for a "View" snapshot. The short story here is
that we now get the following output:

```
$ sudo ctr snapshot ls
ID 									 PARENT 								 KIND
sha256:08c2295a7fa5c220b0f60c994362d290429ad92f6e0235509db91582809442f3 								  	 Committed
testing4								 sha256:08c2295a7fa5c220b0f60c994362d290429ad92f6e0235509db91582809442f3 Active
```

In pursuing this output, it was found that the idea of having "readonly" as an
attribute on all snapshots was redundant. For committed, they are always
readonly, as they are not accessible without an active snapshot. For active
snapshots that were views, we'd have to check the type before interpreting
"readonly". With this PR, this is baked fully into the kind of snapshot. When
`Snapshotter.View` is  called, the kind of snapshot is `KindView`, and the
storage system reflects this end to end.

Unfortunately, this will break existing users. There is no migration, so they
will have to wipe `/var/lib/containerd` and recreate everything. However, this
is deemed worthwhile at this point, as we won't have to judge validity of the
"Readonly" field when new snapshot types are added.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-07-24 16:58:01 -07:00
..
containers support using multiple snapshotters simultaneously 2017-07-12 11:16:12 -07:00
content update to github.com/sirupsen/logrus v1.0.0 2017-07-21 15:39:14 -07:00
diff Update task service to use metadata content store 2017-07-11 11:11:10 -07:00
events update to github.com/sirupsen/logrus v1.0.0 2017-07-21 15:39:14 -07:00
healthcheck Setup plugin ids and dependencies 2017-06-14 16:17:20 -07:00
images images, containers: converge metadata API conventions 2017-07-11 10:45:12 -07:00
namespaces errdefs: centralize error handling 2017-06-29 15:00:47 -07:00
snapshot snapshot: replace "readonly" with View snapshot type 2017-07-24 16:58:01 -07:00
tasks Merge pull request #1209 from stevvooe/remove-errors 2017-07-18 19:18:23 -07:00
version *: update import paths to use versioned services 2017-06-21 18:29:06 -07:00