• Artur Paszkiewicz's avatar
    md: add sysfs entries for PPL · 664aed04
    Artur Paszkiewicz authored
    Add 'consistency_policy' attribute for array. It indicates how the array
    maintains consistency in case of unexpected shutdown.
    
    Add 'ppl_sector' and 'ppl_size' for rdev, which describe the location
    and size of the PPL space on the device. They can't be changed for
    active members if the array is started and PPL is enabled, so in the
    setter functions only basic checks are performed. More checks are done
    in ppl_validate_rdev() when starting the log.
    
    These attributes are writable to allow enabling PPL for external
    metadata arrays and (later) to enable/disable PPL for a running array.
    Signed-off-by: default avatarArtur Paszkiewicz <artur.paszkiewicz@intel.com>
    Signed-off-by: default avatarShaohua Li <shli@fb.com>
    664aed04
md.rst 27 KB