add some function to lmfs

Signed-off-by: Le Min <lemin9538@gmail.com>