We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fa526f commit 176b41fCopy full SHA for 176b41f
1 file changed
fst/storage/FileSystem.cc
@@ -347,6 +347,19 @@ FileSystem::IoPing()
347
348
// Open the file for direct access
349
int fd = open(device_path.c_str(), O_RDONLY | O_DIRECT);
350
+
351
+ if (fd < 0) {
352
+ // Fallback to open without O_DIRECT flag
353
+ fd = open(device_path.c_str(), O_RDONLY);
354
355
356
+ eos_static_notice("msg=\"skip disk measurements, failed to open "
357
+ "device\" path=\"%s\" errno=%i",
358
+ GetPath().c_str(), errno);
359
+ return;
360
+ }
361
362
363
using namespace std::chrono;
364
auto start_iops = high_resolution_clock::now();
365
IOPS = eos::fst::ComputeIops(fd);
0 commit comments