Linked by Thom Holwerda on Thu 4th Nov 2010 22:40 UTC, submitted by rhyder
Linux "For a fairly scruffy looking guy, I have a surprisingly healthy approach to organising my files. However, I'm constantly pushing up against the limitations of a system that is based around directories. I'm convinced that Linux needs to make greater use of tagging, but I'm also beginning to wonder if desktop Linux could abandon the hierarchical directory structure entirely."
Thread beginning with comment 448579
To read all comments associated with this story, please click here.
Already possible with ln
by cristoper on Fri 5th Nov 2010 00:23 UTC
Member since:

One of the main benefits of tagging, that is putting the same file in more than one directory at the same time, is already possible using hardlinks.

Reply Score: 3

RE: Already possible with ln
by bogomipz on Sat 6th Nov 2010 11:03 in reply to "Already possible with ln"
bogomipz Member since:

Yes. What is lacking with hard links is the ability to find other names for the same file, without traversing the file system tree. So there is no easy way to delete something (it happens when you remove the last link to the inode), and you can't list which tags/directories a file is currently associated with.

Well, you can do it with `find`, but it is too slow to be practical. I'd say fix this problem rather than establish a new way to tag files.

Reply Parent Score: 2

cristoper Member since:

Yes. A naive solution is not difficult. You just need wrappers around ln and rm that update an index whenever a link is created or removed. And then a tool to search the index and list all of the names of a given file (like 'update' but just for hard links).

Of course ln and rm are not the only tools that can create and remove links, so a better solution would be to handle it at the system call level... or at the filesystem level, which I guess is sort of what this article is suggesting.

Reply Parent Score: 1