super.c (e80927079fd97b4d5457e3af2400a0087b561564) | super.c (1dfc0686c29a9bbd3a446a29f9ccde3dec3bc75a) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * bcache setup/teardown code, and some metadata io - read a superblock and 4 * figure out what to do with it. 5 * 6 * Copyright 2010, 2011 Kent Overstreet <kent.overstreet@gmail.com> 7 * Copyright 2012 Google, Inc. 8 */ --- 214 unchanged lines hidden (view full) --- 223 case BCACHE_SB_VERSION_CDEV_WITH_FEATURES: 224 /* 225 * Feature bits are needed in read_super_common(), 226 * convert them firstly. 227 */ 228 sb->feature_compat = le64_to_cpu(s->feature_compat); 229 sb->feature_incompat = le64_to_cpu(s->feature_incompat); 230 sb->feature_ro_compat = le64_to_cpu(s->feature_ro_compat); | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * bcache setup/teardown code, and some metadata io - read a superblock and 4 * figure out what to do with it. 5 * 6 * Copyright 2010, 2011 Kent Overstreet <kent.overstreet@gmail.com> 7 * Copyright 2012 Google, Inc. 8 */ --- 214 unchanged lines hidden (view full) --- 223 case BCACHE_SB_VERSION_CDEV_WITH_FEATURES: 224 /* 225 * Feature bits are needed in read_super_common(), 226 * convert them firstly. 227 */ 228 sb->feature_compat = le64_to_cpu(s->feature_compat); 229 sb->feature_incompat = le64_to_cpu(s->feature_incompat); 230 sb->feature_ro_compat = le64_to_cpu(s->feature_ro_compat); |
231 232 /* Check incompatible features */ 233 err = "Unsupported compatible feature found"; 234 if (bch_has_unknown_compat_features(sb)) 235 goto err; 236 237 err = "Unsupported read-only compatible feature found"; 238 if (bch_has_unknown_ro_compat_features(sb)) 239 goto err; 240 241 err = "Unsupported incompatible feature found"; 242 if (bch_has_unknown_incompat_features(sb)) 243 goto err; 244 |
|
231 err = read_super_common(sb, bdev, s); 232 if (err) 233 goto err; 234 break; 235 default: 236 err = "Unsupported superblock version"; 237 goto err; 238 } --- 2637 unchanged lines hidden --- | 245 err = read_super_common(sb, bdev, s); 246 if (err) 247 goto err; 248 break; 249 default: 250 err = "Unsupported superblock version"; 251 goto err; 252 } --- 2637 unchanged lines hidden --- |