From: Hans-Ulrich J. <han...@t-...> - 2007-12-17 21:16:10
|
Hello, thanks for your kind evaluation of SD4L. As concerns your question, the requested feature could be added to the next version of SD4L. It might be possible but certainly would be very tricky to do this in a cron job. The difficult part would be to correctly determine the idle time of the mounted volume. Especially, when databases are involved, the idle time might even not be deduced from the timestamps of all files in the container. On the other hand, the kernel driver could start a timer which is reset to zero every time he is asked to read or write from/to the container. I don't know whether mysql holds an open connection to its files. This, however, seems not unlikely. SD4L offers the possibility to brutally unmount a container despite open files hold by some processes. The method is to kill all processes holding open files in the container. But I won't recommend this in normal situations because it exposes you to the danger of data loss. Best regards Ulrich Plutocrat wrote: > First of all, great job on Scramdisk 4 Linux. I've been using Truecrypt on Windows for several years, so when a client asked me about encryption on his Linux server, I instantly thought of Truecrypt. However there was no pre-built package for Centos/RHEL, so I spent several days struggling to get truecrypt to compile, crashing the server, recovering from kernel panics, etc. > > Then I found scramdisk 4 linux which took me approximately 20 seconds to install. Enough said. > > OK now to my question. One of the features of truecrypt that my client liked was the feature to timeout a container after a period of inactivity. I believe this also was a feature of scramdisk for windows. Is this feature likely to make it into SD4L? > > If not, is there a sneaky way I can do this with a shell script? (eg fire off a cron job once an hour which checks a value, and then sdumounts a given container or not depending on what it finds? > > Just to make things more difficult, the container in this instance is holding a mysql database, so I'm not sure if that would affect things ... does mysql hold open a connection to the database files even when the tables aren't being accessed? > > Cheers ... > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > SD4L-user mailing list > SD4...@li... > https://lists.sourceforge.net/lists/listinfo/sd4l-user > |