Add support for FUSE passthrough
Some checks are pending
CodeQL / Analyze (push) Waiting to run
mkdocs / deploy (push) Waiting to run

This commit is contained in:
trapexit 2025-06-05 23:47:42 -05:00 • committed by GitHub
parent 92312c8507
commit e310d24615
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
412 changed files with 43707 additions and 17432 deletions

View file

@ -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)

View 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)

View file

@ -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)

View 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)

View 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)