[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <yq14mzqrhy6.fsf@sermon.lab.mkp.net>
Date: Wed, 11 Jun 2014 22:16:01 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Christoph Hellwig <hch@...radead.org>
Cc: "Martin K. Petersen" <martin.petersen@...cle.com>, axboe@...com,
nab@...erainc.com, sagig@....mellanox.co.il,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-api@...r.kernel.org
Subject: Re: [PATCH 12/14] block: Add specific data integrity errors
>>>>> "Christoph" == Christoph Hellwig <hch@...radead.org> writes:
>> Introduce a set of error codes that can be used by the block
>> integrity subsystem to signal which class of error was encountered by
>> either the I/O controller or the storage device.
Christoph> I'd also love to see something catching these so that they
Christoph> don't leak to userspace.
This patch was really meant as an RFC. But it is absolutely my intent to
expose these to userspace. Albeit only to applications that supply or
request protection information via Darrick's aio extensions.
I also use these errors extensively in my test utilities to verify that
the correct problem gets detected by the correct entity when I inject an
error.
I should add that in the past I had a separate error status inside the
bip that contained the data integrity specific errors. But that involved
all sorts of evil hacks when bios were cloned, split and stacked. After
talking to nab about his needs for target I figured it was better to
just define new error codes and handle them like Hannes did for the
extended SCSI errors.
--
Martin K. Petersen Oracle Linux Engineering
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists