All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruno Meneguele <bmeneg@redhat.com>
To: Petr Mladek <pmladek@suse.com>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>,
	linux-kernel@vger.kernel.org, torvalds@linux-foundation.org,
	Jason@zx2c4.com
Subject: Re: [PATCH v2] doc:kmsg: explictly state the return value in case of SEEK_CUR
Date: Mon, 13 Jul 2020 10:30:40 -0300	[thread overview]
Message-ID: <20200713133040.GB4730@glitch> (raw)
In-Reply-To: <20200713131509.GC20226@alley>

[-- Attachment #1: Type: text/plain, Size: 1440 bytes --]

On Mon, Jul 13, 2020 at 03:15:09PM +0200, Petr Mladek wrote:
> On Mon 2020-07-13 11:25:58, Sergey Senozhatsky wrote:
> > On (20/07/10 14:44), Bruno Meneguele wrote:
> > > The commit 625d3449788f ("Revert "kernel/printk: add kmsg SEEK_CUR
> > > handling"") reverted a change done to the return value in case a SEEK_CUR
> > > operation was performed for kmsg buffer based on the fact that different
> > > userspace apps were handling the new return value (-ESPIPE) in different
> > > ways, breaking them.
> > > 
> > > At the same time -ESPIPE was the wrong decision because kmsg /does support/
> > > seek() but doesn't follow the "normal" behavior userspace is used to.
> > > Because of that and also considering the time -EINVAL has been used, it was
> > > decided to keep this way to avoid more userspace breakage.
> > > 
> > > This patch adds an official statement to the kmsg documentation pointing to
> > > the current return value for SEEK_CUR, -EINVAL, thus userspace libraries
> > > and apps can refer to it for a definitive guide on what to expect.
> > > 
> > > Signed-off-by: Bruno Meneguele <bmeneg@redhat.com>
> > 
> > Looks good to me,
> > Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
> 
> The patch is committed in printk/linux.git, branch for-5.9.
> 
> Thanks for v2.
> 
> Best Regards,
> Petr
> 

Thanks Sergey and Petr.

-- 
bmeneg 
PGP Key: http://bmeneg.com/pubkey.txt

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

      reply	other threads:[~2020-07-13 13:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-10 17:44 [PATCH v2] doc:kmsg: explictly state the return value in case of SEEK_CUR Bruno Meneguele
2020-07-13  2:25 ` Sergey Senozhatsky
2020-07-13 13:15   ` Petr Mladek
2020-07-13 13:30     ` Bruno Meneguele [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200713133040.GB4730@glitch \
    --to=bmeneg@redhat.com \
    --cc=Jason@zx2c4.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pmladek@suse.com \
    --cc=sergey.senozhatsky@gmail.com \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.