J Jes Sorensen #
Message details and related content
Artur Paszkiewicz [off-list ref] writes:
On 12/05/2016 10:50 PM, Jes Sorensen wrote:quoted
Artur Paszkiewicz [off-list ref] writes:quoted
This extends the --rwh-policy parameter to work also in Misc mode. Using it changes the currently active RWH policy in the kernel driver and updates the metadata to make this change permanent. Updating metadata is not yet implemented for super1, so this is limited to IMSM for now. Signed-off-by: Artur Paszkiewicz <redacted>Hi Artur, It looked good all the way up until 6/7, but there is a nit here:quoted
--- Manage.c | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ mdadm.c | 9 +++++++ mdadm.h | 1 + super-intel.c | 65 +++++++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 153 insertions(+), 1 deletion(-)[snip]quoted
diff --git a/super-intel.c b/super-intel.c index e524ef0..3b40429 100644 --- a/super-intel.c +++ b/super-intel.c@@ -448,6 +448,7 @@ enum imsm_update_type { update_general_migration_checkpoint, update_size_change, update_prealloc_badblocks_mem, + update_rwh_policy, }; struct imsm_update_activate_spare {@@ -540,6 +541,12 @@ struct imsm_update_prealloc_bb_mem { enum imsm_update_type type; }; +struct imsm_update_rwh_policy { + enum imsm_update_type type; + int new_policy;
Argh you're right, code obfuscation at it's finest - if this is meant to be in 5/7 do you want to respin the two? In addition why not put the info->journal_clean assignments up together with the info->rhw_policy assignments? Would make it a lot easier to read without making my mistake :) cheers, Jes