Skip to content

Block cim create and mount check update#2621

Open
pomahade wants to merge 2 commits intomicrosoft:mainfrom
pomahade:main
Open

Block cim create and mount check update#2621
pomahade wants to merge 2 commits intomicrosoft:mainfrom
pomahade:main

Conversation

@pomahade
Copy link
Contributor

@pomahade pomahade commented Mar 5, 2026

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
Copy link
Contributor

anmaxvl commented Mar 5, 2026

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

pomahade added 2 commits March 5, 2026 14:41
Signed-off-by: Pooja Mahadev Soundalgekar <pomahade@microsoft.com>
Signed-off-by: Pooja Mahadev Soundalgekar <pomahade@microsoft.com>
// 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
Contributor

Choose a reason for hiding this comment

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

IsBlockCimSupported() || cimwriter.Supported()

// 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
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()
}


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

Choose a reason for hiding this comment

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

just IsBlockCimWriteSupported()


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

Choose a reason for hiding this comment

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

just IsBlockCimSupported()

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