mirror of
https://github.com/fiatjaf/nak.git
synced 2025-12-10 01:28:49 +00:00
fs: deterministic inode numbers.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user