Explorar o código

zfs: expose mountpoint/dataset on inspection

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>
Ahmed Kamal %!s(int64=8) %!d(string=hai) anos
pai
achega
4addda3f07
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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
 // GetMetadata returns image/container metadata related to graph driver
 func (d *Driver) GetMetadata(id string) (map[string]string, error) {
 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 {
 func (d *Driver) cloneFilesystem(name, parentName string) error {