Jakob Unterwurzacher 9ed8d704dd eraseNode: erase the right FileNode
When a file is opened twice concurrently, we can end up with
two separate FileNodes for a single path.

This seems to be the root cause for the crashes reported under
https://github.com/vgough/encfs/issues/214 , as commit

  af64702dd0c5be3a2434d670f9e3dbb803f3e388
  "Simplify FileNode Cache. Remove the need for PlaceHolder."

removed the awareness for different FileNodes.

The crashes have been fixed by

  e2f0f8e3c68604a46d8665c3b0125bb35a0d9181
  "fuseFhMap: translate FUSE file handles to FileNode pointers"

at the cost of introducing a memory leak. One of the two FileNodes
would stay in fuseFhMap forever.

This commit makes eraseNode again aware of different FileNodes for
a single path, makes sure the right FileNode is erased, and fixes
the memory leak.
2017-07-25 09:53:02 +02:00
2017-05-28 16:20:21 +02:00
2017-07-25 09:53:02 +02:00
2017-04-02 19:31:05 +02:00
2014-10-18 19:19:33 -07:00
2015-06-16 20:41:50 -07:00
2017-05-28 16:20:21 +02:00
2016-09-09 14:23:04 +02:00
2015-11-12 19:18:35 +01:00
2017-06-25 18:37:08 +02:00
2017-05-28 16:20:21 +02:00
2016-04-24 23:15:43 -07:00
2012-10-22 05:30:55 +00:00
2012-10-22 05:30:55 +00:00
2015-02-27 21:10:12 -08:00
2016-08-16 23:28:51 -07:00
2017-05-28 16:20:21 +02:00
2016-09-08 22:10:36 +02:00

EncFS - an Encrypted Filesystem

Build Status

  • Circle: Circle CI
  • Travis: Travis CI
  • Analysis: Coverity

About

EncFS provides an encrypted filesystem in user-space. It runs in userspace, using the FUSE library for the filesystem interface. EncFS is open source software, licensed under the LGPL.

EncFS is now over 10 years old (first release in 2003). It was written because older NFS and kernel-based encrypted filesystems such as CFS had not kept pace with Linux development. When FUSE became available, I wrote a CFS replacement for my own use and released the first version to Open Source in 2003.

EncFS encrypts individual files, by translating all requests for the virtual EncFS filesystem into the equivalent encrypted operations on the raw filesystem.

For more info, see:

Status

Over the last 10 years, a number of good alternatives have grown up. Computing power has increased to the point where it is reasonable to encrypt the entire filesystem of personal computers (and even mobile phones!). On Linux, ecryptfs provides a nice dynamically mountable encrypted home directory, and is well integrated in distributions I use, such as Ubuntu.

EncFS has been dormant for a while. I've started cleaning up in order to try and provide a better base for a version 2, but whether EncFS flowers again depends upon community interest. In order to make it easier for anyone to contribute, it is moving a new home on Github. So if you're interested in EncFS, please dive in!

Unique Features

EncFS has a few features still not found anywhere else (as of Dec 2014) that may be interesing to you:

Reverse mode

encfs --reverse provides an encrypted view of an unencrypted folder. This enables encrypted remote backups using standard tools like rsync.

Fast on classical HDDs

EncFS is typically much faster than ecryptfs for stat()-heavy workloads when the backing device is a classical hard disk. This is because ecryptfs has to to read each file header to determine the file size - EncFS does not. This is one additional seek for each stat. See PERFORMANCE.md for detailed benchmarks on HDD, SSD and ramdisk.

Works on top of network filesystems

EncFS works on network file systems (NFS, CIFS...), while ecryptfs is known to still have problems.

Development

The master branch contains the latest stable codebase. This is where bug fixes and improvments should go.

The dev branch contains experimental work, some of which may be back-ported to the master branch when it is stable. The dev branch is not stable, and there is no guarantee of backward compatibility between changes.

Donations

How about a nice email instead?

Description
EncFS: an Encrypted Filesystem for FUSE.
Readme 19 MiB
Languages
C++ 85.3%
CMake 4%
Perl 3.1%
C 2.9%
Raku 2.7%
Other 1.9%