| Age | Commit message (Collapse) | Author |
|
Replace the RootNode.MitigatedCorruptions channel with a callback that
fsck attaches to the context of each operation via
fusefrontend.WithCorruptionReporter().
The channel was needed when fsck went through the kernel, but now that
fsck calls the node operations directly, the context is a better way:
* Each report is attributed to the operation that caused it, so fsck
no longer needs a watcher goroutine and the watchDone channel around
every call.
* reportMitigatedCorruption() no longer blocks for up to one second
(and logs "BUG: reportCorruptItem: timeout") when nobody is listening.
* A mounted filesystem has no reporter in the context, so reporting is
a no-op there.
readFileID() and doRead() now take a ctx. The write paths pass
context.Background(), as fsck never writes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
* added -noxattr flag which ignores all xattr operations
|
|
Fixes https://github.com/rfjakob/gocryptfs/issues/827
|
|
xattr names have fewer restrictions than file names,
relax the validation.
Fixes https://github.com/rfjakob/gocryptfs/issues/627
|
|
Commit
69d88505fd7f4cb0d9e4f1918de296342fe05858 go mod: declare module version v2
translated all instances of "github.com/rfjakob/gocryptfs/" to
"github.com/rfjakob/gocryptfs/v2/".
Unfortunately, this included hyperlinks.
Unbreak the hyperlinks like this:
find . -name \*.go | xargs sed -i s%https://github.com/rfjakob/gocryptfs/v2/%https://github.com/rfjakob/gocryptfs/v2/%
|
|
Our git version is v2+ for some time now, but go.mod
still declared v1. Hopefully making both match makes
https://pkg.go.dev/github.com/rfjakob/gocryptfs/v2 work.
All the import paths have been fixed like this:
find . -name \*.go | xargs sed -i s%github.com/rfjakob/gocryptfs/%github.com/rfjakob/gocryptfs/v2/%
|
|
The result of setting an acl depends on who runs the
operation!
Fixes fuse-xfstests generic/375
(see https://github.com/rfjakob/fuse-xfstests/wiki/results_2021-05-19)
|
|
xfstests generic/523 discovered that we allowed to set
xattrs with "/" in the name, but did not allow to read
them later.
With this change we do not allow to set them in the first
place.
|
|
Pass through system.posix_acl_access and system.posix_acl_default
unencrypted to fix "cp -a" problems.
"cp -a" uses "setxattr" even to set normal permissions, see
https://www.spinics.net/lists/linux-nfs/msg63986.html .
Fixes https://github.com/rfjakob/gocryptfs/issues/543
|
|
Unless we are mounted with -suid, we can reject
these requests, and gain back some lost speed.
Closes https://github.com/rfjakob/gocryptfs/issues/515
|
|
gocryptfs/tests/xattr passes.
|