Messages in this thread | | | Date | Fri, 11 Jun 1999 10:51:49 -0700 (PDT) | From | Alex Belits <> | Subject | Re: generalizing khttpd |
| |
On Fri, 11 Jun 1999, Tigran Aivazian wrote:
> > what about sendfile() for copying ? or rename() for moving a directory > > tree ? if rename() can't do it, you're on different filesystems and that'd > > require locking both. hairy.. > > Being on different filesystems is the only situation I was talking about. > What do you mean by "hairy.." ? That it cannot be done efficiently or > what?
It can't be done in a manner, more efficient than in userland. If it's for "atomic operation" sake, you can do the same by renaming within the filesystem, then copying files ot another one, then renaming the directory there, so it appears at once. If it's to make it impossible to have any context switch until your operation finishes, it will make a very scary DoS possible.
-- Alex
---------------------------------------------------------------------- Excellent.. now give users the option to cut your hair you hippie! -- Anonymous Coward
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |