Skip to content

Commit bd2300d

Browse files
committed
format container scratch in superfloppy mode
Signed-off-by: Amit Barve <ambarve@microsoft.com>
1 parent bb4e798 commit bd2300d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

internal/fsformatter/formatter_driver.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,17 @@ func (filesystemType kernelFormatVolumeFilesystemTypes) String() string {
6060

6161
type kernelFormatVolumeFormatInputBufferFlags uint32
6262

63-
const kernelFormatVolumeFormatInputBufferFlagNone = kernelFormatVolumeFormatInputBufferFlags(0x00000000)
63+
const (
64+
kernelFormatVolumeFormatInputBufferFlagNone = kernelFormatVolumeFormatInputBufferFlags(0x00000000)
65+
kernelFormatVolumeFormatInputBufferFlagSuperFloppy = kernelFormatVolumeFormatInputBufferFlags(0x00000001)
66+
)
6467

6568
func (flag kernelFormatVolumeFormatInputBufferFlags) String() string {
6669
switch flag {
6770
case kernelFormatVolumeFormatInputBufferFlagNone:
6871
return "kernelFormatVolumeFormatInputBufferFlagNone"
72+
case kernelFormatVolumeFormatInputBufferFlagSuperFloppy:
73+
return "kernelFormatVolumeFormatInputBufferFlagSuperFloppy"
6974
default:
7075
return "Unknown"
7176
}
@@ -211,7 +216,7 @@ func KmFmtCreateFormatInputBuffer(diskPath string) *KernelFormatVolumeFormatInpu
211216
inputBuffer := (*KernelFormatVolumeFormatInputBuffer)(unsafe.Pointer(&buf[0]))
212217

213218
inputBuffer.Size = uint64(bufferSize)
214-
inputBuffer.Flags = kernelFormatVolumeFormatInputBufferFlagNone
219+
inputBuffer.Flags = kernelFormatVolumeFormatInputBufferFlagSuperFloppy
215220

216221
inputBuffer.FsParameters.FileSystemType = kernelFormatVolumeFilesystemTypeRefs
217222
inputBuffer.FsParameters.VolumeLabelLength = 0

0 commit comments

Comments
 (0)