Skip to content

Commit

Permalink
Enforce equality of metadata_csum and replica_metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
luzh committed Jul 8, 2017
1 parent f71e11a commit a5f89a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fs/nova/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,13 @@ static int nova_fill_super(struct super_block *sb, void *data, int silent)
if (nova_get_nvmm_info(sb, sbi))
goto out;

if (metadata_csum != replica_metadata) {
nova_warn("metadata_csum should not be used without "
"replica_metadata, setting both to 0\n");
metadata_csum = 0;
replica_metadata = 0;
}

nova_dbg("measure timing %d, replica metadata %d, "
"metadata checksum %d, inplace metadata update %d, "
"inplace update %d, wprotect %d, mmap Cow %d, "
Expand Down

0 comments on commit a5f89a2

Please sign in to comment.