mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 02:48:59 -04:00
Add support for FUSE passthrough
This commit is contained in:
parent
92312c8507
commit
e310d24615
412 changed files with 43707 additions and 17432 deletions
|
|
@ -7,8 +7,14 @@ import tempfile
|
|||
(srcfd,src) = tempfile.mkstemp(dir=sys.argv[1])
|
||||
(tgtfd,tgt) = tempfile.mkstemp(dir=sys.argv[1])
|
||||
|
||||
os.fstat(srcfd)
|
||||
os.fstat(tgtfd)
|
||||
|
||||
os.unlink(tgt)
|
||||
os.rename(src,tgt)
|
||||
|
||||
os.fstat(srcfd)
|
||||
os.fstat(tgtfd)
|
||||
|
||||
os.close(srcfd)
|
||||
os.close(tgtfd)
|
||||
|
|
|
|||
15
tests/TEST_use_fallocate_after_unlink
Executable file
15
tests/TEST_use_fallocate_after_unlink
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
(fd,filepath) = tempfile.mkstemp(dir=sys.argv[1])
|
||||
|
||||
os.posix_fallocate(fd,0,1024)
|
||||
|
||||
os.unlink(filepath)
|
||||
|
||||
os.posix_fallocate(fd,0,1024)
|
||||
|
||||
os.close(fd)
|
||||
|
|
@ -6,10 +6,11 @@ import tempfile
|
|||
|
||||
(fd,filepath) = tempfile.mkstemp(dir=sys.argv[1])
|
||||
|
||||
os.fstat(fd)
|
||||
x = os.lstat(filepath)
|
||||
x = os.fstat(fd)
|
||||
|
||||
os.unlink(filepath)
|
||||
|
||||
os.fstat(fd)
|
||||
y = os.fstat(fd)
|
||||
|
||||
os.close(fd)
|
||||
|
|
|
|||
15
tests/TEST_use_ftruncate_after_unlink
Executable file
15
tests/TEST_use_ftruncate_after_unlink
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
(fd,filepath) = tempfile.mkstemp(dir=sys.argv[1])
|
||||
|
||||
os.ftruncate(fd,1024)
|
||||
|
||||
os.unlink(filepath)
|
||||
|
||||
os.ftruncate(fd,1024)
|
||||
|
||||
os.close(fd)
|
||||
17
tests/TEST_use_futimens_after_unlink
Executable file
17
tests/TEST_use_futimens_after_unlink
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
atime = 1234
|
||||
mtime = 1234
|
||||
(fd,filepath) = tempfile.mkstemp(dir=sys.argv[1])
|
||||
|
||||
os.utime(fd,(atime,mtime))
|
||||
|
||||
os.unlink(filepath)
|
||||
|
||||
os.utime(fd,(atime,mtime))
|
||||
|
||||
os.close(fd)
|
||||
Loading…
Add table
Add a link
Reference in a new issue