Comments (4)
Apparently ZFS does not support fallocate ( openzfs/zfs#326 ). gocryptfs uses fallocate to allocate space before it uses it, to prevent running out of space in the middle of an operation, leaving a broken file behind.
I'm not sure how to handle this best.
from gocryptfs.
Would it be possible to just check if we have enough space (+some to be safe)? At least under ZFS and simillar, to support it at all.
from gocryptfs.
Ok I am checking now if fallocate is not supported at all. In this case, gocrypts will print a warning (only once) and continue working.
Now if the disk runs out of space while writing to a file, the incompletely written block (max 4kB) will be unreadable (it will report an I/O error if you try to read it). But you can still truncate or delete the file.
from gocryptfs.
Ok I guess this is resolved. Closing the ticket.
from gocryptfs.
Related Issues (20)
- Feature: Add support for LZ4 - Extremely fast compression in real time
- Feature: Add support for post-quantum algorithms HOT 1
- Feature: Add support for deleting all files if the password is not entered within the allotted time
- `ctlsock: bind: address already in use` after interrupted password input
- Small typo in the MANPAGE.md
- Usability issue: add extra text showing that -fsck is working HOT 1
- Poor write speed over GlusterFS remote file system HOT 1
- Safest way to change password for volume HOT 1
- Write slowdown by a factor of 10 (improved by increasing dd blocksize) HOT 2
- Can't create folder or file under a normal user when mounted by root with force_owner HOT 6
- first level gocryptfs.diriv file is always same when init in reverse mode HOT 2
- Invalid encrypted names, can't use them on NTFS volumes HOT 2
- `gocryptfs -speed` panics on go1.21 HOT 2
- TestDirectMount, TestForceOwner fail: fusermount requires user_allow_other in fuse.conf
- Embedding gocryptfs in a Go webserver HOT 3
- https://github.com/rfjakob/gocryptfs.wiki.gitv2.3
- Glenn HOT 1
- An idea
- Unmount before upload to the cloud
- 2.4.0 on MacPorts HOT 1
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 gocryptfs.