fs: Include filename in mknod errors

This commit is contained in:
greatroar
2024-10-03 21:17:22 +02:00
parent efec1a5e96
commit e10e2bb50f
3 changed files with 32 additions and 6 deletions

View File

@@ -3,12 +3,19 @@
package fs
import "syscall"
import (
"os"
"syscall"
)
func nodeRestoreSymlinkTimestamps(path string, utimes [2]syscall.Timespec) error {
return nil
}
func mknod(path string, mode uint32, dev uint64) (err error) {
return syscall.Mknod(path, mode, dev)
func mknod(path string, mode uint32, dev uint64) error {
err := syscall.Mknod(path, mode, dev)
if err != nil {
err = &os.PathError{Op: "mknod", Path: path, Err: err}
}
return err
}