(domain int, number uint64, state *ImmutableState)
| 114 | } |
| 115 | |
| 116 | func newInode(domain int, number uint64, state *ImmutableState) *Inode { |
| 117 | if state == nil { |
| 118 | panic(fmt.Errorf("new inode: %d: missing state", number)) |
| 119 | } |
| 120 | |
| 121 | ino := &Inode{Domain: domain, Number: number, state: new(atomic.Pointer[ImmutableState])} |
| 122 | ino.state.Store(state) |
| 123 | return ino |
| 124 | } |
| 125 | |
| 126 | func (ino *Inode) LogValue() slog.Value { |
| 127 | var state string |
no outgoing calls
no test coverage detected