mirror of
https://github.com/containerd/containerd.git
synced 2026-08-03 22:50:44 +00:00
Fix incorrect default config value for block CIM snapshotter
This change updates an incorrect default config value for the block CIM snapshotter. The `ntfsFormat` should always be false for the block CIM snapshotter. If the scratch needs to be formatted with NTFS, a format option named `WithNTFSFormat` can be provided. Signed-off-by: Amit Barve <ambarve@microsoft.com>
This commit is contained in:
@@ -83,7 +83,7 @@ func WithSize(size uint64) scratchCreationOpt {
|
||||
// defaultScratchCreationOptions returns the default options for scratch VHD creation
|
||||
func defaultScratchCreationOptions() *scratchCreationOptions {
|
||||
return &scratchCreationOptions{
|
||||
ntfsFormat: true,
|
||||
ntfsFormat: false,
|
||||
sizeInBytes: defaultScratchVHDSizeInBytes,
|
||||
}
|
||||
}
|
||||
@@ -420,7 +420,7 @@ func createDifferencingScratchVHDs(ctx context.Context, path string) (err error)
|
||||
}()
|
||||
|
||||
if !baseVHDExists {
|
||||
if err = createScratchVHD(ctx, baseVHDPath); err != nil {
|
||||
if err = createScratchVHD(ctx, baseVHDPath, WithNTFSFormat()); err != nil {
|
||||
return fmt.Errorf("failed to create base vhd: %w", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user