Commit 485ecd0f authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Be more verbose in negative count panic.

parent f1d2075f
......@@ -221,7 +221,7 @@ const initDirSize = 20
func (me *Inode) verify(cur *fileSystemMount) {
if me.lookupCount < 0 {
panic("negative lookup count")
panic(fmt.Sprintf("negative lookup count %d on node %d", me.lookupCount, me.nodeId))
}
if me.mountPoint != nil {
if me != me.mountPoint.mountInode {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment