We wrote a function, called ext2_cp_undel
that does precisely this. The function accepts the name of the file,
the length of the file's name, and the inode of the file, and the inode
of the file's parent directory. In ext2_cp_undel, among other things,
we add the parent directory's directory entry to the undelete inode and
then remove it from the parent directory.
