modify func: partition size when create/edit partition