From: keith.busch@intel.com (Keith Busch)
Subject: [PATCH V2] nvme-cli/list: fix when nvme device can not be open
Date: Wed, 2 Aug 2017 04:02:05 -0400 [thread overview]
Message-ID: <20170802080205.GA11094@localhost.localdomain> (raw)
In-Reply-To: <1501660269-11024-1-git-send-email-guanjunxiong@huawei.com>
On Wed, Aug 02, 2017@03:51:09PM +0800, Guan Junxiong wrote:
> This patch checks the validity of fd returned by open operation on
> the nvme divices. For example, when a user who doesn't have the
> permission to open the device trys to use nvme list command to list
> nvme devices, the fd is returned as -1 and errno indicates permission
> denied.
> In addition,this patch closes the current open device before
> processing the next device.
>
> Signed-off-by: Guan Junxiong <guanjunxiong at huawei.com>
> Reviewed-by: Christoph Hellwig <hch at lst.de>
Applied to the repo, thanks for the resend.
prev parent reply other threads:[~2017-08-02 8:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-02 7:51 [PATCH V2] nvme-cli/list: fix when nvme device can not be open Guan Junxiong
2017-08-02 8:02 ` Keith Busch [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=20170802080205.GA11094@localhost.localdomain \
--to=keith.busch@intel.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