[agent] move agent mount disk function into platform related class