浏览代码

btrfs: Add comment to Put()

Document why we don't need to do anything in Put().

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
Alexander Larsson 11 年之前
父节点
当前提交
a1851a6d3e
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      graphdriver/btrfs/btrfs.go

+ 2 - 0
graphdriver/btrfs/btrfs.go

@@ -206,6 +206,8 @@ func (d *Driver) Get(id string) (string, error) {
 }
 }
 
 
 func (d *Driver) Put(id string) {
 func (d *Driver) Put(id string) {
+	// Get() creates no runtime resources (like e.g. mounts)
+	// so this doesn't need to do anything.
 }
 }
 
 
 func (d *Driver) Exists(id string) bool {
 func (d *Driver) Exists(id string) bool {