vfs: Add SetSys() methods to Node to allow caching stuff on a node

This commit is contained in:
Nick Craig-Wood
2020-05-04 11:38:07 +01:00
parent 7f8d74e903
commit cfcdc85b26
5 changed files with 31 additions and 2 deletions
+4
View File
@@ -54,6 +54,10 @@ func TestDirMethods(t *testing.T) {
// Sys
assert.Equal(t, nil, dir.Sys())
// SetSys
dir.SetSys(42)
assert.Equal(t, 42, dir.Sys())
// Inode
assert.NotEqual(t, uint64(0), dir.Inode())