[lvm2-commits] master - cache: factor getting cache mode