modify diskmanager use enum about rstype.