LWN.net Logo

Implementation detail

Implementation detail

Posted Oct 16, 2012 21:21 UTC (Tue) by mathstuf (subscriber, #69389)
In reply to: Implementation detail by renox
Parent article: Plasma Active Three released

The problem is that now `mv dir/ foo` is slow if dir/ is large. Every moved file must be checked against the database for multiple links and the new path updated. And we need foo to be fully resolved from the root of the filesystem. Alternatively, each link could be stored in the table as a (name, dirinode) pair and the path generated from the recursion over the dirinode (the mount point that the request was based in should probably be used as the "above the root" path prefix. The functionality could probably also be worked into the locate/updatedb tools.


(Log in to post comments)

Implementation detail

Posted Oct 17, 2012 10:32 UTC (Wed) by etienne (subscriber, #25256) [Link]

> The functionality could probably also be worked into the locate/updatedb tools.

Maybe also most files in the filesystem could be tagged with the name of the rpm/deb package it comes from...

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds