util/disk_cache: scale cache according to filesystem size
authorAlan Swanson <reiver@improbability.net>
Mon, 6 Mar 2017 16:17:32 +0000 (16:17 +0000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 15 Mar 2017 00:15:11 +0000 (11:15 +1100)
commitb7e03d87e4b8a89e778c674e0dc0736f189b5d4f
tree50f64bf74c6940d26c37e1aed29faaba87ad2690
parentf1e96714424f516ec3ee7a341fb10068340b0411
util/disk_cache: scale cache according to filesystem size

Select higher of current 1G default or 10% of filesystem where
cache is located.

Acked-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Grazvydas Ignotas <notasas@gmail.com>
src/util/disk_cache.c