Initial commit
Proof-of-concept implementation. Bugs will occur.
This commit is contained in:
22
vendor/github.com/hanwen/go-fuse/v2/fuse/direntry_linux.go
generated
vendored
Normal file
22
vendor/github.com/hanwen/go-fuse/v2/fuse/direntry_linux.go
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
// Copyright 2024 the Go-FUSE Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package fuse
|
||||
|
||||
import "unsafe"
|
||||
|
||||
// Like syscall.Dirent, but without the [256]byte name. This is
|
||||
// equivalent to the linux_dirent64 struct, returned from the
|
||||
// getdents64 syscall.
|
||||
type dirent struct {
|
||||
Ino uint64
|
||||
Off int64
|
||||
Reclen uint16
|
||||
Type uint8
|
||||
Name [1]uint8 // align to 4 bytes for 32 bits.
|
||||
}
|
||||
|
||||
func (de *dirent) nameLength() int {
|
||||
return int(de.Reclen) - int(unsafe.Offsetof(dirent{}.Name))
|
||||
}
|
||||
Reference in New Issue
Block a user