8 Star 2 Fork 12

src-openEuler/cdrkit
Closed

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
cdrkit-1.1.11-devname.patch 779 Bytes
Copy Edit Raw Blame History
hexiaowen authored 2019-09-30 22:34 +08:00 . Package init
diff -up wrk/libusal/scsi-linux-sg.c.wrk wrk/libusal/scsi-linux-sg.c
--- wrk/libusal/scsi-linux-sg.c.wrk 2015-05-29 13:30:41.088896572 +0200
+++ wrk/libusal/scsi-linux-sg.c 2015-05-29 13:38:25.776303388 +0200
@@ -509,7 +509,9 @@ usalo_open(SCSI *usalp, char *device)
/* scan and maybe keep one open, sg_setup decides */
#define HDX 0
#define SCD 1
-#define SG 2
+/* second scd option included because of Fedora naming convention /dev/srN */
+#define SCD2 2
+#define SG 3
int h;
/*
retry_scan_open:
@@ -533,6 +535,15 @@ retry_scan_open:
first=0;
last=255;
break;
+ }
+ case(SCD2):
+ {
+ if(!check_linux_26())
+ continue;
+ pattern="/dev/sr%d";
+ first=0;
+ last=255;
+ break;
}
case(SG):
{
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/cdrkit.git
git@gitee.com:src-openeuler/cdrkit.git
src-openeuler
cdrkit
cdrkit
openEuler-20.03-LTS-SP4

Search