Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changes between Version 3 and Version 4 of FSDesign


Ignore:
Timestamp:
2009-07-22T15:40:48Z (10 years ago)
Author:
Jakub Jermář
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • FSDesign

    v3 v4  
    3939opened files, and in some special cases also VFS triplets (see below).
    4040
     41=== Path arguments ===
     42
    4143If the argument is a file path, VFS uses the ''vfs_lookup_internal()'' function to
    4244translate the path into the so called VFS triplet. A VFS triplet is an ordered
    4345triplet containing a global handle of the file system instance, a global device
    4446handle and a file index. Thus a VFS triplet uniquely identifies a file on
    45 some file system instance.
     47some file system instance. An example VFS triplet looks like this:
    4648
     49{{{
     50        (2, 1, 10)
     51}}}
     52
     53In the above example, the VFS triplet describes a file on a file system which was
     54assigned number 2 by the VFS service, located on a device, which was assigned number
     551 by the DEVMAP service, and which has a file-system dependent index number 10. The
     56last number is also known as i-node number in other operating systems.
     57
     58VFS keeps information about each referenced file in an abstraction called VFS
     59node, for which there is the ''vfs_node_t'' type. Thus, a VFS node represents
     60some file which is referenced by VFS.