Skip to content

Commit

Permalink
Merge pull request #1079 from jiangliu/rafs-compat
Browse files Browse the repository at this point in the history
rafs: reserve bits in RafsSuperFlags for future compatible changes
  • Loading branch information
imeoer authored Feb 14, 2023
2 parents 8f28cf8 + 2605421 commit e057895
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions rafs/src/metadata/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,16 @@ bitflags! {
const COMPRESSION_ZSTD = 0x0000_0080;
/// Chunk digests are inlined in RAFS v6 data blob.
const INLINED_CHUNK_DIGEST = 0x0000_0100;

// Reserved for future compatible changes.
const PRESERVED_COMPAT_7 = 0x0100_0000;
const PRESERVED_COMPAT_6 = 0x0200_0000;
const PRESERVED_COMPAT_5 = 0x0400_0000;
const PRESERVED_COMPAT_4 = 0x0800_0000;
const PRESERVED_COMPAT_3 = 0x1000_0000;
const PRESERVED_COMPAT_2 = 0x2000_0000;
const PRESERVED_COMPAT_1 = 0x4000_0000;
const PRESERVED_COMPAT_0 = 0x8000_0000;
}
}

Expand Down

0 comments on commit e057895

Please sign in to comment.