chore(cgpt): refactor IsWholeDisk

make IsWholeDisk available as a library function. Move it into common.
3 files changed