On Tue, 6 Jan 2009 23:16:14 +0530 "Rohit Sharma" <imreckless@xxxxxxxxx> wrote: > On Tue, Jan 6, 2009 at 11:09 PM, Manish Katiyar <mkatiyar@xxxxxxxxx> > wrote: > > Apart from performance, is there anything else you are worried > > about ? > > Performance is only a bottleneck, > this can be done in user land > but kernel space solution will be more efficient. Hardly more efficient. Your main bottleneck will be IO from/to the device. If you are worried about copying between kernel and userland, you could use the tee(2) and splice(2) system calls. They are relatively new, so your system might not yet have manual pages for them. In that case, see http://linux.die.net/man/2/tee and http://linux.die.net/man/2/splice . Apropos efficiency: I think you could have copied/rsynced your filesystem to a new disk in the time you have been trying to implement a kernel module... ;-) Erik -- Erik Mouw -- mouw@xxxxxxxxxxxx GPG key fingerprint: D6AC 7F15 A26E C5C4 62E0 4A58 FCF9 551C 9B48 B68D
Attachment:
signature.asc
Description: PGP signature