Portál AbcLinuxu, 9. listopadu 2025 11:41
bool CUDevProvider::Eject(const std::string& mountpath)
{
// just go ahead and try to umount the disk
// if it does umount, life is good, if not, no loss.
std::string cmd = "umount \"" + mountpath + "\"";
int status = system(cmd.c_str());
if (status == 0)
return true;
return false;
}
Vcetne vysvetleni ;) ..
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.