Re: [PATCH v6 1/2] loop: Report EOPNOTSUPP properly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 12, 2019 at 12:32 AM Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
>
> On Mon, Nov 11, 2019 at 10:50:29AM -0800, Evan Green wrote:
> > -             if (cmd->ret < 0)
> > +             if (cmd->ret == -EOPNOTSUPP)
> > +                     ret = BLK_STS_NOTSUPP;
> > +             else if (cmd->ret < 0)
> >                       ret = BLK_STS_IOERR;
>
> This really should use errno_to_blk_status.  Same for the other hunk.

Seems reasonable, I can switch to that.



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux