modify the implementation of umount device