From 93ec5aa9a86f57f6d7890c1b1b3053f3b0e80995 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 14 Mar 2012 10:50:28 -0700 Subject: [PATCH] fuse: add fuse_kernel_linux.go, forgotten earlier. Change-Id: If3e5333ee670b6a6fce2689649c68053974abe84 --- .../p/rsc/fuse/fuse_kernel_linux.go | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 third_party/code.google.com/p/rsc/fuse/fuse_kernel_linux.go diff --git a/third_party/code.google.com/p/rsc/fuse/fuse_kernel_linux.go b/third_party/code.google.com/p/rsc/fuse/fuse_kernel_linux.go new file mode 100644 index 000000000..5dc66f5e9 --- /dev/null +++ b/third_party/code.google.com/p/rsc/fuse/fuse_kernel_linux.go @@ -0,0 +1,52 @@ +package fuse + +import "time" + +type attr struct { + Ino uint64 + Size uint64 + Blocks uint64 + Atime uint64 + Mtime uint64 + Ctime uint64 + AtimeNsec uint32 + MtimeNsec uint32 + CtimeNsec uint32 + Mode uint32 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev uint32 +// Blksize uint32 // Only in protocol 7.9 +// padding_ uint32 // Only in protocol 7.9 +} + +func (a *attr) Crtime() time.Time { + return time.Time{} +} + +func (a *attr) SetCrtime(s uint64, ns uint32) { + // Ignored on Linux. +} + +func (a *attr) SetFlags(f uint32) { + // Ignored on Linux. +} + +type setattrIn struct { + setattrInCommon +} + +func (in *setattrIn) BkupTime() time.Time { + return time.Time{} +} + +func (in *setattrIn) Chgtime() time.Time { + return time.Time{} +} + +func (in *setattrIn) Flags() uint32 { + return 0 +} + +