Logo
Explore Help
Sign In
TheArchive/restic
1
0
Fork 0
You've already forked restic
mirror of https://github.com/restic/restic.git synced 2025-05-10 21:56:48 +00:00
Code Issues Packages Projects Releases Wiki Activity
restic/internal/fs/mknod_unix.go

19 lines
306 B
Go
Raw Normal View History

add go:build headers everywhere
2022-03-28 22:23:47 +02:00
//go:build !freebsd && !windows
Make restic.{lchown,mknod} regular functions This way, they can be inlined and dead code can be removed on Windows. Also fixed some comments.
2021-05-27 21:29:51 +02:00
// +build !freebsd,!windows
restic: extract Node filesystem code to fs package
2024-08-26 23:03:25 +02:00
package fs
Make restic.{lchown,mknod} regular functions This way, they can be inlined and dead code can be removed on Windows. Also fixed some comments.
2021-05-27 21:29:51 +02:00
fs: Include filename in mknod errors
2024-10-03 21:17:22 +02:00
import (
"os"
Make restic.{lchown,mknod} regular functions This way, they can be inlined and dead code can be removed on Windows. Also fixed some comments.
2021-05-27 21:29:51 +02:00
fs: Include filename in mknod errors
2024-10-03 21:17:22 +02:00
"golang.org/x/sys/unix"
)
func mknod(path string, mode uint32, dev uint64) error {
err := unix.Mknod(path, mode, int(dev))
if err != nil {
err = &os.PathError{Op: "mknod", Path: path, Err: err}
}
return err
Make restic.{lchown,mknod} regular functions This way, they can be inlined and dead code can be removed on Windows. Also fixed some comments.
2021-05-27 21:29:51 +02:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.6 Page: 159ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API