Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/dmverity-vhd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const (
imageFlag = "image"
verboseFlag = "verbose"
outputDirFlag = "out-dir"
maxVHDSize = 128 * 1024 * 1024 * 1024
maxVHDSize = dmverity.RecommendedVHDSizeGB
)

func init() {
Expand Down
3 changes: 2 additions & 1 deletion ext4/dmverity/dmverity.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ import (

const (
blockSize = compactext4.BlockSize
// RecommendedVHDSizeGB is the recommended size in GB for VHDs, which is not a hard limit.
RecommendedVHDSizeGB = 128 * 1024 * 1024 * 1024
)

var salt = bytes.Repeat([]byte{0}, 32)

var (
Expand Down
2 changes: 1 addition & 1 deletion internal/tools/securitypolicy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func createPolicyFromConfig(config Config) (sp.SecurityPolicy, error) {

opts := []tar2ext4.Option{
tar2ext4.ConvertWhiteout,
tar2ext4.MaximumDiskSize(128 * 1024 * 1024 * 1024),
tar2ext4.MaximumDiskSize(dmverity.RecommendedVHDSizeGB),
}

err = tar2ext4.Convert(r, out, opts...)
Expand Down