From 6c6218dceb4a1214e7d53134ceef90447b4eb4d6 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Fri, 27 Feb 2015 10:43:58 +1100 Subject: [PATCH] Rearranged simple types. --- file_system.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/file_system.go b/file_system.go index 5c4f582..9d6ad81 100644 --- a/file_system.go +++ b/file_system.go @@ -67,12 +67,6 @@ type FileSystem interface { // (Cf. http://goo.gl/tvYyQt) type InodeID uint64 -// An opaque 64-bit number used to identify a particular open handle to a file -// or directory. -// -// This corresponds to fuse_file_info::fh. -type HandleID uint64 - // A distinguished inode ID that identifies the root of the file system, e.g. // in a request to OpenDir or LookUpInode. Unlike all other inode IDs, which // are minted by the file system, the FUSE VFS layer may send a request for @@ -80,6 +74,13 @@ type HandleID uint64 // response. const RootInodeID InodeID = InodeID(bazilfuse.RootID) +// Attributes for a file or directory inode. Corresponds to struct inode (cf. +// http://goo.gl/tvYyQt). +type InodeAttributes struct { + // The size of the file in bytes. + Size uint64 +} + // A generation number for an inode. Irrelevant for file systems that won't be // exported over NFS. For those that will and that reuse inode IDs when they // become free, the generation number must change when an ID is reused. @@ -97,12 +98,11 @@ const RootInodeID InodeID = InodeID(bazilfuse.RootID) // type GenerationNumber uint64 -// Attributes for a file or directory inode. Corresponds to struct inode (cf. -// http://goo.gl/tvYyQt). -type InodeAttributes struct { - // The size of the file in bytes. - Size uint64 -} +// An opaque 64-bit number used to identify a particular open handle to a file +// or directory. +// +// This corresponds to fuse_file_info::fh. +type HandleID uint64 //////////////////////////////////////////////////////////////////////// // Requests and responses