With a GUI, that is what right clicking then clicking eject or safely remove etc *should do*.1. Check for open files. No open files, skip to 5.2. Check to see if the programs with the open file handle *are actually running*.3a. If programs with 'open' files are NOT actually running, CLOSE THE @#%@#% FILES and flush all pending writes to the storage media.3b. If there really are programs running with files open on the storage to be ejected, bring up a list of the open files and the programs that have them open, so the user may quit the programs or close the files.4. Flush all pending writes. 5. "You may now remove the device." What actually happens (For Windows, this began in 95 OSR2 and 10 still does it.) 1. Check for open files. No open files, skip to 4. 2. If there are open files, *do not tell the user what the OS thinks they are, or what programs it incorrectly thinks are running and have 'open' files*.3. "I'm sorry, Dave, I'm afraid I can't do that."3a. Repeat 3 until the user says "Screw this! Stupid operating system. THERE ARE NO OPEN FILES ON IT!" and yanks the USB stick out. 4. "You may now remove the device." How hard is it to write the code for an operating system to do the logical steps to properly respond to a user request to disconnect a storage device while ensuring that no data loss will happen due to pulling the plug while an open file has unwritten data pending?
From: Jim Craig <jimcraig5...@windstream.net> To: Enhanced Machine Controller (EMC) <emc-users@lists.sourceforge.net> Sent: Thursday, May 12, 2016 9:25 AM Subject: Re: [Emc-users] USB flash drive issue Peter, I could give that a shot. I was not using a terminal to eject the media I was simply right clicking on the 8GB filesys icon on the desktop and clicking the eject media option. There is no unmount option in the right click context menu. I was under the assumption that the eject medial context menu option did the unmount command for that mounted drive. I will give it a try in a terminal to see. ------------------------------------------------------------------------------ Mobile security can be enabling, not merely restricting. Employees who bring their own devices (BYOD) to work are irked by the imposition of MDM restrictions. Mobile Device Manager Plus allows you to control only the apps on BYO-devices by containerizing them, leaving personal data untouched! https://ad.doubleclick.net/ddm/clk/304595813;131938128;j _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users