diff options
author | Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> | 2018-12-13 00:11:43 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-12-13 09:59:06 +0100 |
commit | c6aa3542e01026a94d24713ee2c0dce517e9b6de (patch) | |
tree | f3718d669e9f693c6a92a1a0ff97f9b49799403b /drivers/nvme/target/nvmet.h | |
parent | nvmet: add error log support for bdev backend (diff) | |
download | linux-c6aa3542e01026a94d24713ee2c0dce517e9b6de.tar.xz linux-c6aa3542e01026a94d24713ee2c0dce517e9b6de.zip |
nvmet: add error log support for file backend
This patch adds support for the file backend to populate the
error log entries. Here we map the errno to the NVMe status codes.
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to '')
-rw-r--r-- | drivers/nvme/target/nvmet.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nvme/target/nvmet.h b/drivers/nvme/target/nvmet.h index a2a7fd69b66a..3b5f0bcaf3e8 100644 --- a/drivers/nvme/target/nvmet.h +++ b/drivers/nvme/target/nvmet.h @@ -494,4 +494,6 @@ static inline u32 nvmet_rw_len(struct nvmet_req *req) return ((u32)le16_to_cpu(req->cmd->rw.length) + 1) << req->ns->blksize_shift; } + +u16 errno_to_nvme_status(struct nvmet_req *req, int errno); #endif /* _NVMET_H */ |