[Pkg-wmaker-commits] [wmhdplop] 08/26: wmhdplop: Support NVME devices

Doug Torrance dtorrance-guest at moszumanska.debian.org
Fri Nov 25 01:49:08 UTC 2016


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmhdplop.

commit 83436098e186f6c6040a5d67729f4401160c14c9
Author: Doug Torrance <dtorrance at piedmont.edu>
Date:   Thu Nov 24 10:26:52 2016 -0500

    wmhdplop: Support NVME devices
    
    Patch by GitHub user zen2.
    
    https://github.com/d-torrance/wmhdplop/issues/1
---
 devnames.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/devnames.c b/devnames.c
index 9e93ad2..fdade3a 100644
--- a/devnames.c
+++ b/devnames.c
@@ -153,6 +153,14 @@ int device_info(unsigned major, unsigned minor, char *name, int *hd_id, int *par
       if (part_id) *part_id = 0;            
       return 9;      
 #endif
+
+#ifdef BLOCK_EXT_MAJOR
+    case (BLOCK_EXT_MAJOR):
+      if (name) sprintf(name, "nvme0n%cp%s", "0123456789"[(minor/16)], to_num_(minor));
+      if (hd_id) *hd_id = 400 + minor;
+      if (part_id) *part_id = 0;
+      return 10;
+#endif
   }
   if (name) *name = 0;
   if (hd_id) *hd_id = -1;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmhdplop.git



More information about the Pkg-wmaker-commits mailing list