Your idea should work on deletion, when the inode were
about to be destroyed, but ...
> It would only call chown/chgrp on the files *inside* the undelete dir,
> and user,group,etc would have to be accounted for in another way. Am I
> going in the wrong direction?
... of course, there still is the problem of hard links.
If you unlink a file, it might still be around under
another name.
Consider:
$ ln bigfile newbigfile
$ rm bigfile
Under your scheme, maybe bigfile would be moved to the
undeletion area ... fine.
The problem would start if the ownership was changed
to root, because then 'newbigfile' would also be owned
by root and you could no longer access your file ;)
regards,
Rik
-- Will hack the VM for food.http://www.surriel.com/ http://distro.conectiva.com/
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/