SGI already had exactly such a thing in early IRIX 5's. It was used
by the "live filesystem" defragmentor. As far as I remember, I
learned about it from finding about an syssgi(?) system call parameter
which allowed a process to lock an inode. I didn't dive into this
(not having the kernel sources :-) but it sounded like being able to
lock the inode (and maybe allocate a block from user space? Will try
to check it next time) was enough to let a user program shuffle blocks
around safely.
Cheers,
--Amos
--Amos Shapira | "Of course Australia was marked for
133 Shlomo Ben-Yosef st. | glory, for its people had been chosen
Jerusalem 93 805 | by the finest judges in England."
ISRAEL amos@gezernet.co.il | -- Anonymous
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu