Linked changes in mount
@@ -19,6 +19,7 @@ import (
"log"
"os"
+ "github.com/googlecloudplatform/gcsfuse/internal/storage"
"golang.org/x/net/context"
"github.com/googlecloudplatform/gcsfuse/internal/fs"
@@ -38,6 +39,7 @@ func mountWithConn(
mountPoint string,
flags *flagStorage,
conn *gcsx.Connection,
+ storageHandle storage.StorageHandle,
status *log.Logger) (mfs *fuse.MountedFileSystem, err error) {
// Sanity check: make sure the temporary directory exists and is writable
// currently. This gives a better user experience than harder to debug EIO
@@ -93,7 +95,7 @@ be interacting with the file system.`)
AppendThreshold: 1 << 21, // 2 MiB, a total guess.
TmpObjectPrefix: ".gcsfuse_tmp/",
}
- bm := gcsx.NewBucketManager(bucketCfg, conn)
+ bm := gcsx.NewBucketManager(bucketCfg, conn, storageHandle)
// Create a file system server.
serverCfg := &fs.ServerConfig{
