Re: shell wrapper to set ioctls before & after a command execution?

2013-06-06 Thread Giacomo Mulas
On Thu, 6 Jun 2013, Robert Goley wrote: That sounds like a good idea but you would need to blacklist the PIDs of the commands called from your backup script as well.  Most likely, they are the processes opening all of the files to start with.  You might want to look at using a python script for

Re: shell wrapper to set ioctls before & after a command execution?

2013-06-06 Thread Robert Goley
Wasn't sure it had been thought out. Thought you were doing a single backup script expecting blacklisting the single PID to work. The method you have should work great. On Thu, Jun 6, 2013 at 12:55 PM, Giacomo Mulas wrote: > On Thu, 6 Jun 2013, Robert Goley wrote: > > That sounds like a good

Re: shell wrapper to set ioctls before & after a command execution?

2013-06-06 Thread Robert Goley
That sounds like a good idea but you would need to blacklist the PIDs of the commands called from your backup script as well. Most likely, they are the processes opening all of the files to start with. You might want to look at using a python script for your backup script so you can more easily c

shell wrapper to set ioctls before & after a command execution?

2013-06-06 Thread Giacomo Mulas
Hello everybody. I am looking for hints to create a wrapper for an arbitrary command, so that I can set a ioctl using its PID and reset the ioctl after the command is finished. The problem I need to solve is the following: I have an hybrid spinning+ssd drive on my laptop, and I set up flashcache