restic: extract Node filesystem code to fs package
This commit is contained in:
parent
a2e54eac64
commit
b9b32e5647
26 changed files with 783 additions and 752 deletions
10
internal/fs/mknod_unix.go
Normal file
10
internal/fs/mknod_unix.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
//go:build !freebsd && !windows
|
||||
// +build !freebsd,!windows
|
||||
|
||||
package fs
|
||||
|
||||
import "golang.org/x/sys/unix"
|
||||
|
||||
func mknod(path string, mode uint32, dev uint64) (err error) {
|
||||
return unix.Mknod(path, mode, int(dev))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue