X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ee9d1e39b5d469a827be5a719c9c0860914ab2a8..da4bc7c758d09c1c02542b54b96eab018f746eae:/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)) +}