add more part of lvm.c in 5