You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// See https://www.kernel.org/doc/Documentation/device-mapper/thin-provisioning.txt for details
34
-
dataBlockMinSize=128
35
-
dataBlockMaxSize=2097152
36
-
)
37
-
38
-
var (
39
-
errInvalidBlockSize=errors.Errorf("block size should be between %d and %d", dataBlockMinSize, dataBlockMaxSize)
40
-
errInvalidBlockAlignment=errors.Errorf("block size should be multiple of %d sectors", dataBlockMinSize)
41
-
)
42
-
43
31
// Config represents device mapper configuration loaded from file.
44
32
// Size units can be specified in human-readable string format (like "32KIB", "32GB", "32Tb")
45
33
typeConfigstruct {
@@ -49,19 +37,6 @@ type Config struct {
49
37
// Name for 'thin-pool' device to be used by snapshotter (without /dev/mapper/ prefix)
50
38
PoolNamestring`toml:"pool_name"`
51
39
52
-
// Path to data volume to be used by thin-pool
53
-
DataDevicestring`toml:"data_device"`
54
-
55
-
// Path to metadata volume to be used by thin-pool
56
-
MetadataDevicestring`toml:"meta_device"`
57
-
58
-
// The size of allocation chunks in data file.
59
-
// Must be between 128 sectors (64KB) and 2097152 sectors (1GB) and a multiple of 128 sectors (64KB)
60
-
// Block size can't be changed after pool created.
61
-
// See https://www.kernel.org/doc/Documentation/device-mapper/thin-provisioning.txt
62
-
DataBlockSizestring`toml:"data_block_size"`
63
-
DataBlockSizeSectorsuint32`toml:"-"`
64
-
65
40
// Defines how much space to allocate when creating base image for container
0 commit comments