Git Product home page Git Product logo

Comments (4)

infeo avatar infeo commented on June 21, 2024

This must be a bug in cryptomator/cryptofs.

Using mirror example from cryptoamtor/fuse-nio-adapter without the cryptographic layer, the lastModified timestamp is preserved.

from cryptomator.

infeo avatar infeo commented on June 21, 2024

Adjusted log of the fuse-nio-adapter test with the cryptographic layer:

The service java has been started.
10:12:26.973 [main] INFO org.cryptomator.frontend.fuse.mount.MirroringFuseMountTest - Mounted successfully to: file:///Y:/
10:12:26.973 [main] INFO org.cryptomator.frontend.fuse.mount.MirroringFuseMountTest - Enter anything to unmount...
10:12:40.327 [Thread-3] DEBUG org.cryptomator.cryptolib.common.ReseedingSecureRandom - Seeding CSPRNG with 55 bytes...
10:12:40.327 [Thread-3] DEBUG org.cryptomator.cryptolib.common.ReseedingSecureRandom - Seeded CSPRNG.
10:12:40.335 [Thread-3] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /foobar.zip (lastModifiedTime: 2024-01-29T18:12:40.3329593Z, lastAccessTime: 2024-01-29T18:12:40.3359497Z, creationTime: 2024-01-29T18:12:40.3278555Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 0, fileKey: null)
10:12:40.337 [Thread-3] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /foobar.zip (lastModifiedTime: 2024-01-29T18:12:40.3329593Z, lastAccessTime: 2024-01-29T18:12:40.3379665Z, creationTime: 2024-01-29T18:12:40.3278555Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 0, fileKey: null)
10:12:40.342 [Thread-0] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /foobar.zip (lastModifiedTime: 2024-01-29T18:12:40.3329593Z, lastAccessTime: 2024-01-29T18:12:40.3429961Z, creationTime: 2024-01-29T18:12:40.3278555Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 0, fileKey: null)
10:12:40.346 [Thread-0] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /foobar.zip (lastModifiedTime: 2024-01-29T18:12:40.3329593Z, lastAccessTime: 2024-01-29T18:12:40.3469914Z, creationTime: 2024-01-29T18:12:40.3278555Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 0, fileKey: null)
10:12:40.359 [Thread-0] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /foobar.zip (lastModifiedTime: 2024-01-29T18:12:40.3559672Z, lastAccessTime: 2024-01-29T18:12:40.3595218Z, creationTime: 2024-01-29T18:12:40.3278555Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 81981, fileKey: null)
10:12:40.366 [Thread-3] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /foobar.zip (lastModifiedTime: 2024-01-29T18:12:40.3615267Z, lastAccessTime: 2024-01-29T18:12:40.3665286Z, creationTime: 2024-01-29T18:12:40.3278555Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 81981, fileKey: null)
10:12:40.367 [Thread-3] DEBUG org.cryptomator.frontend.fuse.ReadWriteAdapter - utimens /foobar.zip (last modification 2024-01-26T09:18:56.709065400Z, last access 2024-01-29T18:12:40.366528600Z)
10:12:40.377 [Thread-3] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /foobar.zip (lastModifiedTime: 2024-01-26T09:18:56.7090654Z, lastAccessTime: 2024-01-29T18:12:40.3776764Z, creationTime: 2024-01-29T18:12:40.3278555Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 81981, fileKey: null)
10:12:40.378 [Thread-3] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - release /foobar.zip (1)
10:12:40.409 [Thread-1] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /foobar.zip (lastModifiedTime: 2024-01-29T18:12:40.3920272Z, lastAccessTime: 2024-01-29T18:12:40.3920272Z, creationTime: 2024-01-29T18:12:40.3278555Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 81981, fileKey: null)
10:12:40.801 [Thread-4] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /foobar.zip (lastModifiedTime: 2024-01-29T18:12:40.3920272Z, lastAccessTime: 2024-01-29T18:12:40.3920272Z, creationTime: 2024-01-29T18:12:40.3278555Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 81981, fileKey: null)
10:12:41.338 [Thread-2] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /foobar.zip (lastModifiedTime: 2024-01-29T18:12:40.3920272Z, lastAccessTime: 2024-01-29T18:12:40.3920272Z, creationTime: 2024-01-29T18:12:40.3278555Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 81981, fileKey: null)
10:12:41.340 [Thread-2] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /foobar.zip (lastModifiedTime: 2024-01-29T18:12:40.3920272Z, lastAccessTime: 2024-01-29T18:12:40.3920272Z, creationTime: 2024-01-29T18:12:40.3278555Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 81981, fileKey: null)
10:12:41.349 [Thread-2] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - release /foobar.zip (2)
10:12:41.384 [Thread-2] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /foobar.zip (lastModifiedTime: 2024-01-29T18:12:40.3920272Z, lastAccessTime: 2024-01-29T18:12:41.3493213Z, creationTime: 2024-01-29T18:12:40.3278555Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 81981, fileKey: null)
10:12:41.385 [Thread-2] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /foobar.zip (lastModifiedTime: 2024-01-29T18:12:40.3920272Z, lastAccessTime: 2024-01-29T18:12:41.3493213Z, creationTime: 2024-01-29T18:12:40.3278555Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 81981, fileKey: null)
10:12:41.389 [Thread-2] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - release /foobar.zip (3)

Seems like, that after/while closing the file channel, the lastModified time is updated.

from cryptomator.

infeo avatar infeo commented on June 21, 2024

Depends on cryptomator/cryptofs#205.

from cryptomator.

infeo avatar infeo commented on June 21, 2024

Fixed with c527808

from cryptomator.

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.