GithubHelp home page GithubHelp logo

test.bash fails on CentOS 7 about gocryptfs HOT 8 CLOSED

rfjakob avatar rfjakob commented on May 18, 2024
test.bash fails on CentOS 7

from gocryptfs.

Comments (8)

rfjakob avatar rfjakob commented on May 18, 2024

Could you remove the "//" in lines 60 and 61 in https://github.com/rfjakob/gocryptfs/blob/master/integration_tests/helpers.go and run test.bash -v again? This should give much more output.

from gocryptfs.

portnoy avatar portnoy commented on May 18, 2024

I apologise for the delay, here it is:
gocryptfs-debug.log.gz

from gocryptfs.

rfjakob avatar rfjakob commented on May 18, 2024

db72fce has fixed several issues I found during fsstress testing, could you test again with latest master?

from gocryptfs.

portnoy avatar portnoy commented on May 18, 2024

Unfortunately, I hit another error preventing me from re-testing:
git -C is not supported on my system. I'm running CentOS7 and

git --version
git version 1.8.3.1

So, I'm getting

bash -x ./test.bash
+ set -eu
++ dirname ./test.bash
+ cd .
+ source build.bash
++ set -eu
+++ dirname ./test.bash
++ cd .
+++ git describe --tags --dirty
++ GITVERSION=v0.9-2-g4d79fba
+++ git -C /home/eugene/go/src/github.com/hanwen/go-fuse rev-parse --short HEAD
Unknown option: -C

Should probably open a separate issue for this?

from gocryptfs.

rfjakob avatar rfjakob commented on May 18, 2024

Nah, fixed that one right away.

from gocryptfs.

rfjakob avatar rfjakob commented on May 18, 2024

How is it going? Did you try again?

from gocryptfs.

portnoy avatar portnoy commented on May 18, 2024

This is what I'm getting with the recent code:

./test.bash
gocryptfs v0.10-rc3-5-g30f0ae3; on-disk format 2; go-fuse 1628b02
?       github.com/rfjakob/gocryptfs    [no test files]
--- FAIL: TestDirOverwrite (0.00s)
    main_test.go:351: rename /tmp/gocryptfs_main_test/plain/DirOverwrite1 /tmp/gocryptfs_main_test/plain/DirOverwrite2: file exists
FAIL
FAIL    github.com/rfjakob/gocryptfs/integration_tests  1.458s
ok      github.com/rfjakob/gocryptfs/internal/configfile    0.705s
ok      github.com/rfjakob/gocryptfs/internal/contentenc    0.003s
ok      github.com/rfjakob/gocryptfs/internal/cryptocore    0.003s
?       github.com/rfjakob/gocryptfs/internal/fusefrontend  [no test files]
ok      github.com/rfjakob/gocryptfs/internal/nametransform 0.002s
ok      github.com/rfjakob/gocryptfs/internal/prefer_openssl    0.002s
ok      github.com/rfjakob/gocryptfs/internal/stupidgcm 0.272s
?       github.com/rfjakob/gocryptfs/internal/toggledlog    [no test files]

Attaching -v output as well.
gocryptfs.test.txt

from gocryptfs.

rfjakob avatar rfjakob commented on May 18, 2024

Finally go around to set up a VM with CentOS 7. The cause seems to be XFS. It surprisingly returns a different error when you try to overwrite a non-empty directory with a directory.

If you do this in ext4

$ cd $(mktemp -d) ; mkdir foo bar bar/foo ; touch bar/foo/file ; mv foo bar

you get

mv: cannot move 'foo' to 'bar/foo': Directory not empty

But on XFS you get

mv: cannot move ‘foo’ to ‘bar/foo’: File exists

With commit e994ffa, gocryptfs now handles both cases and the tests pass. Thanks again for reporting!

from gocryptfs.

Related Issues (20)

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.