Browse Source

zfs: expose mountpoint/dataset on inspection

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>
Ahmed Kamal 8 năm trước cách đây
mục cha
commit
4addda3f07
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      daemon/graphdriver/zfs/zfs.go

+ 4 - 1
daemon/graphdriver/zfs/zfs.go

@@ -220,7 +220,10 @@ func (d *Driver) Status() [][2]string {
 
 // GetMetadata returns image/container metadata related to graph driver
 func (d *Driver) GetMetadata(id string) (map[string]string, error) {
-	return nil, nil
+	return map[string]string{
+		"Mountpoint": d.mountPath(id),
+		"Dataset":    d.zfsPath(id),
+	}, nil
 }
 
 func (d *Driver) cloneFilesystem(name, parentName string) error {