Re: algif_hash: splice of data > 2**16

2014-12-18 Thread leroy christophe
Le 18/12/2014 13:15, Stephan Mueller a écrit : Hi Herbert, While testing the vmsplice/splice interface of algif_hash I was made aware of the problem that data blobs larger than 16 pages do not seem to be hashed properly. For testing, a file is mmap()ed and handed to vmsplice / splice. If the fi

Re: algif_hash: splice of data > 2**16

2014-12-18 Thread Stephan Mueller
Am Donnerstag, 18. Dezember 2014, 13:22:20 schrieb leroy christophe: Hi Leroy, Herbert, >Le 18/12/2014 13:15, Stephan Mueller a écrit : >> Hi Herbert, >> >> While testing the vmsplice/splice interface of algif_hash I was made >> aware of the problem that data blobs larger than 16 pages do not se

[PATCH resending] splice: sendfile() at once fails for big files

2014-12-18 Thread Christophe Leroy
When big files (over 64kbytes) are sent with sendfile(), they are sent by blocks of 64kbytes. In that case, the target must be informed that the current block is not the last one, otherwise it might take wrong actions. The issue was observed while sending a file to an AF_ALG socket for hashing. The

algif_hash: splice of data > 2**16

2014-12-18 Thread Stephan Mueller
Hi Herbert, While testing the vmsplice/splice interface of algif_hash I was made aware of the problem that data blobs larger than 16 pages do not seem to be hashed properly. For testing, a file is mmap()ed and handed to vmsplice / splice. If the file is smaller than 2**16, the interface return