small refactor*
This commit is contained in:
parent
b6b541e050
commit
24a4d30275
232 changed files with 2164 additions and 1906 deletions
server/pkg/go-nfs/file
17
server/pkg/go-nfs/file/file.go
Normal file
17
server/pkg/go-nfs/file/file.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
package file
|
||||
|
||||
import "os"
|
||||
|
||||
type FileInfo struct {
|
||||
Nlink uint32
|
||||
UID uint32
|
||||
GID uint32
|
||||
Major uint32
|
||||
Minor uint32
|
||||
Fileid uint64
|
||||
}
|
||||
|
||||
// GetInfo extracts some non-standardized items from the result of a Stat call.
|
||||
func GetInfo(fi os.FileInfo) *FileInfo {
|
||||
return getInfo(fi)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue