Managing File Names with Metadata

Managing File Names with Metadata

A File By Any Other Name: Managing File Names with Metadata Name1 Name2 Name3 Name4 Affiliation1 Affiliation2 Affiliation3 Email1 Email2 Email3/4 Abstract it or recognize it when we look at it later. In order to help File names are an ancient abstraction, a string of characters users to find and remember files, they often contain a bounty to uniquely identify a file and help users remember the con- of useful metadata about the file. tents of a file when they look for it later. However, they are However current approaches to file names have flaws: not an ideal solution for these tasks. Names often contain • They are unstructured semantic metadata which is opaque useful semantic metadata providedby the user, but this meta- to the system data is opaque to the rest of the system. The formatting of • Formatting is up to the user, and is error prone and incon- the file name is up to the user, and as a result, metadata in sistent, making it hard to find files later file names is often error-prone, inconsistently formatted, and • hard to search for later. File names need to be more mean- Changing a file name destroys information ingful and reliable, while simplifying application design and Consider the following file name drawn from the experi- encouraging users and applications to provide more meta- ments for this paper: data for search. createfiles_HDD_truenames_100000files_1threads. We describe our prototype file system, TrueNames, a data POSIX compliant file system which demonstrates an al- Looked at in one light, this is a long, arbitrary, error prone ternate approach to naming and metadata, by providing string of characters. In another light, it is a rich source of metadata-aware naming. Our approach is intended to be semantic metadata about the contents of the file that could complementary to non-hierarchical systems, while remain- be used for search and analysis. The challenge is to extract ing effective within a hierarchical context. TrueNames sep- that information. arates the task of uniquely identifying a file from the task of To resolve these flaws, we propose to disassociate the two helping the user remember its contents. It captures metadata functions of names, separating the task of uniquely identi- in a more useable format, and uses it to generate file names fying a file for applications from helping users to identify which are correct, regenerable, and structured by design. a file. As a proof of concept, we describe our new pro- TrueNames simplifies application design by providinga con- totype file system, TrueNames, a FUSE-based file system sistent interface for metadata aware naming, incurs minimal which provides a durable unique identifier for a file which overhead of approximately 15% under realistic workloads, can be used by applications, captures rich metadata in a and can simplify a wide variety of data management tasks structured format, and uses it to dynamically generate user- for both applications and users. friendly file names using templates. These file names have many advantagesover conventionalfile names. They are cor- 1. Introduction rect, because they are continuously synchronized with the File names have existed since the earliest file systems, and file’s metadata. They are regenerable, allowing us to com- serve two important functions. First, they serve to uniquely press and recreate names at will without loss of information. identify a file over time. Second, they serve to jog our mem- File names can be disambiguated using all available meta- ory, describing the contents of a file, and helping us to find data, which reduces accidental data over-writes. The meta- data which we capture is structured, making it readily avail- able for search and data management.We describe these new file names as metadata aware names. TrueNames is designed to demonstrate the feasibility of several goals. Metadata aware file naming can make naming more reliable and less error prone. It can also prevent ac- cidental overwriting of existing files by detecting collisions between names, and adding additional metadata to disam- [Copyright notice will appear here once ’preprint’ option is removed.] biguate. Many applications already offer some form of auto- 1 2013/10/11 matic file naming, and by making that functionality part of gets to change the code which generates file names for ex- the file system, we can speed application development, and perimental results, they may overwrite existing results files, prevent code duplication and the resulting proliferation of wasting hours or days of compute time. bugs. Being able to regenerate file names allows us to port TrueNames simplifies creating file names and searching files between file systems with differing constraints, gen- for metadata. Rather than programmatically generating file erating a meaningful file name in each location, and then names, experiments can simply add metadata for all the ex- reconstructing the original file name whenever needed. We periment parameters. File names can be generated using a can easily move metadata between file names and directory simple template, and then the template can be expanded by names, or store it for later use. And finally, by gently en- the user as new parameters become relevant, which results couraging users and applications to share more metadata in in both old and new files using the new template. File name a structured fashion, we can make metadata more readily collision detection can help prevent overwriting by disam- available to improve the quality of file system search or sup- biguating files on the fly. The results files are easily search- port a non-hierarchical file system. able by metadata field, regardless of the order fields occur While TrueNames is a user space prototype file system, in the file name, or what characters occur in the field. Using it demonstrates the feasibility of doing metadata aware nam- structured data allows both exact match and range queries, ing. It offers extensive new functionality,and incurs very low and file names are an accurate reflection of their contents. overheads,less than 15% on realistic workloads. Much of the The authors used TrueNames to manage experimental re- additional cost is incurred by added kernel crossings, sug- sults for this paper, and found it to be extremely helpful and gesting that an in-kernel implementation would have negli- simple to use, allowing them to easily manage multiple ex- gible performance impact, while significantly improving file periments and parameters, generate accurate and meaningful system search and data management. file names, and then search their results later. 2.2 Managing research papers 2. UseCases Applications such as Mendeley [6] are designed to manage Metadata aware naming can be used as a broadly applicable a collection of research papers, making them easy to search. framework for solving cross-cutting concerns. It can be used Mendeley indexes all of the metadata fields of each publica- by applications to simplify common tasks, and by scripts and tion, does full text indexing, and can manage directory struc- end-users to better manage files. It can even help to prevent tures and file names. Mendeley does not use a fixed format data loss caused by overwrites, and allow multiple applica- for file names. Rather, they allow the user to pick the meta- tions to cooperatively name files. We describe a variety of data fields and the orderin which they should be used to gen- use cases for TrueNames, and explain how it can benefit erate a file name, much like TrueNames does. Applications users and applications in each case. such as Mendeley can work symbiotically with TrueNames, serving as an interface for extracting metadata and helping 2.1 Managing experimental data the user generate templates, while allowing TrueNames to One of the commonproblemsa scientist faces is that of man- do the work of keeping file names up to date. aging experimental results. A scientist might run a series of experiments, varying some parameters while holding oth- 2.3 Managing a music collection ers constant, and outputting the results to a file, then decide Most modern MP3 players, in addition to playing music, also based on the results to vary other parameters. This is com- perform metadata and file management. They can down- monly managed by creating file names programmatically. load new music, organize music into folders, and assign However, this approach has some drawbacks. For instance, names to music based on its metadata (stored in ID3 tags.) if the user wants to search the results by parameter, they will For instance, iTunes will place MP3s into folders based on need to use string matching or a regular expression, which artist and album, and then generate a file name based on relies on consistent formatting, such as using the same field a fixed template using the disc number, track number, and separator and the same field order. Likewise, a metadata field song title. However, this means that music can only be man- which contains the same character as the chosen field sepa- aged through the application. New music downloaded from rator (such as an underscore in a library name) can throw outside the application is unknown, and changes to mu- a regular expression off. Finally, common queries such as sic’s metadata are not reflected in the file name unless done range searches require complex regular expressions to per- through the application. Utilities such as MusicBrainz Picard form. [7] can repair missing metadata and names, but require the Another common problem occurs when rerunning exper- user to recreate their iTunes database to reimport the new file iments while setting additional parameters. The user also names. needs to remember to change the file name output to reflect TrueNames, like iTunes, can manage file names based on the new parameters, and older file names will not have the metadata, using whatever fields are desired.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    12 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us