]> www.infradead.org Git - users/hch/nvme-cli.git/log
users/hch/nvme-cli.git
9 years agoSupport Get Log Page extended Number of Dwords
Ming Lin [Tue, 7 Jun 2016 15:19:18 +0000 (17:19 +0200)]
Support Get Log Page extended Number of Dwords

This supports 32 bits(rather than 12 bits) extended Number of Dwords
in nvme_get_log().

Signed-off-by: Ming Lin <ming.l@ssi.samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-and-tested-by: Sagi Grimberg <sagi@grimberg.me>
Tested-by: Armen Baloyan <armenx.baloyan@intel.com>
9 years agoMakefile: introduce OBJS variable
Christoph Hellwig [Tue, 7 Jun 2016 15:19:17 +0000 (17:19 +0200)]
Makefile: introduce OBJS variable

Instead of listing all the objects twice.

Signed-off-by: Christoph Hellwig <hch@lst.de>
9 years agoMerge pull request #91 from ColinIanKing/master
Keith Busch [Mon, 6 Jun 2016 14:21:09 +0000 (08:21 -0600)]
Merge pull request #91 from ColinIanKing/master

 Fix leak of mbuffer on error exit path

9 years ago Fix leak of mbuffer on error exit path
Colin Ian King [Fri, 3 Jun 2016 18:27:52 +0000 (19:27 +0100)]
 Fix leak of mbuffer on error exit path

building with clang scan-build picked up a memory leak:
nvme.c:2176:3: warning: Potential leak of memory pointed to by 'mbuffer'
   fprintf(stderr, "failed to read data buffer from input file\n");
   ^~~~~~~

instead of returning, jump to free_and_return which performs the
correct cleanup.  Also fix the indentation of the return at the end of
the function.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
9 years agoGenarate lnvm documentation
Keith Busch [Thu, 2 Jun 2016 19:34:41 +0000 (13:34 -0600)]
Genarate lnvm documentation

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoMerge pull request #90 from ColinIanKing/master
Keith Busch [Thu, 2 Jun 2016 18:42:52 +0000 (12:42 -0600)]
Merge pull request #90 from ColinIanKing/master

minor fix and code clean up

9 years agoRemove extraneous and unused mode parameter from show_nvme_id_ctrl_power
Colin Ian King [Thu, 2 Jun 2016 18:31:38 +0000 (19:31 +0100)]
Remove extraneous and unused mode parameter from show_nvme_id_ctrl_power

mode is not used, so we may as well remove it

Signed-off-by: Colin Ian King <colin.king@canonical.com>
9 years agoMerge pull request #87 from MatiasBjorling/for-keith
Keith Busch [Thu, 2 Jun 2016 18:29:12 +0000 (12:29 -0600)]
Merge pull request #87 from MatiasBjorling/for-keith

Add LightNVM adminstration and diagnose support

9 years agoFix null pointer dereference on strlen()
Colin Ian King [Thu, 2 Jun 2016 18:25:54 +0000 (19:25 +0100)]
Fix null pointer dereference on strlen()

If string is NULL, then the proceeding strlen() on the string
will lead to a NULL pointer dereference error (segmentation fault).
Fix this by swapping the order of the comparisons, first check for
a NULL pointer; if that's not true then do the strlen check.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
9 years agoMerge pull request #89 from ColinIanKing/master
Keith Busch [Thu, 2 Jun 2016 18:23:00 +0000 (12:23 -0600)]
Merge pull request #89 from ColinIanKing/master

Fix segmentation fault using nvme show-regs with no device name

9 years agoFix segmentation fault using nvme show-regs with no device name
Colin Ian King [Thu, 2 Jun 2016 18:11:52 +0000 (19:11 +0100)]
Fix segmentation fault using nvme show-regs with no device name

Add check_arg_dev() to check if a device name has been provided
and use this in show_registers to avoid the following segfault:

Segmentation fault (core dumped)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
9 years agoAdd documentation for LightNVMcommands
Matias Bjørling [Thu, 2 Jun 2016 14:17:51 +0000 (16:17 +0200)]
Add documentation for LightNVMcommands

Adds detailed documentation on each of these commands:

 - lnvm-list
 - lnvm-info
 - lnvm-id-ns
 - lnvm-init
 - lnvm-create
 - lnvm-remove
 - lnvm-factory
 - lnvm-diag-bbtbl
 - lnvm-diag-set-bbtbl

9 years agoAdd support for updating the bad block table
Matias Bjørling [Tue, 24 May 2016 15:35:34 +0000 (17:35 +0200)]
Add support for updating the bad block table

Introduce lnvm-diag-set-bbtbl. It takes the channel, lun, plane, block
and the value to update and sends it to the device. Afterwards, the
status can be retrieved with lnvm-diag-get-bbtbl.

9 years agoAdd LightNVM adminstration and diagnose support
Matias Bjørling [Mon, 23 May 2016 12:44:00 +0000 (14:44 +0200)]
Add LightNVM adminstration and diagnose support

Add support for identify geometry, get bad block interface and
administration interface for LightNVM. This patch adds the following
commands:

 - (lnvm-id-ns) Identify geometry of a LightNVM device.
 - (lnvm-diag-bbtbl) Retrieve bad block table from LightNVM device.
 - (lnvm-info) Get information about modules loaded, and available
               devices.
 - (lnvm-init) Initialize LightNVM device with a media manager.
 - (lnvm-create) Create targets on top of registered devices.
 - (lnvm-remove) Remove a registered target.
 - (lnvm-factory) Factory initialize a LightNVM device.

Signed-off-by: Matias Bjørling <m@bjorling.me>
9 years agoMerge pull request #76 from maksim-teqniksoft/add-completion-to-packages
Keith Busch [Wed, 1 Jun 2016 15:07:41 +0000 (09:07 -0600)]
Merge pull request #76 from maksim-teqniksoft/add-completion-to-packages

Install bash autocompletion by default

9 years agoMerge pull request #88 from morbidrsa/for-keith
Keith Busch [Wed, 1 Jun 2016 14:13:20 +0000 (08:13 -0600)]
Merge pull request #88 from morbidrsa/for-keith

bash completion: Remove shebang line

9 years agobash completion: Remove shebang line
Johannes Thumshirn [Wed, 1 Jun 2016 10:12:59 +0000 (12:12 +0200)]
bash completion: Remove shebang line

Remove shebang line from bash completion file as rpmlint on openSUSE/SLE
complains about a script ment to be sourced not executed containing a shebang
line.

[   38s] nvme-cli.x86_64: W: sourced-script-with-shebang /etc/bash_completion.d/nvme /usr/bin/env
[   38s] This text file contains a shebang, but is meant to be sourced, not executed.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
9 years agoRelease v0.7 v0.7
Keith Busch [Mon, 23 May 2016 19:52:45 +0000 (13:52 -0600)]
Release v0.7

Just a few minor updates and documentation fixes. There is also a new
option for passthrough commands that can be used to help detect data
over/under run.

Tagging a stable release so we can consider features that bring in other
transports and third party extensions.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoAlign and clear user buffers
Keith Busch [Tue, 17 May 2016 22:59:29 +0000 (16:59 -0600)]
Align and clear user buffers

Avoid the bounce buffers a kernel may allocate by using aligned memory,
and clear the memory in case the user's input doesn't fill the entire
buffer.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoAlign passthrough buffers
Keith Busch [Tue, 17 May 2016 17:07:34 +0000 (11:07 -0600)]
Align passthrough buffers

Some versions of the kernel will create bounce buffers instead of using
directly if the user buffer is not aligned.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoFix create-ns man page size option
Keith Busch [Mon, 16 May 2016 16:49:21 +0000 (12:49 -0400)]
Fix create-ns man page size option

It's -s, not -n.

Issue: https://github.com/linux-nvme/nvme-cli/issues/86
Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoPre-fill user buffers on passthrough commands
Keith Busch [Sat, 14 May 2016 17:07:53 +0000 (13:07 -0400)]
Pre-fill user buffers on passthrough commands

Reported that user data may be shorter than the buffer length, and need
to pad the data with a fixed byte value.

Also requested that we provied a way to prefill data in buffers so we
can know if a device is corrupting memory.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoUse correct power scale bits
Keith Busch [Sat, 14 May 2016 16:51:31 +0000 (12:51 -0400)]
Use correct power scale bits

The active and idle power scales occupy the upper 2 bits of their byte
fields. Shift the scales to use these bits when decoding their values.

Issue: https://github.com/linux-nvme/nvme-cli/issues/85
Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoDecode all firmware activate reset codes
Keith Busch [Tue, 10 May 2016 23:59:18 +0000 (17:59 -0600)]
Decode all firmware activate reset codes

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoAdd all error codes from 1.2 spec
Keith Busch [Tue, 10 May 2016 23:46:56 +0000 (17:46 -0600)]
Add all error codes from 1.2 spec

This adds enums and prints for all error codes. Since the names are
getting longer, all the prints have white space code shift to align
the same.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoMerge pull request #79 from minggr/master
keithbusch [Fri, 22 Apr 2016 21:34:34 +0000 (15:34 -0600)]
Merge pull request #79 from minggr/master

Rename nvme_log() to nvme_get_log()

9 years agoMerge pull request #82 from hrasiq/ppc64-fixes
keithbusch [Fri, 22 Apr 2016 21:32:42 +0000 (15:32 -0600)]
Merge pull request #82 from hrasiq/ppc64-fixes

fix data_size and metadata_size types

9 years agofix data_size and metadata_size types
Heitor Ricardo Alves de Siqueira [Fri, 22 Apr 2016 19:21:33 +0000 (16:21 -0300)]
fix data_size and metadata_size types

The data_size and metadata_size fields in the config struct are declared as
__u32, but should actually be __u64. The current types cause issues in the
argument parsing functions depending on machine architecture and endianness. In
ppc64, using __u32 causes "data size not provided" errors due to the way writes
are being done by argconfig_parse() at src/argconfig.c. Changing the types to
__u64 should fix this behaviour and is in accordance to the CFG_LONG_SUFFIX
flag.

Signed-off-by: Heitor Ricardo Alves de Siqueira <halves@linux.vnet.ibm.com>
9 years agoRelease 0.6 v0.6
Keith Busch [Thu, 14 Apr 2016 21:11:41 +0000 (15:11 -0600)]
Release 0.6

Fixes a couple missing namespace parameteters to newer sub-commands,
and various printing updates.

9 years agoMerge pull request #80 from samiWaheed/master
keithbusch [Thu, 14 Apr 2016 17:18:08 +0000 (11:18 -0600)]
Merge pull request #80 from samiWaheed/master

Master

9 years agoFix nsid print in show_error_log
Sami Waheed [Thu, 14 Apr 2016 17:14:42 +0000 (10:14 -0700)]
Fix nsid print in show_error_log

nsid in error log page could be set to 0xffffffff and should be printed
as unsigned instead of int

9 years agoRename nvme_log() to nvme_get_log()
Ming Lin [Fri, 8 Apr 2016 06:18:09 +0000 (23:18 -0700)]
Rename nvme_log() to nvme_get_log()

This kills off the old nvme_get_log() and rename
nvme_log() to nvme_get_log().

Signed-off-by: Ming Lin <ming.l@ssi.samsung.com>
9 years agoUse nsid parameter for security commands
Keith Busch [Thu, 7 Apr 2016 16:13:25 +0000 (10:13 -0600)]
Use nsid parameter for security commands

Controllers optionally may use nsid.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoMerge pull request #75 from asciiprod/debian-fixes
keithbusch [Wed, 6 Apr 2016 16:56:50 +0000 (10:56 -0600)]
Merge pull request #75 from asciiprod/debian-fixes

sync with actual debian package

9 years agoFix namespace attachment
Keith Busch [Tue, 29 Mar 2016 19:49:47 +0000 (13:49 -0600)]
Fix namespace attachment

The nsid was dropped from the command.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoCode reuse: Namespace identification
Keith Busch [Tue, 29 Mar 2016 18:16:30 +0000 (12:16 -0600)]
Code reuse: Namespace identification

Combining common code into single function.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoUse enum instead of hard-coded values
Keith Busch [Fri, 18 Mar 2016 17:57:02 +0000 (11:57 -0600)]
Use enum instead of hard-coded values

Define constants to make clear what a device is doing.

Noticing that one identify mode was never used, so adding an option.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoNamespace attach controller list endian fix
Keith Busch [Fri, 18 Mar 2016 16:59:56 +0000 (10:59 -0600)]
Namespace attach controller list endian fix

Convert for host endian.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoCode reuse: parsing options and arguments
Keith Busch [Fri, 18 Mar 2016 15:32:04 +0000 (09:32 -0600)]
Code reuse: parsing options and arguments

A common code pattern is to parse the options, then open the first
non-option argument as the device parameter.

This patch combines that pattern in a reusable single function. The
savings is not significant, but every little bit helps.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoCode reuse: character device check
Keith Busch [Fri, 18 Mar 2016 14:52:06 +0000 (08:52 -0600)]
Code reuse: character device check

Moving character device sanity check to common function to reduce
duplication.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoMerge pull request #77 from seehearfeel/master
keithbusch [Mon, 28 Mar 2016 13:41:08 +0000 (07:41 -0600)]
Merge pull request #77 from seehearfeel/master

Fix the bug of Model Number and display the info of Serial Number

9 years agoFix the bug of Model Number and display the info of Serial Number
seehearfeel [Sat, 26 Mar 2016 13:14:43 +0000 (21:14 +0800)]
Fix the bug of Model Number and display the info of Serial Number

OK, I see, thanks for your suggestion.

I have modified the related code of Serial Number, Model Number and Firmware Revision,
other fields are not be changed because the length can not be properly figured out by
the print format specifier, (int)sizeof(field) is too big and (int)strlen(field) is random.
In addition, fix a minor spelling mistake "Namepace" to "Namespace".

Please review, thanks!

9 years agoFix the bug of Model Number and display the info of Serial Number
seehearfeel [Tue, 22 Mar 2016 11:23:15 +0000 (19:23 +0800)]
Fix the bug of Model Number and display the info of Serial Number

According to the NVMe Specification, there is an error when display Model Number.
In addition, currently it does not display the info of Serial Number, so add it.

9 years agoInstall bash autocompletion by default
Maksim Salau [Sat, 19 Mar 2016 20:08:24 +0000 (23:08 +0300)]
Install bash autocompletion by default

9 years agosync with actual debian package
Markus Schade [Fri, 18 Mar 2016 10:27:49 +0000 (11:27 +0100)]
sync with actual debian package
drop all patches as they have all been fixed upstream

9 years agoRelease v0.5 v0.5
Keith Busch [Thu, 17 Mar 2016 23:33:48 +0000 (17:33 -0600)]
Release v0.5

The v0.4 breakage should all be resolved now. Tagging release v0.5,
and back to stability.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoAdd reset and subsystem reset commands
Keith Busch [Thu, 17 Mar 2016 22:30:26 +0000 (16:30 -0600)]
Add reset and subsystem reset commands

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoPrint format consistency
Keith Busch [Thu, 17 Mar 2016 21:40:49 +0000 (15:40 -0600)]
Print format consistency

Use same format for both get and set features when displaying results.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoMerge pull request #74 from sanderboom/master
keithbusch [Tue, 15 Mar 2016 17:55:36 +0000 (11:55 -0600)]
Merge pull request #74 from sanderboom/master

Added Arch Linux install instructions to README.md

9 years agoAdded Arch Linux install instructions to README.md
Sander Boom [Tue, 15 Mar 2016 17:52:58 +0000 (18:52 +0100)]
Added Arch Linux install instructions to README.md

9 years agoMerge branch 'keith-fixes'
Keith Busch [Mon, 14 Mar 2016 17:10:54 +0000 (11:10 -0600)]
Merge branch 'keith-fixes'

9 years agoFix 32-bit pointer conversion
Keith Busch [Mon, 14 Mar 2016 17:08:14 +0000 (11:08 -0600)]
Fix 32-bit pointer conversion

Reported-by: Russell Joyce <russell@russellj.co.uk>
Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoMerge pull request #72 from kholmanskikh/map_failed
keithbusch [Fri, 11 Mar 2016 14:52:59 +0000 (07:52 -0700)]
Merge pull request #72 from kholmanskikh/map_failed

nvme: fix the mmap error check

9 years agoMerge pull request #71 from kholmanskikh/nvme-print_typo
keithbusch [Fri, 11 Mar 2016 14:52:39 +0000 (07:52 -0700)]
Merge pull request #71 from kholmanskikh/nvme-print_typo

nvme-print: fix a typo

9 years agonvme: fix the mmap error check
Stanislav Kholmanskikh [Fri, 11 Mar 2016 12:43:01 +0000 (15:43 +0300)]
nvme: fix the mmap error check

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
9 years agonvme-print: fix a typo
Stanislav Kholmanskikh [Fri, 11 Mar 2016 09:31:55 +0000 (12:31 +0300)]
nvme-print: fix a typo

Commit 82c4d1fff8db ("Use endian host conversions for endian type data")
introduced a typo. This is a fix for that.

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
9 years agoSync with latest kernel's provided nvme IOCTLs
Keith Busch [Thu, 10 Mar 2016 15:44:24 +0000 (08:44 -0700)]
Sync with latest kernel's provided nvme IOCTLs

New kernels provide reset and subsystem reset.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoConsistent help text updates
Keith Busch [Tue, 8 Mar 2016 16:07:12 +0000 (09:07 -0700)]
Consistent help text updates

Refer to identifiers as "identifier" instead of "name".

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoMerge pull request #70 from lakshminarayanand/nvme-cli-config
keithbusch [Mon, 7 Mar 2016 17:32:07 +0000 (10:32 -0700)]
Merge pull request #70 from lakshminarayanand/nvme-cli-config

Fix Memory leak on fail case of mbuffer

9 years agoFix Memory leak on fail case of mbuffer
lakshminarayanand [Mon, 7 Mar 2016 10:34:11 +0000 (16:04 +0530)]
Fix Memory leak on fail case of mbuffer

9 years agoMerge pull request #67 from wdc-tools/master
keithbusch [Fri, 4 Mar 2016 22:44:28 +0000 (15:44 -0700)]
Merge pull request #67 from wdc-tools/master

Fixed option checking for format to match NVMe spec limits.

9 years agoRemove unused nvme_admin_cmd in format
Keith Busch [Fri, 4 Mar 2016 22:32:31 +0000 (15:32 -0700)]
Remove unused nvme_admin_cmd in format

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoSimplify show-regs
Keith Busch [Thu, 3 Mar 2016 20:20:16 +0000 (13:20 -0700)]
Simplify show-regs

You only need to specify the name of the device. The character or block
device was never necessary to show the registers since we're opening the
sysfs resource entry. This is backwards compatibles with the old way as
the basename was stripped from the path before.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoSimplify non-argument params
Keith Busch [Thu, 3 Mar 2016 20:11:52 +0000 (13:11 -0700)]
Simplify non-argument params

The device is the first non-argument param. The handling for this is
done by argparse, and we expect to move it to the end. Instead, it'd be
easier to let getopt's handle this by not providing the '-' signifier
to treat non-arguments as arguments. This simplifies opening the device.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoAdd nvme security specific field
Keith Busch [Thu, 3 Mar 2016 18:37:57 +0000 (11:37 -0700)]
Add nvme security specific field

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoAdd namespace id param for security commands
Keith Busch [Thu, 3 Mar 2016 18:14:25 +0000 (11:14 -0700)]
Add namespace id param for security commands

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoAccess 64-bit registers as 2 32-bit
Keith Busch [Thu, 3 Mar 2016 17:33:03 +0000 (10:33 -0700)]
Access 64-bit registers as 2 32-bit

Some devices fail 64-bit MMIO.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoUse endian host conversions for endian type data
Keith Busch [Thu, 3 Mar 2016 17:23:32 +0000 (10:23 -0700)]
Use endian host conversions for endian type data

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoMore print and format updates
Keith Busch [Thu, 3 Mar 2016 14:59:32 +0000 (07:59 -0700)]
More print and format updates

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoChanges to format range checks to retain forward compatibility.
Brandon Schulz [Fri, 4 Mar 2016 22:34:48 +0000 (16:34 -0600)]
Changes to format range checks to retain forward compatibility.

9 years agoFixed option checking for format to match NVMe spec limits.
Brandon Schulz [Fri, 4 Mar 2016 21:54:35 +0000 (15:54 -0600)]
Fixed option checking for format to match NVMe spec limits.

9 years agoFixing a get and set features
Keith Busch [Thu, 3 Mar 2016 14:32:18 +0000 (07:32 -0700)]
Fixing a get and set features

The get feature argument for extensive decoding for readibility is 'H'
rather than 'h', and a set feature value can be 0xffffffff, so fixing
that bogus check.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoMerge branch 'master' of https://github.com/linux-nvme/nvme-cli
Keith Busch [Thu, 3 Mar 2016 00:01:19 +0000 (17:01 -0700)]
Merge branch 'master' of https://github.com/linux-nvme/nvme-cli

9 years agoMisc fixes
Keith Busch [Wed, 2 Mar 2016 23:59:18 +0000 (16:59 -0700)]
Misc fixes

A few errors in the moving occured. The short non-option arguments
weren't working, gnu parse option parameters were mishandled, and get
features used the wrong opcode.

Folding in help text updates.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoMerge pull request #66 from leitao/master
keithbusch [Wed, 2 Mar 2016 21:16:44 +0000 (14:16 -0700)]
Merge pull request #66 from leitao/master

Fix problems on Debian package

9 years agoFix English typos only
Breno Leitao [Wed, 2 Mar 2016 21:13:16 +0000 (16:13 -0500)]
Fix English typos only

This is a commit to fix a type across the project, from "identifer" to
"identifier".

The motivation behind this fix is to make this package perfect to be
included in the Debian project. As it is, the lintian checker is
complainging about these typos using the tag spelling-error-in-manpage.

9 years agoFix copyright file
Breno Leitao [Thu, 14 Jan 2016 17:17:36 +0000 (12:17 -0500)]
Fix copyright file

The debian/copyright file was not proper create, as reported by
"licensecheck -r --copyright ."

This change seems to fix these problems.

9 years agoAdd write uncorrectable command
Keith Busch [Wed, 2 Mar 2016 15:26:33 +0000 (08:26 -0700)]
Add write uncorrectable command

This concludes nvme-cli's implementing every IO command in the NVMe
1.2 specification.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoAdd write zeroes command
Keith Busch [Wed, 2 Mar 2016 15:14:13 +0000 (08:14 -0700)]
Add write zeroes command

As part of this, moving the namespace id error handling to a common
function, as this has become a common repitition.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoExport print_word_wrapped
Keith Busch [Wed, 2 Mar 2016 00:26:44 +0000 (17:26 -0700)]
Export print_word_wrapped

... and use the word wrapping API to print long strings.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoSimplify argument parsing
Keith Busch [Wed, 2 Mar 2016 00:07:18 +0000 (17:07 -0700)]
Simplify argument parsing

This combines short and long option names into the same argument entry
so we don't need to duplicate each entry. This also greatly simplifies
the help printing, which had an undocumented dependency  of argument
ordering just to print correctly.

The simpler setup makes it easier to add new commands.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoMerge branch 'master' of https://github.com/linux-nvme/nvme-cli
Keith Busch [Wed, 2 Mar 2016 00:06:39 +0000 (17:06 -0700)]
Merge branch 'master' of https://github.com/linux-nvme/nvme-cli

9 years agoUpdate default version
Keith Busch [Tue, 1 Mar 2016 21:24:58 +0000 (14:24 -0700)]
Update default version

This should have been updated inline with the tags so the version file
wouldn't depend on having a git repository.

Reported-by: Breno Leitao
Signed-off-by:Keith Busch <keith.busch@intel.com>

9 years agoUpdated README.md
Stephen Bates [Tue, 1 Mar 2016 18:27:43 +0000 (11:27 -0700)]
Updated README.md

Added text to cover the new support in Universe for Xenial.

9 years agoMinor whitespace fix in README.md
Stephen Bates [Tue, 1 Mar 2016 18:23:35 +0000 (11:23 -0700)]
Minor whitespace fix in README.md

9 years agoWhitespace fixes v0.4
Keith Busch [Fri, 26 Feb 2016 15:42:41 +0000 (08:42 -0700)]
Whitespace fixes

Just removing trailing whitespaces and putting braces where they belong.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoSplit display routines from cli
Keith Busch [Thu, 25 Feb 2016 22:38:49 +0000 (15:38 -0700)]
Split display routines from cli

All routines that decode and show the data are moved to a common file
separate from the command line interface.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoSplit ioctl command handling from cli
Keith Busch [Thu, 25 Feb 2016 22:19:51 +0000 (15:19 -0700)]
Split ioctl command handling from cli

Moving nvme ioctl handling from the command line interface into a
separate file.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoConsistent code formatting
Keith Busch [Tue, 1 Mar 2016 16:20:41 +0000 (09:20 -0700)]
Consistent code formatting

Used 'indent -linux' to quickly convert code style to linux conventions.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoMerge pull request #61 from morbidrsa/master
keithbusch [Tue, 1 Mar 2016 15:02:14 +0000 (08:02 -0700)]
Merge pull request #61 from morbidrsa/master

README.md: Add the openSUSE Tumbleweed package

9 years agoREADME.md: Add the openSUSE Tumbleweed package
Johannes Thumshirn [Tue, 1 Mar 2016 11:01:17 +0000 (12:01 +0100)]
README.md: Add the openSUSE Tumbleweed package

Add the openSUSE Tumbleweed package to README.md

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
9 years agoDocumenation fixes
Keith Busch [Fri, 26 Feb 2016 15:30:21 +0000 (08:30 -0700)]
Documenation fixes

Addresing typos and a few subtle incorrect usages. '0x' is a required
prefix for parsing hex numbers.

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoIgnore swp files
Keith Busch [Thu, 25 Feb 2016 22:42:11 +0000 (15:42 -0700)]
Ignore swp files

Signed-off-by: Keith Busch <keith.busch@intel.com>
9 years agoMerge pull request #58 from leitao/master
keithbusch [Fri, 12 Feb 2016 15:37:02 +0000 (08:37 -0700)]
Merge pull request #58 from leitao/master

Fix debian scripts and typos

9 years agoFix English typos only
Breno Leitao [Fri, 12 Feb 2016 12:24:05 +0000 (10:24 -0200)]
Fix English typos only

This is a commit to fix typos accross the project, mainly the
following:

  * overriden -> overridden
  * paramter -> parameter
  * Comand -> Command
  * Offical -> Official

The motivation behind this fix is to make this package perfect to be
included in the Debian project. As it is, the lintian checker is
complainging about these typos using the tag spelling-error-in-manpage.

It was also requested by a Debian maintainer in the following review:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=810033#38

9 years agoFix two debian/control issues
Breno Leitao [Thu, 14 Jan 2016 17:13:34 +0000 (12:13 -0500)]
Fix two debian/control issues

It was reported by a mentor on Debian[1], two problems were detected
and fixed:

 - Remove the . at the end of the package description, that caused error
   description-synopsis-might-not-be-phrased-properly.

 - Remove hard dependency for libudev0 | libudev1. It is being generated
   by dh_shlibdeps.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?att=0;msg=23;bug=810033

9 years agoChanging the debian maintainer
Breno Leitao [Thu, 14 Jan 2016 17:12:49 +0000 (12:12 -0500)]
Changing the debian maintainer

Adding myself as the Debian maintainer, since Keith is the upstream
author, and I will be the Debian maintainer for the package.

9 years agoMerge pull request #56 from FlorianHeigl/patch-2
Stephen Bates [Tue, 9 Feb 2016 00:12:14 +0000 (17:12 -0700)]
Merge pull request #56 from FlorianHeigl/patch-2

Add starter doc for AlpineLinux

9 years agoAdd starter doc for AlpineLinux
Florian Heigl [Sun, 7 Feb 2016 13:47:26 +0000 (14:47 +0100)]
Add starter doc for AlpineLinux

I've included two command examples, i hope that's not too much bloat. normally people will try to avoid using udev, but it's not really necessary either assuming everyone can ls /dev/nvme* ;)

9 years agoMerge pull request #55 from amluto/master
Stephen Bates [Fri, 5 Feb 2016 01:02:40 +0000 (18:02 -0700)]
Merge pull request #55 from amluto/master

README.md: Mention the Fedora package