Stop referring to fuseshim.RootID.

geesefs-0-30-9
Aaron Jacobs 2015-07-24 14:05:13 +10:00
parent 964ae1b4e5
commit 6dd4bf3b90
1 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ import (
"os" "os"
"time" "time"
"github.com/jacobsa/fuse/internal/fuseshim" "github.com/jacobsa/fuse/internal/fusekernel"
) )
// A 64-bit number used to uniquely identify a file or directory in the file // A 64-bit number used to uniquely identify a file or directory in the file
@ -38,7 +38,7 @@ const RootInodeID = 1
func init() { func init() {
// Make sure the constant above is correct. We do this at runtime rather than // Make sure the constant above is correct. We do this at runtime rather than
// defining the constant in terms of fuseshim.RootID for two reasons: // defining the constant in terms of fusekernel.RootID for two reasons:
// //
// 1. Users can more clearly see that the root ID is low and can therefore // 1. Users can more clearly see that the root ID is low and can therefore
// be used as e.g. an array index, with space reserved up to the root. // be used as e.g. an array index, with space reserved up to the root.
@ -46,12 +46,12 @@ func init() {
// 2. The constant can be untyped and can therefore more easily be used as // 2. The constant can be untyped and can therefore more easily be used as
// an array index. // an array index.
// //
if RootInodeID != fuseshim.RootID { if RootInodeID != fusekernel.RootID {
panic( panic(
fmt.Sprintf( fmt.Sprintf(
"Oops, RootInodeID is wrong: %v vs. %v", "Oops, RootInodeID is wrong: %v vs. %v",
RootInodeID, RootInodeID,
fuseshim.RootID)) fusekernel.RootID))
} }
} }