From b9b7ca4f1c5fd90fd57597e05c059924a54c0279 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Fri, 27 Feb 2015 09:47:32 +1100 Subject: [PATCH] Match struct order to method order. --- file_system.go | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/file_system.go b/file_system.go index 6d9e4a6..83bcd9c 100644 --- a/file_system.go +++ b/file_system.go @@ -94,24 +94,6 @@ type InodeAttributes struct { // Requests and responses //////////////////////////////////////////////////////////////////////// -type OpenDirRequest struct { - // The ID of the inode to be opened. - Inode InodeID - - // Mode and options flags. - Flags bazilfuse.OpenFlags -} - -type OpenDirResponse struct { - // An opaque ID that will be echoed in follow-up calls for this directory - // using the same struct file in the kernel. In practice this usually means - // follow-up calls using the file descriptor returned by open(2). - // - // The file system must ensure this ID remains valid until a later call to - // ReleaseHandle. - Handle HandleID -} - type LookupRequest struct { // The ID of the directory inode to which the child belongs. Parent InodeID @@ -205,3 +187,21 @@ type ForgetInodeRequest struct { type ForgetInodeResponse struct { } + +type OpenDirRequest struct { + // The ID of the inode to be opened. + Inode InodeID + + // Mode and options flags. + Flags bazilfuse.OpenFlags +} + +type OpenDirResponse struct { + // An opaque ID that will be echoed in follow-up calls for this directory + // using the same struct file in the kernel. In practice this usually means + // follow-up calls using the file descriptor returned by open(2). + // + // The file system must ensure this ID remains valid until a later call to + // ReleaseHandle. + Handle HandleID +}