Skip to content

Commit

Permalink
add zfs magic for GetFSType (#2950)
Browse files Browse the repository at this point in the history
  • Loading branch information
blotus committed Apr 25, 2024
1 parent 845d454 commit ceb4479
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/types/getfstype.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package types

import (
"fmt"

"golang.org/x/sys/unix"
)

Expand Down Expand Up @@ -92,6 +93,7 @@ var fsTypeMapping map[int64]string = map[int64]string{
0xabba1974: "xenfs",
0x012ff7b4: "xenix",
0x58465342: "xfs",
0x2fc12fc1: "zfs",
}

func GetFSType(path string) (string, error) {
Expand Down

0 comments on commit ceb4479

Please sign in to comment.