diff options
author | 2018-08-07 23:01:06 -0700 | |
---|---|---|
committer | 2018-08-08 11:55:49 +0200 | |
commit | 1293477f4f324f9cf23a36f6cc0adc6801f1baac (patch) | |
tree | e7e7558e7d9c9d4675893cd12e1fc52d9851e326 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | nvme.h: add support for ns write protect definitions (diff) | |
download | linux-dev-1293477f4f324f9cf23a36f6cc0adc6801f1baac.tar.xz linux-dev-1293477f4f324f9cf23a36f6cc0adc6801f1baac.zip |
nvme: set gendisk read only based on nsattr
NVMe 1.3 TP 4005 introduces new filed (NSATTR). This field indicates
whether given namespace is write protected or not. This patch sets the
gendisk associated with the namespace to read only based on the identify
namespace nsattr field.
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions