File tree Expand file tree Collapse file tree 6 files changed +9
-2
lines changed Expand file tree Collapse file tree 6 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ func init() {
74
74
}
75
75
opts = append (opts , blockfile .WithRecreateScratch (config .RecreateScratch ))
76
76
77
+ ic .Meta .Exports [plugins .SnapshotterRootDir ] = root
77
78
return blockfile .NewSnapshotter (root , opts ... )
78
79
},
79
80
})
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ func init() {
54
54
root = config .RootPath
55
55
}
56
56
57
- ic .Meta .Exports = map [ string ] string { " root" : root }
57
+ ic .Meta .Exports [ plugins . SnapshotterRootDir ] = root
58
58
return btrfs .NewSnapshotter (root )
59
59
},
60
60
})
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ func init() {
50
50
config .RootPath = ic .Properties [plugins .PropertyRootDir ]
51
51
}
52
52
53
+ ic .Meta .Exports [plugins .SnapshotterRootDir ] = config .RootPath
53
54
return devmapper .NewSnapshotter (ic .Context , config )
54
55
},
55
56
})
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ func init() {
50
50
root = config .RootPath
51
51
}
52
52
53
+ ic .Meta .Exports [plugins .SnapshotterRootDir ] = root
53
54
return native .NewSnapshotter (root )
54
55
},
55
56
})
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ func init() {
92
92
ic .Meta .Capabilities = append (ic .Meta .Capabilities , capaOnlyRemapIDs )
93
93
}
94
94
95
- ic .Meta .Exports ["root" ] = root
95
+ ic .Meta .Exports [plugins . SnapshotterRootDir ] = root
96
96
return overlay .NewSnapshotter (root , oOpts ... )
97
97
},
98
98
})
Original file line number Diff line number Diff line change @@ -93,3 +93,7 @@ const (
93
93
// PropertyTTRPCAddress is the ttrpc address used for client connections to containerd
94
94
PropertyTTRPCAddress = "io.containerd.plugin.ttrpc.address"
95
95
)
96
+
97
+ const (
98
+ SnapshotterRootDir = "root"
99
+ )
You can’t perform that action at this time.
0 commit comments