-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
17b3dbf
to
8b0708b
Compare
kind: golang.Toolchain | ||
spec: | ||
extraPackages: | ||
- cdrkit |
There was a problem hiding this comment.
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 😅
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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]>
/m |
This first piece implements filesystem detection.