add device_open/close in mkfs