fs: deterministic inode numbers.

This commit is contained in:
fiatjaf
2025-03-09 00:17:56 -03:00
parent 5fe354f642
commit 186948db9a
3 changed files with 3 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ func CreateEventDir(
h := parent.EmbeddedInode().NewPersistentInode(
ctx,
&EventDir{ctx: ctx, evt: event},
fs.StableAttr{Mode: syscall.S_IFDIR},
fs.StableAttr{Mode: syscall.S_IFDIR, Ino: hexToUint64(event.ID)},
)
eventj, _ := easyjson.Marshal(event)