developer tip

폴더가 아닌 태그를 사용하는 파일 시스템?

optionbox 2020. 7. 29. 08:07
반응형

폴더가 아닌 태그를 사용하는 파일 시스템?


내 파일은 엉망입니다. 재귀 클래스 분류 의미를 설명하는 이름을 가진 폴더로 파일을 구성하려고하지만 나중에 파일을 찾을 때 파일을 다시 찾는 데 어려움이 있습니다 (하나의 파일은 많은 폴더에 존재합니다).

폴더를 사용하는 대신 태그 조합으로 파일을 찾을 수있는 파일 시스템은 무엇입니까?

그러한 파일 시스템이 있다면 OS가 어떻게 대처할 것인지 잘 모르겠으며 폴더 시스템에 크게 의존합니다. 나는 tag2find보았습니다 . 그것은 지금 물건을 찾는 데 내 문제를 해결하지만 파일 시스템이 아닌 응용 프로그램입니다.


당신이 요구하는 것은 데이터베이스 파일 시스템 입니다. DBFS 라는 Linux에 대한 하나의 실험 구현을 알고 있습니다. Microsoft는 WinFS (Windows Future Storage)를 개발하기 시작했습니다. Vista와 함께 제공 될 예정 이었지만 기술적 인 문제로 인해 프로젝트가 지연되고 마침내 취소되었습니다. NTFS 는 파일의 메타 데이터를 저장할 수 있지만 완전한 기능을 갖춘 데이터베이스 파일 시스템을 확장 할 수는 없습니다.

이러한 파일 시스템을 운영 체제에 통합하는 것은 운영 체제의 핵심에 그렇게 복잡해서는 안됩니다. 단순히 계층 적 모델을 고수 할 수 있습니다. 복잡한 부분은 파일 시스템의 구조와 기능을 사용자에게 공개해야하는 (그래픽) 셸입니다.


다음은 Google을 사용하여 찾은 파일 시스템입니다.

TagFS-Stephan Bloehdorn 및 Max Völkel의 "계층 파일 시스템에 대한 태그 시맨틱"논문 http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.60.4187

dhtfs- "파일과 연관된 태그를 기반으로 동적 디렉토리 계층을 제공하는 태깅 기반 파일 시스템"사용 가능한 구현, 마지막 릴리스 2007 http://code.google.com/p/dhtfs/

Tagsistant-활발한 개발중인 "Linux 및 BSD 용 추론 의미 론적 파일 시스템"프로젝트 http://www.tagsistant.net/

Leaftag-다른 구현, "리눅스 데스크탑 태깅"마지막 릴리스 2006 http://www.chipx86.com/w/index.php/Leaftag

OS와의 통합에서 나는 그렇게 어렵다고 생각하지 않습니다. OS는 파일 시스템 계층 구조에 크게 의존하지만 태그 기반 파일 시스템은 디렉토리 구조를 모방 할 수 있습니다. 예를 들어 태그 기반 파일 시스템에서 경로 /etc/init.d는 정확히 두 개의 태그 (예 : 'etc'및 'init.d')로 태그가 지정된 모든 파일을 제공합니다. 이 두 태그뿐만 아니라 다른 태그로 태그가 지정된 파일의 경우 추가 태그는 /etc/init.d 내에 디렉토리로 나타날 수 있습니다. 'etc', 'init.d'& 'asdf'라는 세 개의 태그가있는 a.txt 파일이 있으면 'asdf'가 /etc/init.d 내에 디렉토리로 표시되고 a.txt의 전체 경로는 /가됩니다. etc / init.d / asdf / a.txt.


저는 Linux 프로그램 TMSU 의 작성자로서 파일에 태그를 지정하고 태그 기반 파일 시스템에서 볼 수 있습니다.

다음은 사용법 예입니다.

$ tmsu tag track.mp3 music genre=indie-rock good year=1999
$ tmsu tag melody.mp3 music
$ tmsu tag DC123.jpg photo landscape country=italy year=2014
$ tmsu files music year = 1999
./song.mp3

그리고 가상 파일 시스템 :

$ mkdir mp
$ tmsu mount mp
$ ls mp
query  tags
$ ls tags
country  genre  good  landscape  photo  music  year
$ ls tags/music
genre  good  track.1.mp3  melody.2.mp3 year

파일 이름의 숫자는 파일 이름을 고유하게 유지하기 위해 존재하는 식별자입니다. 이것들은 파일의 원래 위치로 돌아가는 심볼릭 링크입니다.

$ ls tags/music/good  # you can drill down
genre  track.1.mp3  year
$ ls "query/music and good"  # this directory gets automatically created
track.1.mp3

아직 활발한 개발 중입니다. 작성 시점 (2014 년 10 월) 0.4.2를 사용할 수 있지만 곧 0.5.0을 발표 할 예정입니다.


Vista 및 Windows 7은 파일 태그 지정을 지원합니다. 이 기사를보십시오


파일 시스템 파일 태그에 대해 동일한 질문을 하면서이 질문을 보았습니다. 내가 다음 Windows XP에 대한이 응용 프로그램을 통해 온 / 비스타라는 TaggedFrog을 트릭을 할. 아직 시도하지 않았지만 유망한 것으로 보입니다.

그래도 1000 개의 파일을 기대하지는 않습니다! 어쨌든 어느 시점에서 Win7로 업그레이드하고 기본 태그 지정을 시도 할 수 있습니다.


tagfs 사용해보십시오 . 퓨즈 기반 사용자 공간 파일 시스템입니다. 태그 필터보기에서 소스 디렉토리의 태그 지정된 디렉토리를 표시 할 수 있습니다.

예를 들어 'india'와 'photos'로 태그 된 'vacation india'디렉토리와 'pain'과 'photos'로 태그 된 'vacation spain'디렉토리가 있다고 가정 해 봅시다. '/ my_mountpoint / photos'경로를 입력하여 모든 사진을 필터링 할 수 있습니다.

디렉토리는 간단한 텍스트 파일을 통해 태그가 지정됩니다. 디렉토리에 '.tag'라는 파일에는 태그가 포함되어 있습니다. 여러 태그는 개행으로 구분됩니다.


그들을 시도하거나 야생에서 그들을 보지 않고 예를 들어


There is TagsForAll for windows. It is a file manager based on tags. Tags can have hierarchical structure. User interface is very simple but nice. Free version fully functional and save tags in database, Pro version save tags also within NTFS stream to a file.


I found the UI design of Elyse is wonderful. But it's more a static system that it can't watch folder and tag new file with a default tag automatically.


I have been thinking also about a tag based file system a long time. Has anybody thought about more radical and simple approach? To forget folders completely (simulated folders only for compatibility reasons for programms), and put all tags directly into the file name.

(Classic File Name)_Tag1_Tag2_Tag3_.... .(File extension)

Mydocument_tag-based-file-system_tags_file-system_stackoverflow_folder_file-name_tagfs.txt

I always like to put as much information as possible in the file name. You can find everything in millions of files on every possible OS.

The only limit is the different file name length in evey OS, and it gets messy with current systems.

An advanced OS with could access a file like this: Mydocument.txt And the Tags can be edited in the lowest level of the OS, like changing the Filename today. If there is suddenly another Mydocument.txt it is auto renamed to Mydocument(2).txt and so on.

I know this idea is not without additional problems, not even mentioned here.....

But the Idea is about to store tags in the most basic low level possibility, that can be accessed from ALL past and future file systems. And what all FS have in common is the file name.


I don't think had (has) tagging support per se but BFS supports some pretty cool metadata functionality.

참고URL : https://stackoverflow.com/questions/3263036/file-system-that-uses-tags-rather-than-folders

반응형