Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only finds 26 scsi devices #479

Open
keithbusch opened this issue Aug 30, 2024 · 3 comments
Open

only finds 26 scsi devices #479

keithbusch opened this issue Aug 30, 2024 · 3 comments

Comments

@keithbusch
Copy link

The pattern match only looks for sda - sdz, but we have more than that. Need this:

diff --git a/linux/DtaDevOS.cpp b/linux/DtaDevOS.cpp
index 5261e73..fc0f33e 100644
--- a/linux/DtaDevOS.cpp
+++ b/linux/DtaDevOS.cpp
@@ -135,7 +135,8 @@ int  DtaDevOS::diskScan()
     if(dir!=NULL)
     {
         while((dirent=readdir(dir))!=NULL) {
-            if((!fnmatch("sd[a-z]",dirent->d_name,0)) ||
+            if((!fnmatch("sd[a-z]",dirent->d_name,0)) ||
+                    (!fnmatch("sd[a-z][a-z]",dirent->d_name,0)) ||
                     (!fnmatch("nvme[0-9]",dirent->d_name,0)) ||
                     (!fnmatch("nvme[0-9][0-9]",dirent->d_name,0))
                     ) {
@keithbusch
Copy link
Author

found my keys, able to send pull requests again. #480

@dtasupport
Copy link

dtasupport commented Sep 10, 2024 via email

@keithbusch
Copy link
Author

{ SCSI_DRIVE=8, NVME_DRIVE=259, }

The 259 value is not reserved for the NVMe major. Any block device can use that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants