• Coly Li's avatar
    bcache: increase super block version for cache device and backing device · d721a43f
    Coly Li authored
    The new added super block version BCACHE_SB_VERSION_BDEV_WITH_FEATURES
    (5) BCACHE_SB_VERSION_CDEV_WITH_FEATURES value (6), is for the feature
    set bits.
    
    Devices have super block version equal to the new version will have
    three new members for feature set bits in the on-disk super block,
            __le64                  feature_compat;
            __le64                  feature_incompat;
            __le64                  feature_ro_compat;
    
    They are used for further new features which may introduce on-disk
    format change, and avoid unncessary super block version increase.
    
    The very basic features handling code skeleton is also initialized in
    this patch.
    Signed-off-by: default avatarColy Li <colyli@suse.de>
    Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    d721a43f
features.h 2.13 KB