summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2018-10-17 09:04:40 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2018-10-17 09:04:40 +0200
commit2d9a2936ddd583e392111d773f203ceeee95cdc6 (patch)
tree3791a331be46a9b4dfcdfd8488e86ae61eb22020
parent6837474129968d7de13d91e5454bd824c9136e73 (diff)
Linux: Lists NVME disks
-rw-r--r--src/hdaccess.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hdaccess.c b/src/hdaccess.c
index afbeb7c..261a014 100644
--- a/src/hdaccess.c
+++ b/src/hdaccess.c
@@ -374,6 +374,8 @@ list_disk_t *hd_parse(list_disk_t *list_disk, const int verbose, const int testd
list_disk=hd_glob_parse("/dev/xvd?", list_disk, verbose, testdisk_mode);
/* Loop devices */
list_disk=hd_glob_parse("/dev/loop[0-9]*", list_disk, verbose, testdisk_mode);
+ /* NVME */
+ list_disk=hd_glob_parse("/dev/nvme[0-9]n[0-9]", list_disk, verbose, testdisk_mode);
#endif
}
#elif defined(TARGET_SOLARIS)