[cap-talk] plash (or bash) and undo/redo
John Carlson
john.carlson3 at sbcglobal.net
Thu Apr 9 21:20:40 EDT 2009
Since plash replaces glibc with it's own version of glibc to run
programs, wouldn't it be possible to add undo, redo, commit, and
rollback commands to plash? I know it would be hard (but not
impossible) to undo/redo networking commands, but it seems like you
could undo/redo a lot of file system stuff. For writes, you would do
a read first, and store the underlying data being written in an undo
object. For reads, you could reset the file pointer backwards. You'd
have to figure out the opposite of the fcntl and ioctl stuff. And
opens might have to store file system contents for undo as well.
tells would keep where they tell'ed from.
Is this an impossible task, or can we take a hint from the application
side that such things are possible, and should be attempted?
I understand you would normally have to do stuff at the operating
system level, but apparently this has been vetoed, so I'm looking for
a modified glibc (or libc).
John
More information about the cap-talk
mailing list