]> git.baikalelectronics.ru Git - kernel.git/commit
md: add sysfs entries for PPL
authorArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Thu, 9 Mar 2017 09:00:00 +0000 (10:00 +0100)
committerShaohua Li <shli@fb.com>
Thu, 16 Mar 2017 23:55:55 +0000 (16:55 -0700)
commitc56139d9d7dd59d60789dcc904d5b7587b10b69e
treec24892772b01314b2f060be64e3c7ae1f36e6298
parent22281d8031b070af44b18cc1fdc36bb264fc3209
md: add sysfs entries for PPL

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: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Documentation/admin-guide/md.rst
drivers/md/md.c