From ceb4479ec41e6afd10e9ad4c7a5e5f45e612a03c Mon Sep 17 00:00:00 2001 From: blotus Date: Thu, 25 Apr 2024 15:05:11 +0200 Subject: [PATCH] add zfs magic for GetFSType (#2950) --- pkg/types/getfstype.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/types/getfstype.go b/pkg/types/getfstype.go index 25790ecb6..aac12c7fc 100644 --- a/pkg/types/getfstype.go +++ b/pkg/types/getfstype.go @@ -4,6 +4,7 @@ package types import ( "fmt" + "golang.org/x/sys/unix" ) @@ -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) {