]>
www.infradead.org Git - users/sagi/nvme-cli.git/log
keithbusch [Fri, 4 Dec 2015 15:06:22 +0000 (08:06 -0700)]
Merge pull request #40 from ossobv/ossobv-make-deb-fixes
Improve debian package build process.
Walter Doekes [Fri, 4 Dec 2015 13:41:39 +0000 (14:41 +0100)]
Improve debian package build process.
* The changes from
3686759 make the debian/rules a lot simpler.
* Fix so ld doesn't leave a.out turds.
* Add dist-orig make target that creates a reproducible orig.tar.gz.
A reproducible source archive is a first step towards reproducible
builds.
* Fix typo in debian package description.
* Add dist and pkg to the PHONY targets.
keithbusch [Thu, 3 Dec 2015 21:04:31 +0000 (14:04 -0700)]
Merge pull request #39 from pmmccorm/master
Makefile cleanup.
keithbusch [Thu, 3 Dec 2015 20:49:48 +0000 (13:49 -0700)]
Merge pull request #38 from pmmccorm/master
Factor out ID printing code into common.c
Patrick McCormick [Thu, 3 Dec 2015 17:56:22 +0000 (12:56 -0500)]
Makefile cleanup.
Don't link with unused libs: -lm, -lpthread
Don't hardcode in 64 bit compile, this will break cross compilation
Put preprocessor flags in CPPFLAGS
Add to existing variables instead of var = $var pattern
Signed-off-by: Patrick McCormick <patrick.m.mccormick@intel.com>
Patrick McCormick [Thu, 3 Dec 2015 15:27:33 +0000 (10:27 -0500)]
Factor out ID printing code into common.c
The printing output should be identical. The id structure
printing functions can be more or less used by lsnvme.
Signed-off-by: Patrick McCormick <patrick.m.mccormick@intel.com>
keithbusch [Thu, 3 Dec 2015 16:19:33 +0000 (09:19 -0700)]
Merge pull request #37 from ossobv/ossobv-add-debian-files
Create repository ready `make deb` build.
LGTM. Thanks!
Walter Doekes [Thu, 3 Dec 2015 13:11:33 +0000 (14:11 +0100)]
Create repository ready `make deb` build.
When running `make deb` on `wheezy` with version `0.2.5.ga6ce` it
creates these files:
nvme-cli_0.2.5.ga6ce-1~wheezy_amd64.changes
nvme-cli_0.2.5.ga6ce-1~wheezy_amd64.deb
nvme-cli_0.2.5.ga6ce-1~wheezy.debian.tar.gz
nvme-cli_0.2.5.ga6ce-1~wheezy.dsc
nvme-cli_0.2.5.ga6ce.orig.tar.gz
These can be included in your package archive, so they can be fetched
through apt-get.
Keith Busch [Fri, 13 Nov 2015 22:38:18 +0000 (15:38 -0700)]
Remove uapi header dependency
This wasn't even correct since the source includes the local header,
and is almost always ahead of the uapi version anyway.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Wed, 28 Oct 2015 21:51:58 +0000 (15:51 -0600)]
fix off by one error
Need to use a larger int type because 256 doesn't fit in 8 bits, and
subtract 1 becase number of ranges is 0's based.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Fri, 23 Oct 2015 22:56:07 +0000 (16:56 -0600)]
Add data-set management command
By popular demand...
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Wed, 21 Oct 2015 16:20:14 +0000 (10:20 -0600)]
Update documetatation
Fixing the command in delete-ns and re-running asciidoc to flush all
changes to the repo.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Tue, 20 Oct 2015 17:54:47 +0000 (11:54 -0600)]
Fix 32 bit compilation
Addressing issue:
https://github.com/linux-nvme/nvme-cli/issues/35
Unfortunetly no testing that I'm aware of uses 32-bit by default, so I
suspect we've not seen the last 32-bit issue in this project's life.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Tue, 20 Oct 2015 15:46:36 +0000 (09:46 -0600)]
Debian package fixes
Set the correct architecture and library dependencies.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Mon, 19 Oct 2015 19:33:01 +0000 (13:33 -0600)]
Add deb package target
Note the make clean looks a little dangerous here. Just to be aware of
if we ever name a file or directory "nvme-<something" in the future.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Mon, 19 Oct 2015 17:40:14 +0000 (11:40 -0600)]
Provide rpm build target
Makes creating an RPM package easy.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Thu, 15 Oct 2015 21:15:58 +0000 (15:15 -0600)]
Fixup version file
Some mixups from trying to copy other projects led to incorrect
description.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Thu, 15 Oct 2015 21:11:38 +0000 (15:11 -0600)]
Ignore generated version file
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Thu, 15 Oct 2015 14:15:43 +0000 (08:15 -0600)]
Print status to stderr on r/w commands
The option exists to pipe the data through stdout, so we don't want to
potentially contaminate user data with program output.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Wed, 14 Oct 2015 19:19:47 +0000 (13:19 -0600)]
Different file handle for metadata
Allow a user to specify a different file for metadata rather than assume
it is contigous with the data.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Tue, 6 Oct 2015 22:36:53 +0000 (16:36 -0600)]
Add a version
Starting with v0.1.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Stephen Bates [Mon, 28 Sep 2015 19:57:45 +0000 (13:57 -0600)]
Updated license on bash scripts
Two bash scripts were missed for the GPLv2 licensing. Fixing that with this commit.
keithbusch [Mon, 28 Sep 2015 19:42:18 +0000 (13:42 -0600)]
Merge pull request #34 from ajorg/master
Makefile fixes for packagers (DESTDIR / PREFIX)
Andrew Jorgensen [Mon, 28 Sep 2015 19:27:48 +0000 (12:27 -0700)]
Makefile fixes for packagers (DESTDIR / PREFIX)
Adds DESTDIR and PREFIX in appropriate places
Adds share/ to the man path
Lets the packager override PREFIX
keithbusch [Fri, 25 Sep 2015 15:50:16 +0000 (09:50 -0600)]
Merge pull request #33 from lsgunth/master
Modified the license of the code pulled from libargconfig to be GPLv2
Logan Gunthorpe [Fri, 25 Sep 2015 15:34:35 +0000 (09:34 -0600)]
Modified the license of the code pulled from libargconfig to be GPLv2
There have been legal concerns of linking Apache licensed code with
GPLv2 code. This change modifies the license of the code originating
from libargconfig. All of the copyright holders (including myself and
PMC Sierra represented by Stephen Bates <Stephen.Bates@pmcs.com>) have
signed off on this change.
Keith Busch [Tue, 22 Sep 2015 22:01:48 +0000 (16:01 -0600)]
Fix nvme.c licence to GPLv2
Fixing comment to match the source's appropriate license.
Signed-off-by: Keith Busch <keith.busch@intel.com>
keithbusch [Tue, 22 Sep 2015 20:28:06 +0000 (14:28 -0600)]
Merge pull request #31 from samiWaheed/master
Change default NSID in get-feature function. Fixed format of LBA range output
Sami Waheed [Mon, 21 Sep 2015 16:01:20 +0000 (09:01 -0700)]
Corrected IEEE byte order in id-cntrl
Fixed byte order of IEEE in show_nvme_id_ctrl
Sami Waheed [Tue, 15 Sep 2015 22:29:04 +0000 (15:29 -0700)]
Changed default NSID in get-feature function. Fixed format of LBA range output
- Changed default NSID to 1 in get-feature function. Some features
require a valid NSID (i.e. lba range type)
- Fixed format of LBA range output
- Added description to the attributes field in LBA range output
- Changed default NSID to 0xffffffff in get_log (Matches help
documentation now)
Sami Waheed [Mon, 14 Sep 2015 22:33:18 +0000 (15:33 -0700)]
Merge remote-tracking branch 'linux-nvme/master'
keithbusch [Thu, 10 Sep 2015 14:11:57 +0000 (08:11 -0600)]
Merge pull request #29 from samiWaheed/master
Added a decode option for all mandatory and optional Feature Identifiers fields
Sami Waheed [Wed, 9 Sep 2015 22:19:52 +0000 (15:19 -0700)]
Added a decode option for all mandatory and optional Feature Identifiers
- Using --human-readable option with the get-feature command will decode
the fields of the specified FID.
root [Fri, 4 Sep 2015 21:23:58 +0000 (15:23 -0600)]
Add namespace list option for all namespaces
Add flag to toggle CNS from 2 to 0x10, showing either active namespaces
or all namespaces.
Signed-off-by: root <root@polestar>
Keith Busch [Fri, 4 Sep 2015 17:21:52 +0000 (11:21 -0600)]
Open device for namespace deletion
So you can actually delete the namespace.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Stephen Bates [Wed, 2 Sep 2015 20:44:20 +0000 (14:44 -0600)]
Updated .gitignore
Stephen Bates [Wed, 2 Sep 2015 20:41:28 +0000 (14:41 -0600)]
Improved list command formatting
Keith Busch [Tue, 1 Sep 2015 21:47:24 +0000 (15:47 -0600)]
Fix data size on controller list
The parsing is corrupting data on a list.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Fri, 28 Aug 2015 16:19:38 +0000 (10:19 -0600)]
Fix unsigned integers
Reported that using valid 32 bit integers causes errors do to type
signedness.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Fri, 28 Aug 2015 14:42:00 +0000 (08:42 -0600)]
Use device maximum for error log entries
It's been reported that some controllers return error if more logs were
requested than the device's max. This patch overrides the user's request,
or the default if the option was not given, with the device's max if
the setting exceeds it.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Fri, 28 Aug 2015 14:35:42 +0000 (08:35 -0600)]
Make timeout a parameter for format
Allows a user to override the timeout value, defaults to 2 minutes.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Fri, 21 Aug 2015 19:51:59 +0000 (13:51 -0600)]
Fix compiler warning on format string
Reported-by: Georg <>
Signed-off-by: Keith Busch <keith.busch@intel.com>
keithbusch [Mon, 10 Aug 2015 14:34:22 +0000 (08:34 -0600)]
Merge pull request #25 from paul-grabinar/master
Allow for firmware activation that needs a reset
Paul Grabinar [Mon, 10 Aug 2015 12:28:03 +0000 (13:28 +0100)]
Allow for firmware activation that needs a reset
On a firmware activate, some drives require a reset before the new
firmware can be used. Such drives return a status 0x10b to the activate
request.
Rather than treat this as an error, tell this user the activation was
successful, but a reset is required.
Keith Busch [Thu, 6 Aug 2015 21:37:58 +0000 (15:37 -0600)]
Use hex for sgls print format
It's a bit field, better reprsented by hex.
Signed-off-by: Keith Busch <keith.busch@intel.com>
kaoudis [Wed, 5 Aug 2015 16:39:14 +0000 (10:39 -0600)]
add help strings and submenus
Add relevant help to nvme commands and command options.
Don't seg fault when trying to print help strings.
Don't declare "-h" an unrecognized option; print help menu instead.
Signed-off-by: kaoudis <kaoudis@colorado.edu>
keithbusch [Wed, 5 Aug 2015 16:24:39 +0000 (10:24 -0600)]
Merge pull request #24 from kaoudis/master
[v2] add bash + zsh autocompletions
LGTM
kaoudis [Mon, 3 Aug 2015 19:13:17 +0000 (13:13 -0600)]
add bash and zsh autocompletion files and readme
keithbusch [Tue, 28 Jul 2015 17:47:49 +0000 (11:47 -0600)]
Merge pull request #23 from paul-grabinar/master
Allow longer timeout for format
This seems okay for now. Long term, we should make every command accept a 'timeout' parameter.
Paul Grabinar [Thu, 23 Jul 2015 20:43:29 +0000 (21:43 +0100)]
Allow longer timeout for format
Some NVMe drives take longer than 60 seconds to perform a format on a
namespace. Increase the timeout for the format to 120 seconds.
keithbusch [Wed, 22 Jul 2015 17:47:28 +0000 (11:47 -0600)]
Merge pull request #21 from mihu/asmart
add additional smart log
The "pragma" usage works for me, so making the assumption it's portable.
Michal Humpula [Wed, 22 Jul 2015 17:40:01 +0000 (19:40 +0200)]
remove usage of typedef
Michal Humpula [Sat, 18 Jul 2015 11:46:41 +0000 (13:46 +0200)]
add additional smart log
derived from:
Intel Solid-State Drive Data Center P3700 Series Product Specification
Stephen Bates [Mon, 6 Jul 2015 10:39:53 +0000 (04:39 -0600)]
Merge pull request #19 from mihu/makefile
prepare Makefile for easier packaging
Michal Humpula [Sat, 4 Jul 2015 08:36:04 +0000 (10:36 +0200)]
prepare Makefile for easier packaging
Stephen Bates [Thu, 2 Jul 2015 08:17:35 +0000 (02:17 -0600)]
Fixed data-size type and bug in return value for submit_io
The data-size and meta data input arguments should accept suffixes and
also fixed a bug where the returned value for submit_io is always 0.
Keith Busch [Fri, 26 Jun 2015 19:26:56 +0000 (13:26 -0600)]
Exit on bogus data
Notify of bad paramter provided and exit the program.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Thu, 25 Jun 2015 17:25:11 +0000 (11:25 -0600)]
Set nvme bar to mapped address
Instead of copying the data, point the bar to the mapped address.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Tue, 23 Jun 2015 22:11:45 +0000 (16:11 -0600)]
Fix parameter size
Fixing corruption on parameter parsing.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Tue, 9 Jun 2015 15:35:24 +0000 (09:35 -0600)]
Makefile: install documentation without building
Fixes dependency timestamp problems on cloning that 'make' rules
require it rebuild manpages even though this is not needed. We don't
want an 'asciidoc' dependency to build and install the program unless
you explicitly want to build the documentation, so changing the make
target's dependencies to not rebuild it.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Tue, 9 Jun 2015 15:26:08 +0000 (09:26 -0600)]
Documenation: fix heading on nvme-read
Finding lots of these documentation errors.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Tue, 9 Jun 2015 15:24:27 +0000 (09:24 -0600)]
Update man pages
Pushing updated man pages to remove asciidoc dependency on install.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Mon, 8 Jun 2015 23:00:11 +0000 (17:00 -0600)]
Support for controller list namespace modes
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Mon, 8 Jun 2015 21:24:50 +0000 (15:24 -0600)]
Fix namespace id usage in attach namespace
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Mon, 8 Jun 2015 20:31:30 +0000 (14:31 -0600)]
Add namespace attach/detach subcommands
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Mon, 8 Jun 2015 18:53:09 +0000 (12:53 -0600)]
Add delete namespace sub command
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Mon, 8 Jun 2015 18:40:10 +0000 (12:40 -0600)]
Add create namespace sub command
This regenerated the entire contents of the manpages as well, and I
didn't feel like splitting these commits.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Mon, 8 Jun 2015 17:15:01 +0000 (11:15 -0600)]
Add nvme identify list controller sub command
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Thu, 4 Jun 2015 14:15:26 +0000 (08:15 -0600)]
Consistent error reporting
Prints the decoded error string and status in hex for all nvme errors.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Thu, 4 Jun 2015 13:57:45 +0000 (07:57 -0600)]
White space fixing
Just some white space fixes to keep consistent formatting. The
original style set out to use same as the linux kernel, so sticking
with convention.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Wed, 3 Jun 2015 21:45:35 +0000 (15:45 -0600)]
Printf platform fixes
Changing the 64-bit printf formats to use an appropriate inttype macro
for the given architecture, and converting for appropriate endianess for
"__le64" types.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Wed, 3 Jun 2015 21:38:02 +0000 (15:38 -0600)]
Remove html install target
Not meant to be installed at this time. This previously polluted '/'
with undesriable (but harmless) artifacts.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Stephen Bates [Tue, 2 Jun 2015 15:32:13 +0000 (09:32 -0600)]
Merge branch 'master' of https://github.com/linux-nvme/nvme-cli
Stephen Bates [Tue, 2 Jun 2015 15:27:54 +0000 (09:27 -0600)]
Reverted to GPL licensing
Mixed licensing is not distributable. Based on this and on discussions
between Stephen, Keith and various legal people we are aligning with
GPL.
Keith Busch [Fri, 29 May 2015 15:32:56 +0000 (09:32 -0600)]
Merge branch 'master' of https://github.com/linux-nvme/nvme-cli
Keith Busch [Fri, 29 May 2015 15:32:32 +0000 (09:32 -0600)]
Remove build artifact
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Fri, 29 May 2015 15:31:48 +0000 (09:31 -0600)]
Add html documentation
Signed-off-by: Keith Busch <keith.busch@intel.com>
keithbusch [Thu, 28 May 2015 15:59:33 +0000 (09:59 -0600)]
Merge pull request #13 from stevegalbraith/master
Found another instance of flbas being used as an index into list_item.
stevegalbraith [Wed, 27 May 2015 18:20:08 +0000 (11:20 -0700)]
Found another instance of flbas being used as an index.
Same fix was applied as in pull request #12.
keithbusch [Wed, 27 May 2015 16:50:14 +0000 (10:50 -0600)]
Merge pull request #12 from stevegalbraith/master
Fix to determine initial value for lba in print_list_item
Thanks, LGTM.
stevegalbraith [Wed, 27 May 2015 16:36:38 +0000 (09:36 -0700)]
Fix to determine initial value for lba in print_list_item
The index used to determine lba value takes into accout the entire FLBAS field. Bit 4 determines whether an extended or separate is used to send metadata and if set to 1'b,
throws off the index value. Masked out the top 4 bits to only take into account Bits 3:0 which indicate the LBA format type used.
Stephen Bates [Fri, 15 May 2015 18:53:09 +0000 (18:53 +0000)]
Updated licensing
Added the GPL license to cover the nvme.h file and moved both licenses
into a new sub-folder.
Signed-off-by: Stephen Bates <sbates@raithlin.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
keithbusch [Tue, 12 May 2015 19:49:39 +0000 (13:49 -0600)]
Merge pull request #11 from jderrick/master
Human-readable decode for id-ctrl and id-ns
LGTM
Jon Derrick [Tue, 12 May 2015 16:09:04 +0000 (10:09 -0600)]
Added a human-readable format option to id-ctrl and id-ns. This will
partially decode several relevant bitfields in the ID Controller and
Namespace commands. Reserved fields are displayed if not 0.
Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Keith Busch [Mon, 11 May 2015 20:44:05 +0000 (14:44 -0600)]
Fix f/w download
This needs to read the image file into it's buffer for this to work
correctly, and use an appropriate default transfer size.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Stephen Bates [Fri, 8 May 2015 12:07:41 +0000 (12:07 +0000)]
Minor typos in two man pages
Stephen Bates [Fri, 1 May 2015 22:40:54 +0000 (16:40 -0600)]
Cut and paste fix
Fixes a cut and paste error in the passthru command.
Keith Busch [Fri, 1 May 2015 22:32:57 +0000 (16:32 -0600)]
Switch license from GPLv2 to Apache
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Stephen Bates <sbates@raithlin.com>
keithbusch [Fri, 24 Apr 2015 00:16:50 +0000 (18:16 -0600)]
Merge pull request #8 from zevweiss/master
Compile with -std=gnu99.
Zev Weiss [Fri, 24 Apr 2015 00:10:00 +0000 (19:10 -0500)]
Compile with -std=gnu99.
struct nvme_command contains an anonymous union (a GNU extension).
keithbusch [Fri, 24 Apr 2015 00:07:38 +0000 (18:07 -0600)]
Merge pull request #7 from zevweiss/master
Fix over-long loop in show_fw_log().
Zev Weiss [Fri, 24 Apr 2015 00:02:38 +0000 (19:02 -0500)]
Fix over-long loop in show_fw_log().
nvme_firmware_log_page.frs has 7 entries, not 8.
Keith Busch [Mon, 6 Apr 2015 20:31:09 +0000 (14:31 -0600)]
Register read fix for kernel 4.0
The nvme sysfs path was moved in kernel 4.0 to a new class type, so just
opening that one first before falling back to the previous location.
This also is printing an error if the user requested an invalid command.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Keith Busch [Fri, 20 Mar 2015 15:13:50 +0000 (09:13 -0600)]
Add data input option for set features
Some NVMe features perform a data transfer and this provides a user option
to specify where that data comes from when setting. Documentation updated
as well.
This also includes an unrelated fix to hush a warning for unused symbols
under precompile libudev dependencies.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Stephen Bates [Sun, 15 Mar 2015 22:41:41 +0000 (16:41 -0600)]
Improved Makefile to use kernel uapi header.
Until now the CLI has relied on the header in the local Linux folder.
This is not safe as the kernel header may have differences that can
cause severe issues (e.g. new/different structure members). This
commit tries to use the uapi for the current kernel. Note this only
fixes at compile time.
Stephen Bates [Fri, 13 Mar 2015 19:24:47 +0000 (13:24 -0600)]
Fixed versioning for pre 1.2 devices
Prior to NVMe 1.2 there was no version field in controller ID and the
version had to come from the BAR register. This change ensures the
version is obtained from the right place for all devices.
Stephen Bates [Fri, 13 Mar 2015 15:45:44 +0000 (09:45 -0600)]
Improved text display for nvme list command.
Stephen Bates [Wed, 11 Mar 2015 17:02:41 +0000 (11:02 -0600)]
Fixed whitespace damage.
Stephen Bates [Fri, 27 Feb 2015 00:59:09 +0000 (00:59 +0000)]
Fixed formatting
Stephen Bates [Fri, 27 Feb 2015 00:34:45 +0000 (00:34 +0000)]
Major improvements in list output
Added improved output processing of the nvme list command. Improved
formatting and added fields for the output.