]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
feat: add timstamp support(Optional)
authordingjian <jian.ding@memblaze.com>
Thu, 27 Aug 2020 23:44:55 +0000 (07:44 +0800)
committerKeith Busch <kbusch@kernel.org>
Thu, 11 Feb 2021 18:13:03 +0000 (11:13 -0700)
commit26ee636036f3dba45bcbef43d20a3c619b198753
tree5c493ce66e2c654c6660f056eabf46080f8a038d
parentecf7e44e20623291c3ed8134c54e1a20571ca4cc
feat: add timstamp support(Optional)

1. Follow NVMe spec 1.4;
2. Change the code about feature id 0x0E;
3. Examples of commands using the -d option:
   3.1. date +"%s%3N" > timestamp.log
   3.2. sudo ./nvme set-feature /dev/nvme0 -f 0x0E -d timestamp.log
4. Examples of commands using the -v option:
   4.1. sudo ./nvme set-feature /dev/nvme0 -f 0x0E -v $[`date +"%s%3N"`]

Signed-off-by: dingjian <jian.ding@memblaze.com>
nvme.c