Open osakanataro opened 2 years ago
i tried gcc/g++ 8.4.0-3ubuntu2 on Ubuntu 20.04.3 env. same problem occurred.
temporary workaround
$ git diff
diff --git a/src/sys_info.cc b/src/sys_info.cc
index b9a5175..d71c8d2 100644
--- a/src/sys_info.cc
+++ b/src/sys_info.cc
@@ -178,7 +178,7 @@ namespace diskspd {
if (err) {
fprintf(stderr, "Unexpected error '%d: %s' when statting %s!\n", errno, strerror(errno), dev_path.c_str());
perror("stat");
- exit(1);
+ //exit(1);
}
//printf("mapping %u,%u to %s\n", major(dev_stat.st_rdev), minor(dev_stat.st_rdev), str.c_str());
// map it for later!
@@ -311,7 +311,7 @@ namespace diskspd {
if (!schedfile.is_open()) {
fprintf(stderr, "Couldn't open scheduler file for device %s\n", device.c_str());
- exit(1);
+ //exit(1);
}
std::getline(schedfile, line);
$
I compled latest source on Ubuntu 20.04.3. execute diskspd error with non specific device.
/dev/nvme0c0n1 not foud. why /dev/nvme0c0n1 ?
Ubuntu 20.04.3 LTS kernel 5.4.0-91-generic #102-Ubuntu gcc 9.3.0-17 g++ 9.3.0-17