Comments (2)
thanks, this will be added (no ETA)
from chunkio.
While the pull request #64 addresses the issue on modern linux operating system it still fails on older linuxes e.g. Suse 11 SP4
suse:/chunkio # ./cio -e 5 -p 400kb.txt
[src/cio_file.c:332 errno=95] Operation not supported
[chunkio] cannot adjust chunk size '/tmp/cio-perf//test-perf/perf-test-0000.txt' to 4096 bytes
[src/cio_file.c:332 errno=95] Operation not supported
[chunkio] cannot adjust chunk size '/tmp/cio-perf//test-perf/perf-test-0001.txt' to 4096 bytes
[src/cio_file.c:332 errno=95] Operation not supported
[chunkio] cannot adjust chunk size '/tmp/cio-perf//test-perf/perf-test-0002.txt' to 4096 bytes
[src/cio_file.c:332 errno=95] Operation not supported
[chunkio] cannot adjust chunk size '/tmp/cio-perf//test-perf/perf-test-0003.txt' to 4096 bytes
[src/cio_file.c:332 errno=95] Operation not supported
[chunkio] cannot adjust chunk size '/tmp/cio-perf//test-perf/perf-test-0004.txt' to 4096 bytes
=== perf write ===
- crc32 checksum : disabled
- fs sync mode : normal
- file size : 400.0K (409600 bytes)
- total files : 5
- file writes : 5
- bytes written : 0b (0 bytes)
- elapsed time : 0.00 seconds
- rate : 0b per second (0.00 bytes)
suse:/chunkio # cat /etc/SuSE-
SuSE-brand SuSE-release
suse:/chunkio # cat /etc/SuSE-
SuSE-brand SuSE-release
suse:/chunkio # cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 4
This is due to the call to fallocate does not return EOPNOTSUPP but rather -1 with the errno 95 (Operation not supported).
To support older operating system it would be better to check for non zero return codes and revert to posix_fallocate in such case.
from chunkio.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chunkio.