On 07/14/2017 02:07 PM, Brian Foster wrote: > On Fri, Jul 14, 2017 at 01:46:27PM -0500, Eric Sandeen wrote: >> On 07/14/2017 12:44 PM, Allison Henderson wrote: >>> On 7/14/2017 7:04 AM, Eric Sandeen wrote: >>>> >>>> >>>> On 07/14/2017 03:50 AM, Carlos Maiolino wrote: >>>>> Hi, >>>>> >>>>> On Thu, Jul 13, 2017 at 04:25:25PM -0700, Allison Henderson wrote: >>>>>> Hi all, >>>>>> >>>>>> I've been doing some digging on adding parent pointers to xfs and wanted to >>>>>> send a note to folks here to get peoples opinions on it. >>>>> >>>>> Are you talking about parent pointers in the BTrees? >>>>> >>>> >>>> No, see [RFC 00/17] RFC parent inode pointers. for example, from long >>>> ago. >>>> >>>> "Parent inode support allow XFS to quickly derive a file name and >>>> path from the mount point. This can aid in directory/path policies >>>> and can help relocate items during filesystem shrink." >>>> >>>> It has a long and ... difficult history. >>>> >>>> -Eric >>> Right, so to expand on Eric's answer, it looks like Dave and Brian had been working on some improvements based on that set, but it's not quite finished yet. The idea is that we add an extended attribute to keep track of the parents inode and generation, and also the child entries offset, and filename. So in this solution the EA is name={parent inode #, parent inode generation, dirent offset}, value={dirent filename}. >>> >>> My goal at the moment is just to get it compiling again and finish out some of the sub routines that maintain it. It looks like it hasn't had much attention in a while, so I wanted to let people know the direction I'm planning to move in before I get too far in. >> >> If you're forward-porting that 17-patch set from Mark, I'd suggest first reading Dave's >> response to it - IIRC it amounted to a firm NAK. it also highlights the complexity >> of this undertaking, and may explain why nobody has gotten it done (yet) :) >> > > The patches that came from me (to Allison) were last sent to me directly > from Dave. Oh, ok. I didn't know we were talking about off-list patches, sorry if I missed that. I thought Allison was looking at the 17-patch series on the list, and wanted to make sure this wouldn't be a false start. :) Thanks, -Eric -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html