Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: start the blkid work #77

Merged
merged 1 commit into from
Feb 26, 2024
Merged

feat: start the blkid work #77

merged 1 commit into from
Feb 26, 2024

Conversation

smira
Copy link
Member

@smira smira commented Feb 20, 2024

This first piece implements filesystem detection.

@smira smira force-pushed the feat/blkid branch 4 times, most recently from 17b3dbf to 8b0708b Compare February 23, 2024 16:13
kind: golang.Toolchain
spec:
extraPackages:
- cdrkit
Copy link
Member

Choose a reason for hiding this comment

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

i had to look up what was this 😅

Copy link
Member Author

Choose a reason for hiding this comment

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

go find mkisofs :-D

// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

// Code generated by "cstruct -pkg ext -struct SuperBlock -input superblock.h -endianness LittleEndian"; DO NOT EDIT.
Copy link
Member

Choose a reason for hiding this comment

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

Neat :)

"github.com/siderolabs/go-blockdevice/v2/blkid/internal/probers"
)

func (i *Info) probe(f *os.File, offset, length uint64) error {
Copy link
Member

Choose a reason for hiding this comment

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

Are we going to have fallback to unknown FS if we found something we couldn't read?

Copy link
Member Author

Choose a reason for hiding this comment

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

it just returns no information in the Info for now, so basically it will set some fields like block device sector size, but it won't set anything else in the info (it will be all empty)

This first piece implements filesystem detection.

Signed-off-by: Andrey Smirnov <[email protected]>
@smira
Copy link
Member Author

smira commented Feb 26, 2024

/m

@talos-bot talos-bot merged commit 9beb2bd into siderolabs:v2 Feb 26, 2024
14 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