Skip to content

Block cim create and mount check update - #2621

Merged
pomahade merged 2 commits into
microsoft:mainfrom
pomahade:main
Mar 10, 2026
Merged

Block cim create and mount check update#2621
pomahade merged 2 commits into
microsoft:mainfrom
pomahade:main

Conversation

@pomahade

@pomahade pomahade commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

Adding new functions that adds cimwriter.dll check for block cim write/create and keeps block cim mount check to OS version and cimfs dll check.

@pomahade
pomahade requested a review from a team as a code owner March 5, 2026 00:18
@pomahade
pomahade force-pushed the main branch 2 times, most recently from 98ed845 to a5c3fad Compare March 5, 2026 00:32
@anmaxvl

anmaxvl commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

I think you'd need to rebase and drop other commits.

Signed-off-by: Pooja Mahadev Soundalgekar <pomahade@microsoft.com>
Comment thread pkg/cimfs/cimfs.go Outdated
// TODO(ambarve): Currently we are checking against a higher build number since there is no
// official build with block CIM support yet. Once we have that build, we should
// update the build number here.
return (build >= 27766 && cimfs.Supported()) || cimwriter.Supported()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IsBlockCimSupported() || cimwriter.Supported()

Comment thread pkg/cimfs/cimfs.go Outdated
// IsBlockCimMountSupported returns true if block formatted CIMs (i.e block device CIM &
// single file CIM) are supported on the current OS build.
func IsBlockCimMountSupported() bool {
build := osversion.Build()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

func IsBlockCimMountSupported() bool {
IsBlockCimSupported()
}

Comment thread pkg/cimfs/cimfs.go Outdated

// IsVerifiedCimWriteSupported returns true if block CIM format supports also writing verification information in the CIM.
func IsVerifiedCimWriteSupported() bool {
build := osversion.Build()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just IsBlockCimWriteSupported()

Comment thread pkg/cimfs/cimfs.go Outdated

// IsVerifiedCimMountSupported returns true if block CIM format supports mounting.
func IsVerifiedCimMountSupported() bool {
build := osversion.Build()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just IsBlockCimSupported()

Signed-off-by: Pooja Mahadev Soundalgekar <pomahade@microsoft.com>
@pomahade
pomahade merged commit 9bc19ab into microsoft:main Mar 10, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants