X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/bf6539ec9d5f207be4be363720ef118e25e7abbe..bf521e2fd9fae16bf5738f988496a3dbb1e32833:/sdk/go/arvados/fs_site.go diff --git a/sdk/go/arvados/fs_site.go b/sdk/go/arvados/fs_site.go index a4a18837e0..d4f0241682 100644 --- 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 } +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. // @@ -386,3 +390,7 @@ func (hl *hardlink) FileInfo() os.FileInfo { } return fi } + +func (hl *hardlink) MemorySize() int64 { + return 64 + int64(len(hl.name)) +}