Skip to content

Instantly share code, notes, and snippets.

@xor-freenet
Last active August 11, 2016 08:20
Show Gist options
  • Save xor-freenet/18027234f1849531f17e84f62056086c to your computer and use it in GitHub Desktop.
Save xor-freenet/18027234f1849531f17e84f62056086c to your computer and use it in GitHub Desktop.
fred next unit test failure
$ git describe
build01475-122-g727c600
$ ant clean && ant -Dtest.skip=false
[...]
[junit] Testcase: testPersistentSmallSplitfileNoLastBlockChooseAfterResume took 0.001 sec
[junit] Caused an ERROR
[junit] fallocate returned 95
[junit] java.io.IOException: fallocate returned 95
[junit] at freenet.support.io.Fallocate.execute(Fallocate.java:82)
[junit] at freenet.support.io.PooledFileRandomAccessBuffer.<init>(PooledFileRandomAccessBuffer.java:105)
[junit] at freenet.support.io.PooledFileRandomAccessBuffer.<init>(PooledFileRandomAccessBuffer.java:83)
[junit] at freenet.support.io.PooledFileRandomAccessBufferFactory.makeRAF(PooledFileRandomAccessBufferFactory.java:32)
[junit] at freenet.client.async.SplitFileInserterStorageTest.generateData(SplitFileInserterStorageTest.java:663)
[junit] at freenet.client.async.SplitFileInserterStorageTest.testPersistentSmallSplitfileNoLastBlockChooseAfterResume(SplitFileInserterStorageTest.java:1611)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[junit] at java.lang.reflect.Method.invoke(Method.java:606)
[junit] at junit.framework.TestCase.runTest(TestCase.java:176)
[junit] at junit.framework.TestCase.runBare(TestCase.java:141)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:122)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:142)
[junit] at junit.framework.TestResult.run(TestResult.java:125)
[junit] at junit.framework.TestCase.run(TestCase.java:129)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:255)
[junit] at junit.framework.TestSuite.run(TestSuite.java:250)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:532)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1165)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1016)
http://linuxdeveloper.blogspot.de/2012/02/kernel-error-codes.html
-> 95 is EOPNOTSUPP
http://man7.org/linux/man-pages/man2/fallocate.2.html
-> fallocate can indeed return EOPNOTSUPP if:
"The filesystem containing the file referred to by fd does not support this operation;
or the mode is not supported by the filesystem containing the file referred to by fd."
filesystem = ext3
$ uname -a
Linux HOSTNAME 3.13.0-93-generic #140-Ubuntu SMP Mon Jul 18 21:21:05 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment