You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fsimpl/gofer: report warning instead of panic if a file type has been changed
Replaces a panic with a warning and cache invalidation when a file's type
is detected to have changed during lisafs revalidation, despite the inode
key remaining the same.
PiperOrigin-RevId: 809324446
panic(fmt.Sprintf("file type of %q changed from %#o to %#o while inode key (%+v) did not change", genericDebugPathname(d.inode.fs, d), want, got, d.inode.inoKey))
726
+
ctx.Warningf("file type of %q changed from %#o to %#o while inode key (%+v) did not change", genericDebugPathname(d.inode.fs, d), want, got, d.inode.inoKey)
727
+
d.inode.metadataMu.Unlock()
728
+
lastUnlockedDentry=i
729
+
d.invalidate(ctx, vfsObj, ds)
730
+
returnnil
729
731
}
730
732
}
731
733
732
734
// The file at this path hasn't changed. Just update cached metadata.
733
735
d.inode.impl.(*lisafsInode).updateMetadataFromStatxLocked(&stats[i]) // +checklocksforce: see above.
0 commit comments