add left part of lvm.c in 5