• Brian Behlendorf's avatar
    Update cache file when setting compatibility property · aee26af2
    Brian Behlendorf authored
    
    
    Unlike most other properties the 'compatibility' property is stored
    in the pool config object and not the DMU_OT_POOL_PROPS object.
    
    This had the advantage that the compatibility information is available
    without needing to fully import the pool (it can be read with zdb).
    However, this means we need to make sure to update both the copy of
    the config in the MOS and the cache file.  This wasn't being done.
    
    This commit adds a call to spa_async_request() to ensure the copy of
    the config in the cache file gets updated as well as the one stored
    in the pool.  This same change is made for the 'comment' property
    which suffers from the same inconsistency.
    Reviewed-by: default avatarSean Eric Fagan <sef@ixsystems.com>
    Reviewed-by: default avatarColm Buckley <colm@tuatha.org>
    Signed-off-by: default avatarBrian Behlendorf <behlendorf1@llnl.gov>
    Closes #12261 
    Closes #12276 
    aee26af2
common.run 38.8 KB