> From: FUJITA Tomonori [fujita.tomonori@xxxxxxxxxxxxx]
> Sent: Thursday, January 12, 2012 2:04 AM
> + {
> + concat_buf_init(&b, &mtask->rsp_buf, &mtask->rsp_bsize);
> Can we kill rsp_buf? That is, we can simply write the response to
> *FILE?
What do you mean? To redirect the FILE* directly to the socket, somehow?
My implementation separated concat_buf and its use, so that it
is employed for response in tgtd and for request in tgtadm.
It leaves the resulting string in the user-supplied buffer pointer,
and the buffer can be handled and used as required by a specific
user context. Do you see anything wrong with this approach?
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux SCSI]
[Linux RAID]
[Linux Clusters]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Linux Kernel]
[XFree86]
[Video Devices]