Re: [patch 6/12] hold atomic kmaps across generic_file_read

Jeff Garzik
2002-08-12T14:07:18Z

Albert D. Cahalan wrote:
> Jeff Garzik writes:
>>I sure would like an O_STREAMING flag, though... let a user app hint to
>>the system that the pages it is reading or writing are perhaps less
>>likely to be reused, or access randomly.... A copy-file syscall would
>>be nice, too, but that's just laziness talking....
>
>
> You have a laptop computer with a USB-connected Ethernet.
> You mount a NetApp or similar box via the SMB/CIFS protocol.
> You see a multi-gigabyte file. You make a copy... ouch!!!
> For each gigabyte, you hog the network for an hour.

> Now let's say this file is for a MacOS app. You have to
> preserve the creator, file type, resource fork, etc.

/bin/cp has these problems regardless of whether or not it uses a
copy-file syscall.

Jeff