Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试通过 C++ 代码卸载 USB 存储设备,如下所示。
while(umount("/dev/sdc1/")!=0) { std::cout << "ERROR: " << strerror(errno) << std::endl; std::this_thread::sleep_for (std::chrono::seconds(2)); }
但是,我收到一条错误消息:参数无效。我究竟做错了什么?
提前致谢!