• Boaz Harrosh's avatar
    exofs: Define on-disk per-inode optional layout attribute · d9c740d2
    Boaz Harrosh authored
    * Layouts describe the way a file is spread on multiple devices.
      The layout information is stored in the objects attribute introduced
      in this patch.
    
    * There can be multiple generating function for the layout.
      Currently defined:
        - No attribute present - use below moving-window on global
          device table, all devices.
          (This is the only one currently used in exofs)
        - an obj_id generated moving window - the obj_id is a randomizing
          factor in the otherwise global map layout.
        - An explicit layout stored, including a data_map and a device
          index list.
        - More might be defined in future ...
    
    * There are two attributes defined of the same structure:
      A-data-files-layout - This layout is used by data-files. If present
                            at a directory, all files of that directory will
                            be created with this layout.
      A-meta-data-layout - This layout is used by a directory and other
             ...
    d9c740d2
common.h 8.16 KB