~martanne/ciopfs

Print a warning if the underlying filesystem doesnn't support xattrs

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Set version to 0.4

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Add testsuite

The idea is to run the POSIX filesystem testsuite against a loopback
mounted filesystem and then rerun it once again over a ciopfs mountpoint.

In theory the resulting ${fs}.result and ciopfs-${fs}.result files should
be identical. In practice some tests fail due to timing issues, but it
is nonetheless useful to get an idea on what is working and what isn't.

Run with something like:

 CIOPFS="/path/to/ciopfs-binary-to-test" ./testsuite.sh some-dir

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Simplify error handling

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Fix {get,list}xattr

The return value should be the size of the xattr not simply 0.

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Remove unnecessary variable initializations

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
569cea58 — Jon Severinsson 10 years ago
Don't trust that nothing change errno after the fact.

See errno(3) section "NOTES" for details on why this is a bad idea.

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
9f4be79d — Jon Severinsson 10 years ago
Correct erroneous comment regarding realpath availability

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
56927334 — Jon Severinsson 10 years ago
symlink: do not transform the symlink target string

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Set version to 0.3

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
readdir: don't process everything in one go

Use seekdir and telldir instead and let fuse call us multiple times.

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
stat: switch to user context

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Implement opendir and releasedir

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
ascii: fix off by one which causes a segfault (Philip Tait)

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Rename {enter,leave}_user_context

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Introduce {enter,leave}_user_context_real and use it for access(2)

Based on a patch from Hans Kristian Nordengen.

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
readdir: apply user context (Hans Kristian Nordengen)

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Remove useless option parsing code

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Enable single threaded mode if the file system is accessible for others

The euid/egid are stored per process and not per thread. This
causes all sorts of race conditions and security issues when
multiple users access the file system simultaneously.

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Pass pid to get_groups

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
Fix symlink creation (Vitaly Lipatov)
Next