On Thu, Nov 30, 2023 at 01:18:56PM -0800, Darrick J. Wong wrote: > > Maybe I'm missing something important, but I don't see why a normal > > user couldn't construct a file that looks like an XFS directory, and > > that's a perfectly fine thing to do? > > They could very well do that, and it might confuse the scanner. > However, I'd like to draw your attention to xrep_dinode_mode, which will > set the user/group to root with 0000 access mode. That at least will > keep unprivileged users from seeing the potentially weird file until the > higher level repair functions can deal with it (or the sysadmin deletes > it). Having a perfectly valid (but weird) file cause repair action just seems like a really bad idea.