This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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?) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -u | |
| if [[ ! -f "$1/gocryptfs.conf" ]]; then | |
| exit 0 | |
| fi | |
| if mountpoint "$2" > /dev/null; then | |
| exit 0 | |
| fi | |
| exec gocryptfs "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bytes" | |
| "sync" | |
| "testing" | |
| ) | |
| var b bytes.Buffer | |
| var l sync.Mutex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ 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 |