Re: [PATCH RESEND] block: allow WRITE_SAME commands with the SG_IO ioctl

From: Jens Axboe
Date: Mon Dec 19 2016 - 10:34:39 EST


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