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: implement device wiping by signatures #116

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion blkid/blkid.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/google/uuid"
"go.uber.org/zap"

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

Expand Down Expand Up @@ -51,11 +52,13 @@ type Info struct { //nolint:govet
}

// ProbeResult is a result of probing a single filesystem/partition.
type ProbeResult struct { //nolint:govet
type ProbeResult struct {
Name string
UUID *uuid.UUID
Label *string

SignatureRanges []SignatureRange

BlockSize uint32
FilesystemBlockSize uint32
ProbedSize uint64
Expand All @@ -81,6 +84,9 @@ type NestedProbeResult struct { //nolint:govet
Parts []NestedProbeResult
}

// SignatureRange is a range of bytes for signature detection.
type SignatureRange = probe.SignatureRange

// ProbeOptions is the options for probing.
type ProbeOptions struct {
// Logger to use for logging.
Expand Down
Loading