Coder Social home page Coder Social logo

Comments (2)

edsiper avatar edsiper commented on September 28, 2024

thanks, this will be added (no ETA)

from chunkio.

sirwio avatar sirwio commented on September 28, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.