resize: add function expand_partition_content

Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>