\# Text automatically generated by txt2man .TH cache_metadata_size 8 "Device Mapper Tools" "System Manager's Manual" .SH NAME \fBcache_metadata_size \fP- Estimate the size of the metadata device needed for a given configuration. \fB .SH SYNOPSIS .nf .fam C \fBcache_metadata_size\fP [\fIoptions\fP] .fam T .fi .SH DESCRIPTION .TP .B \fBcache_metadata_size\fP estimates the size of the metadata. Either \fB--nr-blocks\fP, or \fB--block-size\fP and \fB--device-size\fP must be specified. .SH OPTIONS .TP .B \fB--nr-blocks\fP {natural} Specify the number of cache blocks. .TP .B \fB--block-size\fP {sectors} Specify the size of each cache block in 512 byte sectors. .TP .B \fB--device-size\fP {sectors} Specify total size of the fast device used in the cache. In 512 byte sectors. .TP .B \fB--max-hint-width\fP {nr bytes} Specify hint width. .PP .nf .fam C Cache policies use a per block 'hint' to record extra info (for instance hit counts). At the moment all policies use a 4 byte hint width. If you want to use a different hint width specify it with this switch. .fam T .fi .SH EXAMPLE $ \fBcache_metadata_size\fP \fB--nr-blocks\fP 10240 .PP $ \fBcache_metadata_size\fP \fB--block-size\fP 128 \fB--device-size\fP 1024000 .SH SEE ALSO \fBcache_dump\fP(8), \fBcache_repair\fP(8), \fBcache_restore\fP(8) .SH AUTHOR Joe Thornber , Heinz Mauelshagen