Skip to content

Instantly share code, notes, and snippets.

View rfjakob's full-sized avatar

rfjakob

  • Vienna, Austria
View GitHub Profile
@rfjakob
rfjakob / test.log
Created January 25, 2016 22:28
go test -v github.com/hanwen/go-fuse/unionfs
$ go test -v github.com/hanwen/go-fuse/unionfs
=== RUN TestToggleDebug
2016/01/25 23:27:03 Dispatch: INIT, NodeId: 0. data: {7.23 Ra 0x20000 SPLICE_MOVE,FLOCK_LOCKS,EXPORT_SUPPORT,BIG_WRITES,AUTO_INVAL_DATA,ATOMIC_O_TRUNC,ASYNC_READ,READDIRPLUS,SPLICE_WRITE,SPLICE_READ,READDIRPLUS_AUTO,POSIX_LOCKS,DONT_MASK,0x38000}
2016/01/25 23:27:03 Serialize: INIT code: OK value: {7.21 Ra 0x20000 BIG_WRITES,AUTO_INVAL_DATA,ASYNC_READ,READDIRPLUS 9/12 Wr 0x10000}
2016/01/25 23:27:03 Dispatch: LOOKUP, NodeId: 1. names: [status] 7 bytes
2016/01/25 23:27:03 Serialize: LOOKUP code: OK value: {3 G0 E0.100000000 A0.100000000 {M040755 SZ=0 L=0 0:0 B0*0 i0:3 A 0.000000000 M 0.000000000 C 0.000000000}}
2016/01/25 23:27:03 Dispatch: LOOKUP, NodeId: 3. names: [debug_setting] 14 bytes
2016/01/25 23:27:03 Inode = "status" (autoUnionFs(/tmp/748610144/store))
2016/01/25 23:27:03 Serialize: LOOKUP code: OK value: {4 G0 E0.100000000 A0.100000000 {M0120644 SZ=0 L=1 0:0 B0*0 i0:4 A 0.000000000 M 0.000000000 C 0.000000000}}
2016/01/25 23:2
@rfjakob
rfjakob / log
Last active April 8, 2016 08:13
xfstests I8668571c7dabf6da6ec708eec53de1887864b9ea
0 jakob@brikett:~/src/fuse-xfstests$ ./check-loopbackfs
FSTYP -- fuse.loopbackfs
PLATFORM -- Linux/x86_64 brikett 4.4.6-300.fc23.x86_64
MKFS_OPTIONS -- /tmp/check-loopbackfs/scratchdev
MOUNT_OPTIONS -- -o context=system_u:object_r:nfs_t:s0 /tmp/check-loopbackfs/scratchdev /tmp/check-loopbackfs/scratchdir
generic/001 5s ... 3s
generic/002 1s ... 1s
generic/003 [not run] atime related mount options have no effect on loopback file systems
generic/004 [not run] xfs_io flink failed (old kernel/wrong fs?)
#!/bin/bash
set -u
if [[ ! -f "$1/gocryptfs.conf" ]]; then
exit 0
fi
if mountpoint "$2" > /dev/null; then
exit 0
fi
exec gocryptfs "$@"
@rfjakob
rfjakob / truncate_read.c
Created October 26, 2016 16:05
Reproducer for the bug that tmpfs returns null bytes for truncated files
// Compile and run:
// gcc -Wall -lpthread truncate_read.c && ./a.out
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
@rfjakob
rfjakob / btrfs-slow.txt
Created November 25, 2016 08:01
Benchmark of gocryptfs on a rotational hard disk, ext4 and btrfs filesystems
encfs v1.9.1
============
$ ./benchmark.bash -encfs /mnt/hdd-ext4
Testing EncFS at /mnt/hdd-ext4/benchmark.bash.u0g
WRITE: 131072000 bytes (131 MB, 125 MiB) copied, 1,48354 s, 88,4 MB/s
UNTAR: 20.79
LS: 3.04
RM: 6.62
jakob@brikett:~/go/src/fuse-xfstests$ sudo ./check-gocryptfs
[sudo] password for jakob:
fuse-xfstests version cc9bdf0
Sa 29. Apr 14:50:27 UTC 2017
FSTYP -- fuse.gocryptfs
PLATFORM -- Linux/x86_64 brikett 4.10.8-200.fc25.x86_64
MKFS_OPTIONS -- /tmp/check-gocryptfs/scratchdev
MOUNT_OPTIONS -- -o context=system_u:object_r:nfs_t:s0 /tmp/check-gocryptfs/scratchdev /tmp/check-gocryptfs/scratchdir
generic/001 5s ... 6s
package main
import (
"bytes"
"sync"
"testing"
)
var b bytes.Buffer
var l sync.Mutex
@rfjakob
rfjakob / encfs.log
Created July 24, 2017 21:40
Linux kernel build on encfs bce3ceee713f10eb7f3909f34d8e56c755b8e6c0
eraseNode: fh=195431 from fuseFhMap
encfs_read: path=/torvalds-linux/arch/x86/include/asm/fpu/types.h fh=195436
putNode: adding fh=195439 to fuseFhMap
encfs_open: path=/torvalds-linux/include/linux/hugetlb_inline.h fh=195439
encfs_read: path=/torvalds-linux/include/linux/hugetlb_inline.h fh=195439
encfs_flush: path=/torvalds-linux/arch/x86/include/asm/fpu/types.h fh=195436
encfs_flush: path=/torvalds-linux/include/linux/hugetlb_inline.h fh=195439
encfs_release: path=/torvalds-linux/arch/x86/include/asm/fpu/types.h fh=195436
eraseNode: fh=195436 from fuseFhMap
encfs_release: path=/torvalds-linux/include/linux/hugetlb_inline.h fh=195439
@rfjakob
rfjakob / sshfs-debug-log.txt
Last active August 5, 2017 17:08
git status on golang/mock on gocryptfs on sshfs
unique: 5276, opcode: LOOKUP (1), nodeid: 1, insize: 55, pid: 8188
LOOKUP /mock.gocryptfs
getattr /mock.gocryptfs
NODEID: 3
unique: 5276, success, outsize: 144
unique: 5277, opcode: LOOKUP (1), nodeid: 3, insize: 56, pid: 8188
LOOKUP /mock.gocryptfs/gocryptfs.diriv
getattr /mock.gocryptfs/gocryptfs.diriv
NODEID: 5
unique: 5277, success, outsize: 144
$ sudo ./check-gocryptfs
gocryptfs v1.4-48-g312ea32; go-fuse v20170619-14-g204b45d; 2017-08-16 go1.8.3
fuse-xfstests gocryptfs-2017-08-08/a2564c17
Do 17. Aug 20:53:19 UTC 2017
FSTYP -- fuse.gocryptfs
PLATFORM -- Linux/x86_64 brikett 4.10.17-200.fc25.x86_64
MKFS_OPTIONS -- /tmp/check-gocryptfs/scratchdev
MOUNT_OPTIONS -- -o context=system_u:object_r:root_t:s0 /tmp/check-gocryptfs/scratchdev /tmp/check-gocryptfs/scratchdir