Opentopia Directory Encyclopedia Tools

Fork (filesystem)

Encyclopedia : F : FO : FOR : Fork (filesystem)



 

In computing, a fork is additional data associated with a file system object. Filesystem forks are traditionally associated with Apple's Hierarchical File System (HFS), however they are also available in Microsoft's NTFS filesystem, where they are known as alternate data streams. Other filesystems such as Novell's Novell Storage Services (NSS) and Netware File System (NWFS), Solaris's UFS where they are known as "extend attributes", Solaris ZFS where they are also known as "extended attributes", and Veritas Software's Veritas File System (VxFS) also support filesystem forks. UDF, being a universal file system for general data exchange, supports forks as well.

HFS was designed to use resource forks to store metadata about a file that would be used by the graphical user interface (GUI) of the Apple Macintosh, such as a file icon or an image preview. However the feature was not limited to GUI data, so additional uses were found, such as splitting a word processing document into content and presentation, then storing the presentation information in the resource fork. One particular non-obvious use is that prior to Mac OS X, PostScript Type 1 fonts have traditionally been stored entirely in the resource fork, the data fork being empty.

Starting in 1985, NWFS and its successor NSS were designed from the ground up to use a variety of methods to store a file's metadata. Some metadata resides in Novell Directory Services (NDS), some is stored in the directory structure on the disk, and some is stored in, as Novell terms it, 'multiple data streams' with the file itself. Multiple data streams also allow Macintosh clients to attach to and use Netware servers.

In 1989, Microsoft and IBM released version 1.2 of their OS/2 operating system which included a new filesystem called HPFS. This filesystem included an implementation of forks referred to as extended attributes, allowing the addition of ASCII or binary data to a file. In 1993, Microsoft released the first version of the Windows NT operating system which introduced the NTFS filesystem. This filesysteam includes support for forks as alternate data streams for compatibility with pre-existing operating systems that support forks. With Windows 2000, Microsoft started using alternate data streams in NTFS to store things such as author or title file attributes and document thumbnail images. With Service Pack 2 for Windows XP, Microsoft introduced the Attachment Execution Service that stores details on the origin of downloaded files in alternate data streams attached to files, in an effort to protect users from downloaded files that may present a risk.

Possible security and data loss risks with forks

When a filesystem supports different forks, the applications should be aware of them, or security risks can arise.

If the different system utilities (disk explorer, antivirus software, archivers, and so on), are not aware of the different forks, the following problems can arise:

Currently all versions of Windows suffer from all of these problems. Until Mac OS X v10.4, users using the Unix command line utilities included with Mac OS X would risk data loss, as the utilities were not updated to handle forks until v10.4.

External links

Tools

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.


Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: