projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge 21447: closes #21447
[arvados.git]
/
sdk
/
go
/
arvados
/
fs_site.go
diff --git
a/sdk/go/arvados/fs_site.go
b/sdk/go/arvados/fs_site.go
index a4a18837e00e7074521ce3e562fb30c21b84c1eb..d4f02416822a8b52494f62672a95bd00c1c04519 100644
(file)
--- a/
sdk/go/arvados/fs_site.go
+++ b/
sdk/go/arvados/fs_site.go
@@
-123,6
+123,10
@@
func (fs *customFileSystem) ForwardSlashNameSubstitution(repl string) {
fs.forwardSlashNameSubstitution = repl
}
fs.forwardSlashNameSubstitution = repl
}
+func (fs *customFileSystem) MemorySize() int64 {
+ return fs.fileSystem.MemorySize() + fs.byIDRoot.MemorySize()
+}
+
// SiteFileSystem returns a FileSystem that maps collections and other
// Arvados objects onto a filesystem layout.
//
// SiteFileSystem returns a FileSystem that maps collections and other
// Arvados objects onto a filesystem layout.
//
@@
-386,3
+390,7
@@
func (hl *hardlink) FileInfo() os.FileInfo {
}
return fi
}
}
return fi
}
+
+func (hl *hardlink) MemorySize() int64 {
+ return 64 + int64(len(hl.name))
+}