large & fragmented TUX requests

Peter J. Braam (braam@clusterfilesystem.com)
Thu, 2 Aug 2001 16:12:14 -0600


Hi,

I am working on a protocol handler for InterMezzo. This is a kernel
level protocol handler than can unpack DAFS style packets and service
the requests.

I have two basic questions about the code (looking at 2.4.6-3.1)

1) input.c

If a request arrives in multiple pieces, req->proto->parse_message
returns 0 and read_request is called multiple times. Why is read
request not overwriting data that was already received?

2) large requests

Some of the RPC's I want to handle are for receiving file data. Would
it make sense when it is known that a large page aligned buffer with
file data is coming, to simply allocate buffers of the right size (say
up to 64K max) and point req->req_headers at it?

In that way I can read the chunk in and later map the pages into a
file to get it to disk.

There is no standard "recv_file" (ala sendfile) api, right?

Thanks for pointers and thoughts.

- Peter -
-
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/