From: Jens Axboe <axboe@kernel.dk>
To: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>,
linux-block@vger.kernel.org
Cc: hch@infradead.org, linux-scsi@vger.kernel.org,
linux-kernel@vger.kernel.org, pbonzini@redhat.com,
latha@linux.vnet.ibm.com, manjuhr1@in.ibm.com
Subject: Re: [PATCH RESEND] block: allow WRITE_SAME commands with the SG_IO ioctl
Date: Mon, 19 Dec 2016 08:34:33 -0700 [thread overview]
Message-ID: <b62fd71d-0831-c402-1d09-c78779dee060@kernel.dk> (raw)
In-Reply-To: <1481824098-5555-1-git-send-email-mauricfo@linux.vnet.ibm.com>
On 12/15/2016 10:48 AM, Mauricio Faria de Oliveira wrote:
> The WRITE_SAME commands are not present in the blk_default_cmd_filter
> write_ok list, and thus are failed with -EPERM when the SG_IO ioctl()
> is executed without CAP_SYS_RAWIO capability (e.g., unprivileged users).
> [ sg_io() -> blk_fill_sghdr_rq() > blk_verify_command() -> -EPERM ]
Added for 4.10, thanks.
--
Jens Axboe
prev parent reply other threads:[~2016-12-19 15:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-15 17:48 Mauricio Faria de Oliveira
2016-12-19 10:39 ` Christoph Hellwig
2016-12-19 15:34 ` Jens Axboe [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=b62fd71d-0831-c402-1d09-c78779dee060@kernel.dk \
--to=axboe@kernel.dk \
--cc=hch@infradead.org \
--cc=latha@linux.vnet.ibm.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=manjuhr1@in.ibm.com \
--cc=mauricfo@linux.vnet.ibm.com \
--cc=pbonzini@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome