MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / test_btrfs

Function test_btrfs

src/btrfs.c:115–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115static int test_btrfs(const struct btrfs_super_block *sb)
116{
117 if(memcmp(&sb->magic, BTRFS_MAGIC, 8)!=0)
118 return 1;
119 if(le32(sb->dev_item.sector_size)==0)
120 return 1;
121 return 0;
122}

Callers 2

check_btrfsFunction · 0.85
recover_btrfsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected