Fixed cache size decoding read from a label.
PR: kern/144732 Submitted by: Eugene Grosbein MFC after: 3 days
This commit is contained in:
parent
0356e5fcb5
commit
cf1457e4fd
2
sys/geom/cache/g_cache.h
vendored
2
sys/geom/cache/g_cache.h
vendored
@ -139,7 +139,7 @@ cache_metadata_decode(const u_char *data, struct g_cache_metadata *md)
|
||||
md->md_version = le32dec(data + 16);
|
||||
bcopy(data + 20, md->md_name, sizeof(md->md_name));
|
||||
md->md_bsize = le32dec(data + 36);
|
||||
md->md_size = le16dec(data + 40);
|
||||
md->md_size = le32dec(data + 40);
|
||||
md->md_provsize = le64dec(data + 44);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user