* ecryptfs log spew from EINTR
@ 2014-03-05 17:15 Dave Hansen
2014-03-05 17:53 ` Tyler Hicks
0 siblings, 1 reply; 2+ messages in thread
From: Dave Hansen @ 2014-03-05 17:15 UTC (permalink / raw)
To: ecryptfs, Tyler Hicks, LKML
I have a little program that uses mmap() to copy files. Essentially:
addr1 = mmap(fd1);
addr2 = mmap(fd2);
memcpy(addr1, addr2, len);
If these files are on ecryptfs and I interrupt the memcpy() with ^C, I
consistently get this in dmesg:
ecryptfs_decrypt_page: Error attempting to read lower page; rc = [-4]
ecryptfs_readpage: Error decrypting page; rc = [-4]
-4 is, of course -EINTR because of the ^C. Should we be suppressing the
message when we see EINTR?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ecryptfs log spew from EINTR
2014-03-05 17:15 ecryptfs log spew from EINTR Dave Hansen
@ 2014-03-05 17:53 ` Tyler Hicks
0 siblings, 0 replies; 2+ messages in thread
From: Tyler Hicks @ 2014-03-05 17:53 UTC (permalink / raw)
To: Dave Hansen; +Cc: ecryptfs, LKML
[-- Attachment #1: Type: text/plain, Size: 1024 bytes --]
On 2014-03-05 09:15:28, Dave Hansen wrote:
> I have a little program that uses mmap() to copy files. Essentially:
>
> addr1 = mmap(fd1);
> addr2 = mmap(fd2);
> memcpy(addr1, addr2, len);
>
> If these files are on ecryptfs and I interrupt the memcpy() with ^C, I
> consistently get this in dmesg:
>
> ecryptfs_decrypt_page: Error attempting to read lower page; rc = [-4]
> ecryptfs_readpage: Error decrypting page; rc = [-4]
>
> -4 is, of course -EINTR because of the ^C. Should we be suppressing the
> message when we see EINTR?
Yes. In fact, eCryptfs shouldn't print a KERN_ERR message at all in this
situation. KERN_DEBUG at most. eCryptfs is too chatty in many cases.
I'd like to switch over to the pr_* functions and downgrade many log
messages to pr_debug() at that time.
Tyler
> --
> To unsubscribe from this list: send the line "unsubscribe ecryptfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-05 17:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-05 17:15 ecryptfs log spew from EINTR Dave Hansen
2014-03-05 17:53 ` Tyler Hicks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).